[proaudio] [2540] media-sound/jack-audio-connection-kit-0.121.3: move to EAPI 5 and autotools-utils; enable optimizations if sse or mmx is set; add patch to respect -march cflag.

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


Revision: 2540
Author:   lilrc
Date:     2013-03-17 20:42:13 +0100 (Sun, 17 Mar 2013)
Log Message:
-----------
media-sound/jack-audio-connection-kit-0.121.3: move to EAPI 5 and autotools-utils; enable optimizations if sse or mmx is set; add patch to respect -march cflag.

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/ChangeLog
    trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/Manifest
    trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.121.3.ebuild

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-0.121.3-respect-march.patch

Modified: trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/ChangeLog	2013-03-17 16:06:59 UTC (rev 2539)
+++ trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/ChangeLog	2013-03-17 19:42:13 UTC (rev 2540)
@@ -2,6 +2,14 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  17 Mar 2013; Karl Linden (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
+  jack-audio-connection-kit-0.121.3.ebuild,
+  +files/jack-audio-connection-kit-0.121.3-respect-march.patch:
+  Move to EAPI 5.
+  Move to autotools-utils eclass.
+  Enable optimizations if sse or mmx use flags are set.
+  Add patch to respect -march CFLAG.
+
   03 Feb 2013; Karl Linden (lilrc) <lilrc@xxxxxxxxxxxxxxxxxxxxx>
   jack-audio-connection-kit-0.121.3.ebuild,
   jack-audio-connection-kit-1.9.9.5.ebuild,

Modified: trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/Manifest	2013-03-17 16:06:59 UTC (rev 2539)
+++ trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/Manifest	2013-03-17 19:42:13 UTC (rev 2540)
@@ -1,4 +1,5 @@
 AUX jack-1.9.9.5-opus_custom.patch 876 SHA256 84a278391aa2a5017292c6ed9338a6fd89e03cd9a56b299872ee000780f18680 SHA512 24b176d0005535fefb4087632ea8ca6b19c40b800aa14040dba5b34eb3595facc21d25537ac8983f11dccc201affc4c9c3dc548766389b4ab0ffa4df2367c6ea WHIRLPOOL 21b3e13ce0abbef215363c438912e56f78ff1d670ea3b6e9d015f15b85ae91714c23a9d69656edaca86fa3724fd18a4180aae0257d808a2012cce55fe5db04c6
+AUX jack-audio-connection-kit-0.121.3-respect-march.patch 851 SHA256 c6672bf67344e504bbcd89a9d225859b27f2c881a215b4141320a0ebdcae0ef8 SHA512 6e32c54b621a497a9ac60ce47f93552d1fcfca4dd04cc8aee84ec944119cd2d1c5af247b1d0fd49a529a57fd88890fd7330a3339c385f6487aba7887590ae4b3 WHIRLPOOL af42755267e038d6d5bdadbc84ab473f518cefd80d124a04803bd583d52f08dfe3e3e8c10e66402a195904acad95a06e4ad7ea8a283f23003d1603e981aa16e0
 AUX jack-audio-connection-kit-2.9999-link-fix.patch 383 SHA256 32bdd416a1fb6586c361967c4095f75155c71c6bdc99a590b302e96c8e7690f9 SHA512 7c338195d67e6d6d412d6cd5f604a5e0254cdb5df192e874460965e9d61817f19e700ce2ae2a5f046d2b8c14b3b003e3dc8657f26511237ccc856fe2a06c3184 WHIRLPOOL 81f4894606f5876f186c6738bf8d6999b16b414bc6d294e0a0a52af517f5f16cce6646232c9efd1b24fe26de1534528e23d67ddb28298bee3be87fd56e002fbc
 AUX jack-audio-connection-kit-freebsd.patch 496 SHA256 7834f5ec198f8e69e2ac119fc2c4ee349ed7e38d003e473fcb41257e7b605df8 SHA512 7c0cf60ddd3d07e12e036082ab10299308d1e112c6190d008a739ab0374c8ecf9e2dcb703055a58f8098e5187044e2351a1786271cecdeae23cbed72e6d68cd6 WHIRLPOOL 3d11baf0f4ebe0613c378d79efcb6b81f94c28e9070471b9a496dda5f0ba90a2eac1e789a621d7ec5d109f018a7f67b0adbd53bbce9e059f3e18b04ca4fb7cd1
 AUX jack-audio-connection-kit-sparc-cpuinfo.patch 659 SHA256 256d48109d32ce8af89042401508392fbb90c499d4cf8b056104dc1a47522fe5 SHA512 c5964413c99fb1dd20dfe52dd40f857dab1cef123b26f74500e2f5607eda870b563595d39c4e4e0684428971e7295c847253d045b2d9ba0183f358630cfa9888 WHIRLPOOL 01d88bfce0394628fab10c48a4b80f0a025b741c5785f05bd22658fd95594e472439f569a450043cf7cc53700149d0d8b785bb7adc74711474fd3f6bcbc6d66f
@@ -6,9 +7,9 @@
 DIST jack-1.9.9.5.tar.bz2 4673914 SHA256 65ef5acceabb1ebd4ac8c437be47a522292e3c2a1f7bfa656de7392d9351ebbd SHA512 173a10943c98cb17f0041216cc24ce03d5e147f27be121fdf66c4e9d21ba8bf125a1749b985cacffb075618d92025231eb047c754d33d777275373d010a85e27 WHIRLPOOL c6ec9ab4ed29ad67364b4ea3c74bc0bcfb9590fe778820be6a9c5247ecb7f6dc3d894599ce6ac7c27a4243fd77308b4345c2479d1567927247df233165bd6641
 DIST jack-audio-connection-kit-0.121.3-dbus.patch 337061 SHA256 da12003ed4528a09d8109ecc7e75f539f0173b23832a1d993800473f1f1d25fd SHA512 9be280a24d59d35bab07da75be407f0790fd36657bfb54d24522337f2a2bc15d6e8a9f88347ff3215ed3e6b32ab827c4e203f5435fefe30c456d638169524192 WHIRLPOOL 37b6a58c5103ff23e606e3dfd0b5ec2630b86f88ddb964635050555e64aa4ab687205e8e29add29659f36866d036098bb7d6128e230349adfd096c06cc641709
 DIST jack-audio-connection-kit-0.121.3.tar.gz 1083545 SHA256 b7095d3deabeecd19772b37241e89c6c79de6afd6c031ba7567513cfe51beafa SHA512 57323393d5209baefe73cc0cd9a0e818b1cfd260cf9aa36cd6ad800252e22e3ddb7fc46649c54b8e840696878147c2d06c8d39fd7300b5bb92aeb69f44ed710f WHIRLPOOL a256cfb7c3546cb06d6003313802b02812d8da9c13671be9b0341a10442cd348a8b3f7fe65e8d27cc47b4e29ded799fa6cc0efa51d81d01f342c7c8eefbc9c55
-EBUILD jack-audio-connection-kit-0.121.3.ebuild 2174 SHA256 2c011c4107e3e6bd0cd7fd4565c621f70693c1417a76fbc9d4dbe3d570cff514 SHA512 bcf678ea3bccc08e513244093e27dd402f9d2119bafab8ee3af2e7e1adbe730d2c9a70992ccc9f96d1765d70053bb01956cf154fbd3113678cc8a24852f6091f WHIRLPOOL 51826c71f19857a3775d5484763ed7b2d190b434742783c55d3f4d24daca37a19d3e43096f703f7a67bd29a64be1faa2ec6d4966f49ed21a28db56a144d229fc
+EBUILD jack-audio-connection-kit-0.121.3.ebuild 2331 SHA256 5d31c09ab47b2b7b586710ce1165140f7683de9e75de30dd55388820529cf120 SHA512 e1614995b9a126ac4e576a128de164167d739f8e85eecb1e9908a575725f801b887b2803deb3d5ead3c959527f7bce3442d67a606da06f3a4bcc24a7d43974aa WHIRLPOOL bcf5e671b21106a56f2b18652f4986be40d3039f09f0cc03236f6aa5ca3967ecdd0b0098581271fbea754b8af8e057de4b1e0da89cb86a06ea1e26c31e9bf6c8
 EBUILD jack-audio-connection-kit-1.9.9.5.ebuild 1931 SHA256 1f35cdcfa242f8e591f65a6c5b8ffa3a03ef3b51cad493bdb9e7c049e8796b62 SHA512 95dc8180e3db7a38e35828f6091d0bbf119c01480e7b941a2ab02f8b436a4e9cf58b23b7047d4d8af61f492fc61d3081bc23bbcd7b4cbdec0c7e3827b11b2fc2 WHIRLPOOL 46fdd4c72245bedba5a156b79e16a76895899e8ed8c7da71b6fd98d0a6dff9edba788e8b60ba13ccbafe09b80042ea9001032587b218eea0bd0e98d1897600c2
 EBUILD jack-audio-connection-kit-1.9999.ebuild 1919 SHA256 84c209409988902c7d405d0554dfe4d5392661085db34fc56f4c6a640a237be8 SHA512 32e5a8f7fbfa57bd7637d0643d32792a0dbe5a3debd61d746cf29649c5b1348c9ccbe5864dff59183ea1fdb8bae185a201c593834776c731c26a68ab31942d95 WHIRLPOOL 0e97cc31f9d0c33014c4f0b2dab9a32777b2adb24aa50e76630b09d82083e8960241ca061b973e171b86177165f460d15cedbe17095d372062c38e4e05d809c1
 EBUILD jack-audio-connection-kit-2.9999.ebuild 1727 SHA256 ae20eafdfd7381dc7a1569aa5f54e3bd4bc20c72d4da6cc0965cd77c9f4f19b6 SHA512 6c8580fb93863dfb5fc94b330a9f731b1fa42ef6094b7dc62387afad19dcffc205f719c0cc297e9f85d7ec26ace7dc9b91e0d8a49502584af94855e85d32afba WHIRLPOOL 8e60f6ad6a6f8d11a02e73c987732d9aaa5fe427ab5ef4e601cfaa0f71d46279123cbb43704112bec696a65e4d080fdf7fa1450410e88d698b7541d654031587
-MISC ChangeLog 11717 SHA256 c154c089f2cce9400409b35488d9a57f65dcf95c26a63108263839d802ac64fc SHA512 80149884bdf115544089a80fff85fe955a473480728b1a0e9eff5c653d02e5173516d0daad223b3a790bb30408d5b61becdf1e24bf32266a214dce067a709497 WHIRLPOOL c2623ff4fdc1e9ec164ee2d0b1388fa09d98e26345d9f14419c045b82956bff03fe4a47e3dea44ccaf5cf442429388581dce97e2417ae09637283a77af9df279
+MISC ChangeLog 12036 SHA256 d426252bc3e92630bdd7f852245bea842929b56d8fbb87cec992a4ebc90cda40 SHA512 00a2ed5c41dba72e86ca543fbe659b897bfe7c406e7110dccc34735d8b253fb6ab7dc17bb9765a2e5ee41bfe93cd00ef3bbb6298605435e76b000ed666640dca WHIRLPOOL 4d773a80eb69566bd66491f5923d49c5a2838079041b0b49b4e84e3976727bac1d2781019ff12b01d929f26d5e7b0e6c5ac6e0830dd89f6f6f989df92aed0bc3
 MISC metadata.xml 978 SHA256 a6a79173ae82e74d4a7f88a28c9475cf61bbb334d1b67ec192fab035d0b89cda SHA512 62eb193b331e2587f4e206516061d7f49eef973366608949c1676a7f43d3eca8e555730cfdc3e803a51e458c6381f56634fe3461e41316df9b7c24f320f9b3ec WHIRLPOOL 3db907774d53f724948661d9794404055d00aa27a8bc23e61c28a7261338023832e363990251dc3e30b5154f23f23050d8db986d621e0ff0beeb790ba9210ef2

Added: trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-0.121.3-respect-march.patch
===================================================================
--- trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-0.121.3-respect-march.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-0.121.3-respect-march.patch	2013-03-17 19:42:13 UTC (rev 2540)
@@ -0,0 +1,24 @@
+diff -Naur jack-audio-connection-kit-0.121.3.orig/configure.ac jack-audio-connection-kit-0.121.3/configure.ac
+--- jack-audio-connection-kit-0.121.3.orig/configure.ac	2011-09-28 15:09:59.000000000 +0200
++++ jack-audio-connection-kit-0.121.3/configure.ac	2013-03-17 20:26:24.169593017 +0100
+@@ -468,20 +468,6 @@
+ dnl as the CPU type. we miss out on some possible optimizations as 
+ dnl a result. oh well.
+ dnl     
+-    
+-    if test x$with_cpu_target != x ; then
+-        JACK_OPT_CFLAGS="-march=$with_cpu_target"
+-    else
+-        if test "$build_cpu" = "i586"; then
+-	   JACK_OPT_CFLAGS="-march=i586 "
+-	elif test "$build_cpu" = "i686"; then
+-	    JACK_OPT_CFLAGS="-march=i686"
+-	elif test "$build_cpu" = "x86_64"; then
+-	    JACK_OPT_CFLAGS="-march=k8"
+-	else
+-	    :
+-	fi
+-    fi
+ 
+ dnl
+ dnl do not add h/w specific flags if asked to let compiler

Modified: trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.121.3.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.121.3.ebuild	2013-03-17 16:06:59 UTC (rev 2539)
+++ trunk/overlays/proaudio/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.121.3.ebuild	2013-03-17 19:42:13 UTC (rev 2540)
@@ -2,10 +2,11 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.121.3.ebuild,v 1.14 2012/07/15 17:57:38 armin76 Exp $
 
-EAPI=2
+EAPI="5"
 
-inherit flag-o-matic eutils multilib autotools
+inherit flag-o-matic eutils autotools-utils
 
+RESTRICT="mirror"
 DESCRIPTION="A low-latency audio server"
 HOMEPAGE="http://www.jackaudio.org";
 SRC_URI="http://www.jackaudio.org/downloads/${P}.tar.gz
@@ -29,12 +30,14 @@
 RDEPEND="${RDEPEND}
 	pam? ( sys-auth/realtime-base )"
 
-src_prepare() {
-	epatch "${FILESDIR}/${PN}-sparc-cpuinfo.patch"
-	epatch "${FILESDIR}/${PN}-freebsd.patch"
-	epatch "${DISTDIR}/${P}-dbus.patch"
-	eautoreconf
-}
+DOCS=( AUTHORS TODO README )
+PATCHES=(
+	"${FILESDIR}/${PN}-sparc-cpuinfo.patch"
+	"${FILESDIR}/${PN}-freebsd.patch"
+	"${FILESDIR}/${P}-respect-march.patch"
+	"${DISTDIR}/${P}-dbus.patch"
+)
+AUTOTOOLS_AUTORECONF="1"
 
 src_configure() {
 	local myconf=""
@@ -46,28 +49,34 @@
 		append-flags -mmmx -msse -m3dnow -O2
 	fi
 
+	# Neither SSE or MMX will be used if --enable-optimize is not given 
+	if use mmx || use sse;  then
+		myconf="${myconf} --enable-optimize"
+	fi
+
 	use doc || export ac_cv_prog_HAVE_DOXYGEN=false
 
-	econf \
-		$(use_enable altivec) \
-		$(use_enable alsa) \
-		$(use_enable coreaudio) \
-		$(use_enable dbus) \
-		$(use_enable debug) \
-		$(use_enable freebob) \
-		$(use_enable ieee1394 firewire) \
-		$(use_enable mmx) \
-		$(use_enable oss) \
-		--disable-portaudio \
-		$(use_enable sse) \
-		--with-html-dir=/usr/share/doc/${PF} \
-		--disable-dependency-tracking \
-		${myconf} || die "configure failed"
+	local myeconfargs=(
+		$(use_enable altivec)
+		$(use_enable alsa)
+		$(use_enable coreaudio)
+		$(use_enable dbus)
+		$(use_enable debug)
+		$(use_enable freebob)
+		$(use_enable ieee1394 firewire)
+		$(use_enable mmx)
+		$(use_enable oss)
+		$(use_enable sse)
+		--disable-portaudio
+		--with-html-dir=/usr/share/doc/${PF}
+		--disable-dependency-tracking
+		${myconf}
+	)
+	autotools-utils_src_configure
 }
 
 src_install() {
-	emake DESTDIR="${D}" install || die "install failed"
-	dodoc AUTHORS TODO README
+	autotools-utils_src_install
 
 	if use examples; then
 		insinto /usr/share/doc/${PF}


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