summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kuther <gimpel@sonnenkinder.org>2009-03-16 21:56:35 +0100
committerThomas Kuther <gimpel@sonnenkinder.org>2009-03-16 21:56:35 +0100
commita02da583fe29d04f8c1b37a9f7948cde3f394c9c (patch)
tree65655708ee1cadfeb79f6bcb3b1ddbfc8a7e7a26 /media-sound
parentmedia-libs: good bye MULTILIB_SPLITTREE (diff)
downloadmultilib-portage-a02da583fe29d04f8c1b37a9f7948cde3f394c9c.tar.gz
multilib-portage-a02da583fe29d04f8c1b37a9f7948cde3f394c9c.tar.bz2
multilib-portage-a02da583fe29d04f8c1b37a9f7948cde3f394c9c.zip
soundlibs: pt2: the mighty jack-audio-connection-kit
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/jack-audio-connection-kit/Manifest3
-rw-r--r--media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch17
-rw-r--r--media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.116.2.ebuild67
3 files changed, 87 insertions, 0 deletions
diff --git a/media-sound/jack-audio-connection-kit/Manifest b/media-sound/jack-audio-connection-kit/Manifest
new file mode 100644
index 000000000..b4daa930e
--- /dev/null
+++ b/media-sound/jack-audio-connection-kit/Manifest
@@ -0,0 +1,3 @@
+AUX jack-audio-connection-kit-sparc-cpuinfo.patch 659 RMD160 b14b46eef7a70c91d8501b5766f69e718b67e842 SHA1 26a4c95457b6c987ddc616dabe33ecea69554673 SHA256 256d48109d32ce8af89042401508392fbb90c499d4cf8b056104dc1a47522fe5
+DIST jack-audio-connection-kit-0.116.2.tar.gz 944106 RMD160 ffa9238b6083778b91dfa266524074bfa1592399 SHA1 178beb2d5ef906c029c1cdbe534f16445f342f0f SHA256 ce6e1f61a3b003137af56b749e5ed4274584167c0877ea9ef2d83f47b11c8d3d
+EBUILD jack-audio-connection-kit-0.116.2.ebuild 1922 RMD160 93b41056b156814e5b48ca3f813f84d9ddcc0b4c SHA1 feaf6a7f95fba1b6110cdf07b4ea5d5ae27b7011 SHA256 c2b9c190276d81ee3a20b2ae12b00d1a35e858998c49a8d6daff8123a41aea35
diff --git a/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch b/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch
new file mode 100644
index 000000000..8017f90eb
--- /dev/null
+++ b/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch
@@ -0,0 +1,17 @@
+On Linux/SPARC, /proc/cpuinfo doesn't include "Cpu0Bogo" anymore,
+use "Cpu0ClkTck" instead to determine the processor speed.
+
+linux upstream commit 8b99cfb8cc51adae7f5294c8962a026c63100959
+
+--- old/config/os/gnu-linux/time.c
++++ new/config/os/gnu-linux/time.c
+@@ -152,7 +152,8 @@
+ defined(__x86_64__)
+ ret = sscanf(buf, "cpu MHz : %" SCNu64, &mhz);
+ #elif defined( __sparc__ )
+- ret = sscanf(buf, "Cpu0Bogo : %" SCNu64, &mhz);
++ ret = sscanf(buf, "Cpu0ClkTck : %" PRIx16, &mhz);
++ mhz = mhz / 1000 / 1000; // hz -> mhz
+ #elif defined( __mc68000__ )
+ ret = sscanf(buf, "Clocking: %" SCNu64, &mhz);
+ #elif defined( __s390__ )
diff --git a/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.116.2.ebuild b/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.116.2.ebuild
new file mode 100644
index 000000000..a1d7d7e32
--- /dev/null
+++ b/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.116.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2009 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.116.2.ebuild,v 1.1 2009/02/19 08:04:02 aballier Exp $
+
+EAPI="2"
+
+inherit flag-o-matic eutils multilib-xlibs
+
+DESCRIPTION="A low-latency audio server"
+HOMEPAGE="http://www.jackaudio.org"
+SRC_URI="http://www.jackaudio.org/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="3dnow altivec alsa coreaudio doc debug examples mmx oss sse cpudetection"
+
+RDEPEND=">=media-libs/libsndfile-1.0.0[lib32?]
+ sys-libs/ncurses
+ alsa? ( >=media-libs/alsa-lib-0.9.1[lib32?] )
+ media-libs/libsamplerate[lib32?]
+ !media-sound/jack-cvs"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-sparc-cpuinfo.patch"
+}
+
+multilib-xlibs_src_configure_internal() {
+ local myconf=""
+
+ # CPU Detection (dynsimd) uses asm routines which requires 3dnow, mmx and sse.
+ if use cpudetection && use 3dnow && use mmx && use sse ; then
+ einfo "Enabling cpudetection (dynsimd). Adding -mmmx, -msse, -m3dnow and -O2 to CFLAGS."
+ myconf="${myconf} --enable-dynsimd"
+ append-flags -mmmx -msse -m3dnow -O2
+ fi
+
+ use doc || export ac_cv_prog_HAVE_DOXYGEN=false
+
+ econf \
+ $(use_enable altivec) \
+ $(use_enable alsa) \
+ $(use_enable coreaudio) \
+ $(use_enable debug) \
+ $(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"
+}
+
+multilib-xlibs_src_install_internal() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc AUTHORS TODO README
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r "${S}/example-clients"
+ fi
+}