[proaudio] media-sound/jack-audio-connection-kit-2.9999 ebuild fixes

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


Hi,

I had problems to compile and use the live ebuild for jack... So I made
this new one (I named it 2.9999-r1):
Changes:
    - uses a new git repository
    - fixes a compilation problem while linking the examples (alsa_in :
It doesn't found the symbols of -lm -I guess is related with a binutils
change...-)
    - uses waf-utils

I also made changes on the libffado ebuild. I'll clean it and send the
patches as well.


Best regards,
Natanael.
Index: Manifest
===================================================================
--- Manifest	(revision 2113)
+++ Manifest	(working copy)
@@ -1,5 +1,6 @@
 AUX jack-audio-connection-kit-0.116.1-dbus.patch 930659 RMD160 08e38b0264eb9c0ed09438123cad7e61beeb2e31 SHA1 467b0e485861a7c81f133e67818aa84139889b8a SHA256 818a6182de4e23388fff3863627abdc4df58a976c4f924b10ab3502ae026b88f
 AUX jack-audio-connection-kit-0.116.1-dbus_as-needed.patch 314 RMD160 77026765eb5fa7e97b6eb59e4c5f8c52288647de SHA1 60262c8cc412b17f0f2bbdd7fb49b870cc32710e SHA256 923efb309bc902e33a9d02b51f2cc1a0c1f4844d88c12236fb1fbf09066b5468
+AUX jack-audio-connection-kit-2.9999-r1_link-fix.patch 383 RMD160 e1892d71735c56df1a05f9599174bd89740769fb SHA1 661c4097d5c9deed2376a578380248c3be19b482 SHA256 32bdd416a1fb6586c361967c4095f75155c71c6bdc99a590b302e96c8e7690f9
 DIST jack-1.9.6.tar.bz2 2833251 RMD160 dc8c21efd47b851826ad64f42c6f0bf97e96838f SHA1 b231757acc701553ca10535fd4c463bf1f8347e0 SHA256 bebb764a60828d5c6bf61f85a28ee9aa7f3afe1286dc9ec3e9fe13a3ecd1ffd6
 DIST jack-1.9.7.tar.bz2 2838712 RMD160 dfc43383bc4d483844055fe202873e3100bdd9c5 SHA1 0a344fd962666f7c95969da0576ac0228e71b30d SHA256 096f57ad4d2eb38bd5aa4267f4088da0726ab65a5747d1345bb69fb504b2ec05
 DIST jack-1.9.8.tgz 8592666 RMD160 2ae8b9b156a47f23f5f13e4051d47d9d09e0b177 SHA1 397a01bb94eb4b40f328329a9e6af13f53abaa89 SHA256 4c712eac54bdf5b4c0245f728654459d0437e5cdab84e7ac633be6fe4502081d
@@ -11,6 +12,7 @@
 EBUILD jack-audio-connection-kit-1.9.7.ebuild 1982 RMD160 6cfe89a4323a846379f0efe2b4138d34d4be1a26 SHA1 7a4f79d2081031ca78236488555f59a748b71617 SHA256 c5ee5a8a91192f46d42b738680ab9edd2aea95379528c355ec16f53d787966bd
 EBUILD jack-audio-connection-kit-1.9.8.ebuild 2285 RMD160 66c509c3d7b22cd5726a3569f8467df0984d757a SHA1 4b426d1496b3445907ea62f5117397d103ef1fda SHA256 061f4d878baf2d5374048c25a52c1b5092457ae224d1bab5241446b854f52519
 EBUILD jack-audio-connection-kit-1.9999.ebuild 2636 RMD160 e7cb1469ee8d18815b56fdb0630025a7ae6bfb4f SHA1 06e1b08a539e4c9bca9d799928a7e9aa39ff3cfb SHA256 7bfb3eecabbb999d7697040e7d16177d969587ba643701765ed336fd1665fbe0
+EBUILD jack-audio-connection-kit-2.9999-r1.ebuild 2017 RMD160 cc9adef5aee7baaf805988e6506f53663bf27c6b SHA1 85a5f9e08865017cb864a77b587b5f8676ef7783 SHA256 511d62e017fc514f755286eb3015a7fba4d13fb9d14b99b9a449dcb6e387979b
 EBUILD jack-audio-connection-kit-2.9999.ebuild 2013 RMD160 a449ac1faccab122a760719ff8e4df046015c248 SHA1 90cce8d1674392b6a9ad83d2b5de0be094f77b7b SHA256 5b09e0ff665a86ba0784ffd20daea2abdcd85b2858269f7465968aa52150616b
 MISC ChangeLog 7138 RMD160 70d1aa1f4451161b40aaa566928a2a190be4713d SHA1 f3f3521840a9367ac512f6f64e99cc6d4f10eaf4 SHA256 d62b0261a79a6581988bb43d20cae53af5ff05f8acfe19cc02d2d7cedd7ebf25
 MISC metadata.xml 462 RMD160 39c732fcfca9261ab0048ba29c659b213215b4f5 SHA1 bd75376dfe544939536d2490abdfd12fc5540167 SHA256 70ff5d10ab6f49fe7da29c47a447f4a3a7426414d737bb78cd91677f10bf51ab
Index: jack-audio-connection-kit-2.9999-r1.ebuild
===================================================================
--- jack-audio-connection-kit-2.9999-r1.ebuild	(revision 0)
+++ jack-audio-connection-kit-2.9999-r1.ebuild	(working copy)
@@ -0,0 +1,80 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit git-2 waf-utils 
+
+DESCRIPTION="Jackdmp jack implemention for multi-processor machine"
+HOMEPAGE="http://www.grame.fr/~letz/jackdmp.html";
+
+EGIT_REPO_URI="git://github.com/jackaudio/jack2.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="alsa classic doc debug freebob dbus ieee1394 mixed"
+
+RDEPEND="dev-util/pkgconfig
+	>=media-libs/alsa-lib-0.9.1"
+DEPEND="${RDEPEND}
+	freebob? ( sys-libs/libfreebob !media-libs/libffado )
+	doc? ( app-doc/doxygen )
+	dbus? ( sys-apps/dbus )
+	ieee1394? ( media-libs/libffado !sys-libs/libfreebob )
+	media-libs/libsamplerate"
+
+src_unpack() {
+	git-2_src_unpack 
+}
+
+pkg_setup() {
+	# sandbox-1.6 breaks, on amd64 at least
+
+	# paludis...
+	if has_version "=sys-apps/sandbox-1.6" && [[ -n $(echo `ps -fp $$`|grep paludis) ]]; then
+		eerror "The compile will hang with =sandbox-1.6. You are using paludis,"
+		eerror "so you'll have to downgrade sandbox."
+		die
+	fi
+
+	# portage
+	if use amd64 && has "sandbox" ${FEATURES} && ! has "-sandbox" ${FEATURES} && has_version "=sys-apps/sandbox-1.6"; then
+		eerror "The compile will hang with =sandbox-1.6. Please use:"
+		echo
+		eerror "FEATURES=\"-sandbox\" emerge ${PN}"
+		echo
+		eerror "OR downgrade sandbox to 1.4 at least."
+		die
+	fi
+}
+
+src_prepare()
+{
+	epatch "${FILESDIR}"/jack-audio-connection-kit-2.9999-r1_link-fix.patch
+}
+
+src_configure() {
+	local myconf="--prefix=/usr --destdir=${D}"
+	use alsa && myconf="${myconf} --alsa"
+	if use classic && use dbus ; then
+		myconf="${myconf} --classic"
+	fi
+	if use mixed && use amd64 ; then
+		myconf="${myconf} --mixed"
+	fi
+	use dbus && myconf="${myconf} --dbus"
+	use debug && myconf="${myconf} --debug"
+	use doc && myconf="${myconf} --doxygen"
+	use freebob && myconf="${myconf} --freebob"
+	use ieee1394 && myconf="${myconf} --firewire"
+
+	einfo "Running \"./waf configure ${myconf}\" ..."
+	waf-utils_src_configure  ${myconf}
+}
+
+src_compile()
+{
+	waf-utils_src_compile 
+}
Index: files/jack-audio-connection-kit-2.9999-r1_link-fix.patch
===================================================================
--- files/jack-audio-connection-kit-2.9999-r1_link-fix.patch	(revision 0)
+++ files/jack-audio-connection-kit-2.9999-r1_link-fix.patch	(working copy)
@@ -0,0 +1,12 @@
+diff --git a/wscript b/wscript
+index e8d9a8b..d6d7529 100644
+--- a/wscript
++++ b/wscript
+@@ -229,6 +229,7 @@ def configure(conf):
+             svnrev = m.group(1)
+ 
+     conf.env.append_unique('LINKFLAGS', ['-lm', '-lstdc++'])
++    conf.env.append_unique('LINKFLAGS', ['-Wl,--copy-dt-needed-entries'])
+ 
+     if Options.options.mixed == True:
+         env_variant2 = conf.env.copy()



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