[proaudio] [991] jost ebuild improvements: compile as 32bit when vst is requested on amd64, remove lash depend

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 991
Author:   gimpel
Date:     2007-12-07 16:23:51 +0000 (Fri, 07 Dec 2007)

Log Message:
-----------
jost ebuild improvements: compile as 32bit when vst is requested on amd64, remove lash depend

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/jost/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/jost/files/digest-jost-0.4.3-r1
    trunk/overlays/proaudio/media-sound/jost/jost-0.4.3-r1.ebuild


Modified: trunk/overlays/proaudio/media-sound/jost/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/jost/Manifest	2007-12-07 13:10:02 UTC (rev 990)
+++ trunk/overlays/proaudio/media-sound/jost/Manifest	2007-12-07 16:23:51 UTC (rev 991)
@@ -33,6 +33,10 @@
 MD5 0dfc437971b9d5c22485ca728a85d2a2 jost-0.4.2.ebuild 2204
 RMD160 e6647f4e7575adbb63a891ca3d0334dcdc47898c jost-0.4.2.ebuild 2204
 SHA256 0c9f3c8c98ee1f2b76c00d1a430db2f5e16e6d6f29a2bde81e1be644e7913ef7 jost-0.4.2.ebuild 2204
+EBUILD jost-0.4.3-r1.ebuild 3304 RMD160 66b8f5a2d2ebf96900fc1284097af583d96c5117 SHA1 0afab1b89d761cba0d02fdbbd5e0fc7d63056bd9 SHA256 6e3af3867a02f4cdd39bbb0c34310d06983f745ce47afdf9e28076488eff041e
+MD5 1c049efc1837e29278eb4e8b9b4ab2d0 jost-0.4.3-r1.ebuild 3304
+RMD160 66b8f5a2d2ebf96900fc1284097af583d96c5117 jost-0.4.3-r1.ebuild 3304
+SHA256 6e3af3867a02f4cdd39bbb0c34310d06983f745ce47afdf9e28076488eff041e jost-0.4.3-r1.ebuild 3304
 EBUILD jost-0.4.3.ebuild 2223 RMD160 632175b280a416e79ca192bb1cd0882c8f0a5c1c SHA1 4b82b82645ca0abff8f179982c8886e8fc38c920 SHA256 072fed1f490d64404846c15591d224721fbc03ddcc9d3863fd9ae2ceff0ade42
 MD5 7231745132dc3508fe91ec98afb94dfb jost-0.4.3.ebuild 2223
 RMD160 632175b280a416e79ca192bb1cd0882c8f0a5c1c jost-0.4.3.ebuild 2223
@@ -58,3 +62,6 @@
 MD5 8c038711c907bd2a6ee74fb4aba32b18 files/digest-jost-0.4.3 253
 RMD160 4f16f3875d0b22567f0f6e22f6fce5b80ca0fe92 files/digest-jost-0.4.3 253
 SHA256 c6e644714d54ad65868e8eafb2651fef9a52d483517e43f25f675c8b1e5827f6 files/digest-jost-0.4.3 253
+MD5 8c038711c907bd2a6ee74fb4aba32b18 files/digest-jost-0.4.3-r1 253
+RMD160 4f16f3875d0b22567f0f6e22f6fce5b80ca0fe92 files/digest-jost-0.4.3-r1 253
+SHA256 c6e644714d54ad65868e8eafb2651fef9a52d483517e43f25f675c8b1e5827f6 files/digest-jost-0.4.3-r1 253

Added: trunk/overlays/proaudio/media-sound/jost/files/digest-jost-0.4.3-r1
===================================================================
--- trunk/overlays/proaudio/media-sound/jost/files/digest-jost-0.4.3-r1	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/jost/files/digest-jost-0.4.3-r1	2007-12-07 16:23:51 UTC (rev 991)
@@ -0,0 +1,3 @@
+MD5 ae8fa9664406eae037a8cc0fc9e21e8e jost_src-v0.4.3.tar.bz2 2576356
+RMD160 bd3c5cd3ed33e75608d2121a56ab0f8d487d7415 jost_src-v0.4.3.tar.bz2 2576356
+SHA256 86836c5c3096fb4b0c3d2fb2272361105680ca4e5534dd6312ce0bdfb2d34312 jost_src-v0.4.3.tar.bz2 2576356

Added: trunk/overlays/proaudio/media-sound/jost/jost-0.4.3-r1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/jost/jost-0.4.3-r1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/jost/jost-0.4.3-r1.ebuild	2007-12-07 16:23:51 UTC (rev 991)
@@ -0,0 +1,127 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils flag-o-matic multilib
+
+MY_P="${PN}_src-v${PV}"
+
+DESCRIPTION="JACK host for native linux VST, DSSI and LADSPA plugins with
+sequencer capabilities"
+HOMEPAGE="http://www.anticore.org/jucetice/?page_id=4";
+SRC_URI="http://www.anticore.org/jucetice/wp-content/uploads/${MY_P}.tar.bz2";
+RESTRICT="nomirror"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="vst ladspa dssi"
+
+RDEPEND="|| ( (  x11-proto/xineramaproto
+					x11-proto/xextproto
+					x11-proto/xproto )
+			virtual/x11 )
+		media-sound/jack-audio-connection-kit"
+DEPEND="${RDEPEND}
+		vst? ( media-libs/vst-sdk )
+		ladspa? ( media-libs/ladspa-sdk )
+        dssi? ( media-libs/dssi )"
+
+# uh, is there any better way to say following:
+if use amd64 && use vst; then
+	DEPEND="${DEPEND}
+		app-emulation/emul-linux-x86-xlibs"
+fi
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+pkg_setup() {
+	if ! use dssi; then
+		if ! use ladspa; then
+			if ! use vst; then
+				echo 
+				eerror "Uhm, you disabled Support for all plugin systems!"
+				eerror "This would make Jost quite useless."
+				eerror "Please enable at least one of them!"
+				echo
+				die "No useflags enabled"
+			fi
+		fi
+	fi
+
+}
+
+src_unpack() {
+	unpack ${A}
+
+	# patch use flags
+	cd ${S}/plugins/Jost/src
+	use vst || \
+		sed -i -e "s:#define JOST_USE_VST://#define JOST_USE_VST:" \
+		Config.h || die "bad sed" 
+
+	use ladspa || \
+		sed -i -e "s:#define JOST_USE_LADSPA://#define JOST_USE_LADSPA:" \
+		Config.h || die "bad sed"
+
+	use dssi || \
+		sed -i -e "s:#define JOST_USE_DSSI://#define JOST_USE_DSSI:" \
+		Config.h || die "bad sed"
+	
+	# If USE="vst" is requested, we build 32bit on amd64
+	# otherwhise you won't be able to load VSTs
+	if use amd64 && use vst; then
+			sed -i \
+			-e 's:/usr/lib/:/usr/lib32/:' \
+			-e 's:/usr/X11R6/lib/:/usr/X11R6/lib32/:' \
+			"../build/linux/jost.make"
+	fi
+
+	# tmp fix, lash isn't needed
+	sed -i -e 's:-llash ::' "../build/linux/jost.make"
+}
+	
+src_compile() {
+	# fails with --as-needed
+	filter-ldflags --as-needed -Wl,--as-needed
+	
+	# If USE="vst" is requested, we build 32bit on amd64
+	# otherwhise you won't be able to load VSTs
+	if use amd64 && use vst; then
+		multilib_toolchain_setup x86
+		einfo "VST support requested. JOST will be built as 32bit binary"
+	fi
+
+	# build modified juce
+	cd ${S}/juce/build/linux
+	emake CONFIG=Release || die "building JUCE failed"
+
+	# build jost
+	cd ${S}/plugins/Jost/build/linux
+	emake CONFIG=Release || die "building JOST failed"
+}
+
+src_install() {
+	exeinto /usr/bin
+	doexe bin/jost
+	dodoc readme.txt
+	doicon "${FILESDIR}/jost.png"
+	make_desktop_entry "${PN}" "Jost" "${PN}" "AudioVideo;Audio;"
+}
+
+pkg_postinst() {
+	elog "For some sample native linux VST's emerge some of"
+	elog "media-plugins/vst_plugins-*"
+	elog ""
+	elog "You can also drag&drop LADSPA, DSSI and VST plugins from your plugin"
+	elog "folders."
+
+	if use amd64 && use vst; then
+		echo
+		elog "You have enabled the vst useflag on amd64. JOST has been"
+		elog "built as 32bit binary, so you are able to load VSTs."
+		elog "In conecquence, you will not be able to connect JOST to a"
+		elog "64bit jackd instance! You can either emerge emul-linux-x86-jackd,"
+		elog "install JOST in a 32bit chroot, or disable VST support for JOST."
+	fi
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/