diff options
Diffstat (limited to 'media-sound')
4 files changed, 183 insertions, 4 deletions
diff --git a/media-sound/jack-audio-connection-kit/ChangeLog b/media-sound/jack-audio-connection-kit/ChangeLog index f1c37a6f1c55..0f45132bbc63 100644 --- a/media-sound/jack-audio-connection-kit/ChangeLog +++ b/media-sound/jack-audio-connection-kit/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/jack-audio-connection-kit # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/jack-audio-connection-kit/ChangeLog,v 1.75 2006/10/08 01:59:09 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/jack-audio-connection-kit/ChangeLog,v 1.76 2006/10/08 03:01:56 eldad Exp $ + +*jack-audio-connection-kit-0.102.20 (08 Oct 2006) + + 08 Oct 2006; Eldad Zack <eldad@gentoo.org> + jack-audio-connection-kit-0.101.1-r1.ebuild, + +jack-audio-connection-kit-0.102.20.ebuild: + Version bump, added cpudetection useflag (see bug #136565). 08 Oct 2006; Eldad Zack <eldad@gentoo.org> -jack-audio-connection-kit-0.100.7-r2.ebuild, diff --git a/media-sound/jack-audio-connection-kit/files/digest-jack-audio-connection-kit-0.102.20 b/media-sound/jack-audio-connection-kit/files/digest-jack-audio-connection-kit-0.102.20 new file mode 100644 index 000000000000..6248a6fc8f25 --- /dev/null +++ b/media-sound/jack-audio-connection-kit/files/digest-jack-audio-connection-kit-0.102.20 @@ -0,0 +1,6 @@ +MD5 d6881555a8b4c923b4ec706832f0d776 jack-audio-connection-kit-0.102.20.tar.gz 761792 +RMD160 5a343fa8c54f629418f3e21165870d7e8a75a4a6 jack-audio-connection-kit-0.102.20.tar.gz 761792 +SHA256 e4506a9f46cd6fa4896e76482f17b7bddeeda3eb35add176d6db479e5c4f8530 jack-audio-connection-kit-0.102.20.tar.gz 761792 +MD5 0f09c9f641609c71ca24a3b9b337a017 netjack-0.12rc1.tar.bz2 25634 +RMD160 4d41929aedb80a64964641f0de1e6a806b071015 netjack-0.12rc1.tar.bz2 25634 +SHA256 631ffe87f3631495bde730069b2529da668ab5993d6574dafbb60e50b5b9497e netjack-0.12rc1.tar.bz2 25634 diff --git a/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.101.1-r1.ebuild b/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.101.1-r1.ebuild index acc31d1d4bfa..8d34b6c19d23 100644 --- a/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.101.1-r1.ebuild +++ b/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.101.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # 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.101.1-r1.ebuild,v 1.3 2006/08/12 15:00:43 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.101.1-r1.ebuild,v 1.4 2006/10/08 03:01:56 eldad Exp $ inherit flag-o-matic eutils multilib @@ -13,7 +13,7 @@ SRC_URI="mirror://sourceforge/jackit/${P}.tar.gz http://netjack.sourceforge.net/ LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86" -IUSE="altivec alsa caps coreaudio doc debug jack-tmpfs mmx oss portaudio sndfile sse netjack" +IUSE="altivec alsa caps coreaudio doc debug jack-tmpfs mmx oss portaudio sndfile sse netjack cpudetection" RDEPEND="dev-util/pkgconfig sndfile? ( >=media-libs/libsndfile-1.0.0 ) @@ -85,6 +85,17 @@ src_compile() { -maltivec -mabi=altivec -mhard-float -mpowerpc-gfxopt fi + # CPU Detection (dynsimd) uses asm routines which requires 3dnow. + # we test if it is present before enabling the configure flag. + if use cpudetection ; then + if (! grep 3dnow /proc/cpuinfo >/dev/null) ; then + ewarn "Can't build cpudetection (dynsimd) without cpu 3dnow support. see bug #136565." + else + einfo "Enabling cpudetection (dynsimd)" + myconf="${myconf} --enable-dynsimd" + fi + fi + use sndfile && \ export SNDFILE_CFLAGS="-I/usr/include" \ export SNDFILE_LIBS="-L/usr/$(get_libdir) -lsndfile" @@ -99,7 +110,7 @@ src_compile() { $(use_enable mmx) \ $(use_enable oss) \ $(use_enable portaudio) \ - $(use_enable sse) $(use_enable sse dynsimd) \ + $(use_enable sse) \ --with-pic \ ${myconf} || die "configure failed" emake || die "compilation failed" diff --git a/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.102.20.ebuild b/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.102.20.ebuild new file mode 100644 index 000000000000..927970e7a413 --- /dev/null +++ b/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.102.20.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2006 Gentoo Foundation +# 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.102.20.ebuild,v 1.1 2006/10/08 03:01:56 eldad Exp $ + +inherit flag-o-matic eutils multilib + +NETJACK=netjack-0.12rc1 + +DESCRIPTION="A low-latency audio server" +HOMEPAGE="http://www.jackaudio.org" +SRC_URI="mirror://sourceforge/jackit/${P}.tar.gz http://netjack.sourceforge.net/${NETJACK}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86" +IUSE="altivec alsa caps coreaudio doc debug jack-tmpfs mmx oss portaudio sndfile sse netjack cpudetection" + +RDEPEND="dev-util/pkgconfig + sndfile? ( >=media-libs/libsndfile-1.0.0 ) + sys-libs/ncurses + caps? ( sys-libs/libcap ) + portaudio? ( =media-libs/portaudio-18* ) + alsa? ( >=media-libs/alsa-lib-0.9.1 ) + !media-sound/jack-cvs" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + netjack? ( dev-util/scons )" + +pkg_setup() { + if ! use sndfile ; then + ewarn "sndfile not in USE flags. jack_rec will not be installed!" + fi + + if use caps; then + if [[ "${KV:0:3}" == "2.4" ]]; then + einfo "will build jackstart for 2.4 kernel" + else + einfo "using compatibility symlink for jackstart" + fi + fi + + if use netjack; then + einfo "including support for experimental netjack, see http://netjack.sourceforge.net/" + fi +} + +src_unpack() { + unpack ${A} + use netjack && unpack ${NETJACK}.tar.bz2 + cd ${S} + + epatch ${FILESDIR}/${PN}-transport.patch +} + +src_compile() { + local myconf + + sed -i "s/^CFLAGS=\$JACK_CFLAGS/CFLAGS=\"\$JACK_CFLAGS $(get-flag -march)\"/" configure + + use doc && myconf="--with-html-dir=/usr/share/doc/${PF}" + + if use jack-tmpfs; then + myconf="${myconf} --with-default-tmpdir=/dev/shm" + else + myconf="${myconf} --with-default-tmpdir=/var/run/jack" + fi + + if use userland_Darwin ; then + append-flags -fno-common + use altivec && append-flags -force_cpusubtype_ALL \ + -maltivec -mabi=altivec -mhard-float -mpowerpc-gfxopt + fi + + # CPU Detection (dynsimd) uses asm routines which requires 3dnow. + # we test if it is present before enabling the configure flag. + if use cpudetection ; then + if (! grep 3dnow /proc/cpuinfo >/dev/null) ; then + ewarn "Can't build cpudetection (dynsimd) without cpu 3dnow support. see bug #136565." + else + einfo "Enabling cpudetection (dynsimd)" + myconf="${myconf} --enable-dynsimd" + fi + fi + + use sndfile && \ + export SNDFILE_CFLAGS="-I/usr/include" \ + export SNDFILE_LIBS="-L/usr/$(get_libdir) -lsndfile" + + econf \ + $(use_enable altivec) \ + $(use_enable alsa) \ + $(use_enable caps capabilities) $(use_enable caps stripped-jackd) \ + $(use_enable coreaudio) \ + $(use_enable debug) \ + $(use_enable doc html-docs) \ + $(use_enable mmx) \ + $(use_enable oss) \ + $(use_enable portaudio) \ + $(use_enable sse) \ + --with-pic \ + ${myconf} || die "configure failed" + emake || die "compilation failed" + + if use caps && [[ "${KV:0:3}" == "2.4" ]]; then + einfo "Building jackstart for 2.4 kernel" + cd ${S}/jackd + emake jackstart || die "jackstart build failed." + fi + + if use netjack; then + cd ${WORKDIR}/${NETJACK} + scons jack_source_dir=${S} + fi + +} + +src_install() { + make DESTDIR=${D} datadir=/usr/share/doc install || die + + if use caps; then + if [[ "${KV:0:3}" == "2.4" ]]; then + cd ${S}/jackd + dobin jackstart + else + dosym /usr/bin/jackd /usr/bin/jackstart + fi + fi + + if ! use jack-tmpfs; then + keepdir /var/run/jack + chmod 4777 ${D}/var/run/jack + fi + + if use doc; then + mv ${D}/usr/share/doc/${PF}/reference/html \ + ${D}/usr/share/doc/${PF}/ + + insinto /usr/share/doc/${PF} + doins -r ${S}/example-clients + else + rm -rf ${D}/usr/share/doc + fi + + rm -rf ${D}/usr/share/doc/${PF}/reference + + if use netjack; then + cd ${WORKDIR}/${NETJACK} + dobin alsa_in + dobin alsa_out + dobin jacknet_client + insinto /usr/lib/jack + doins jack_net.so + fi +} |