summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libsamplerate/ChangeLog10
-rw-r--r--media-libs/libsamplerate/Manifest14
-rw-r--r--media-libs/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch19
-rw-r--r--media-libs/libsamplerate/files/libsamplerate-0.1.7-tests.patch21
-rw-r--r--media-libs/libsamplerate/libsamplerate-0.1.7.ebuild41
5 files changed, 99 insertions, 6 deletions
diff --git a/media-libs/libsamplerate/ChangeLog b/media-libs/libsamplerate/ChangeLog
index 5d6625c6095d..62c0ca0c4be7 100644
--- a/media-libs/libsamplerate/ChangeLog
+++ b/media-libs/libsamplerate/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/libsamplerate
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/ChangeLog,v 1.59 2009/02/08 09:41:03 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/ChangeLog,v 1.60 2009/02/20 08:59:54 aballier Exp $
+
+*libsamplerate-0.1.7 (20 Feb 2009)
+
+ 20 Feb 2009; Alexis Ballier <aballier@gentoo.org>
+ +files/libsamplerate-0.1.7-macro-quoting.patch,
+ +files/libsamplerate-0.1.7-tests.patch, +libsamplerate-0.1.7.ebuild:
+ Version bump by Richard Ash <richard@audacityteam.org>, bug #259274, plus
+ a patch from Erik to fix tests on 64 bits platforms.
*libsamplerate-0.1.6 (08 Feb 2009)
diff --git a/media-libs/libsamplerate/Manifest b/media-libs/libsamplerate/Manifest
index f3fdef0f5df6..ef0bd8e7e4b0 100644
--- a/media-libs/libsamplerate/Manifest
+++ b/media-libs/libsamplerate/Manifest
@@ -5,21 +5,25 @@ AUX libsamplerate-0.1.2-automagic.patch 747 RMD160 2a7b5c514eeb2eef0a3eab71a551d
AUX libsamplerate-0.1.2-dontbuild-tests-examples.patch 1122 RMD160 3c3d55cefb1b0d0dea4a5ea9b0cd46ac32c9cc32 SHA1 badca44108e55f82b48d41a2295f4aae5b39cf4d SHA256 c08cce5c0b910155ac25f6b35e3365333aa2e32964f775218abd4bf6005a0c85
AUX libsamplerate-0.1.3-dontbuild-tests-examples.patch 1187 RMD160 021f3890187c82719347c9281a90955b8d561d90 SHA1 89ea3db01d7225525cd64112df377d31cb8c7d81 SHA256 edea4de6720b9a21a60381e13c0802314318c9273cba472806590aa8566dd2be
AUX libsamplerate-0.1.3-pkg_prog_pkg_config.patch 370 RMD160 f9107c7cb1760d87867410f90fbd7013804133c4 SHA1 dc0cd0ac35ca775d2949ae9445c11faf8e86bf38 SHA256 d5439f324b98f6aaa97969fb1bc14c2cf51455c45bd392cef0956eefaf130297
+AUX libsamplerate-0.1.7-macro-quoting.patch 371 RMD160 9cb5e572451c8e747f8df5ded2c52f0054c53178 SHA1 cb504972c1afe675ece4cbe112dc24f32a38f8cc SHA256 51c559d62b51c9f7bc036459feb675e1641609c2ddec088410f12d20d8cdeb60
+AUX libsamplerate-0.1.7-tests.patch 1031 RMD160 92f9d36e3875046e29f558679b3565b24c4e6fba SHA1 a8ede00a1a0bbf2be8104cee8a5e7d2bfeba80f7 SHA256 80228bb8a4f9cd923da0fca5929666dd148e783802ebcb688c01829c0ea5a2c8
DIST libsamplerate-0.1.2.tar.gz 707867 RMD160 4e5453821b80b17586ad66068e409ed0437cca02 SHA1 663ac147d1dfbe686bf687e78143259b5075fc13 SHA256 98b8766323c78b7b718dfd4ef6b9292bbf0796b742abb2319b8278cbeee731d4
DIST libsamplerate-0.1.3.tar.gz 4261589 RMD160 7bf12883ade8f9dd24d4ee89cb740e5df06358ec SHA1 4a0b493aa868fb6f9e7e8e5db2fb44cfbcd2d123 SHA256 aa95c99c1662e165cdc30335e6d1282ea3388ce6badde6208d4eaf75090e832d
DIST libsamplerate-0.1.4.tar.gz 4257590 RMD160 88fa0cef37a1dc8b8ca4d656dc5ac1ed82560c49 SHA1 47837f4ab5f3655f3d59ce2dc9bcf032826e52e8 SHA256 96a69f4d6e57837b148e308bddedbd392a9d6568ad142074ad263415279a464d
DIST libsamplerate-0.1.6.tar.gz 4328025 RMD160 8aac6bfa3473b5107d6045b54b99cdddfb24c5f6 SHA1 0ab8e2864c65ba16204b48bd367c2a3c307e574d SHA256 34b7347b0665a5c6528e7322a115433770a70899ece2ada1c203c8a46d547a0a
+DIST libsamplerate-0.1.7.tar.gz 4340634 RMD160 697a355393d21ad66ea4313b928f2c3322f67a39 SHA1 98a52392eb97f9ba724ca024b3af29a8a0cc0206 SHA256 e0a646224a0323ac63f56ef009b2d7fee11452a7b8af139b19ae71d2890dbc9c
EBUILD libsamplerate-0.1.2-r1.ebuild 1254 RMD160 35ce2550d19fda3d2934fb81fd0154342780acda SHA1 da53e125fce4b428971e82806ee81f6e9bdd22cb SHA256 bf890038746af96422a42461fc8155719aecb5972838d9a2abe6540b2384699e
EBUILD libsamplerate-0.1.2.ebuild 1021 RMD160 003514f4abc77cfcc7c2029b2c509869e1d69e52 SHA1 3e6f101be38a7a25127805477e58ec65344783ec SHA256 39c90a6bcd4885bd703d6a55526994590d5e95bcde0096ef0d50cad542e366fb
EBUILD libsamplerate-0.1.3.ebuild 1293 RMD160 c96340b44e89531e7ece1312838841ce5c6143e4 SHA1 f914fb91b798860ae8f47a9ac225473d6e1fa13d SHA256 f1c79a647173730be4c4715236cdb75e46852e9bbb2a710cb7c6798998c29033
EBUILD libsamplerate-0.1.4.ebuild 1253 RMD160 cf2a89f436dc9eb28ef7e73dbbc0d4bdd7fca5c5 SHA1 d07a0cfd9e10c04a67a06377aa572c6d764b0872 SHA256 3b127ea936688b58e191a48c76a55247579118d2a3322db7f64a6cc81d8997fd
EBUILD libsamplerate-0.1.6.ebuild 1149 RMD160 3d09432fc986b714345f2bd2882c7bc5cdc76410 SHA1 816e4252809dec7941a5a89c0acbb15224d06a08 SHA256 6d31f94af7008241090ea31865c770ad26cfdd8e8781151022f664621bc310d0
-MISC ChangeLog 8174 RMD160 14358b64ac79ac67ef0989bfe83c675c47f3b369 SHA1 505efe9d9557df7d1c5e6391a9e21bb4d047ac08 SHA256 09869827ae07111c25e4a60b1ffd9c942e981f54d6aed23973c2230d9333761a
+EBUILD libsamplerate-0.1.7.ebuild 1151 RMD160 468361634e71dad4738b83943d1224910e383946 SHA1 8c55818712500cbf6a5b9762a7a418d2a4ed2fdb SHA256 6f91b2b7a939bb41794787573ff5ab2008b9ee5e0e99be74a4d2e0cef9d33691
+MISC ChangeLog 8515 RMD160 a36ed2d6eae24f037a4b1c370fddba5bc3c25f72 SHA1 fda2ff92257705f00086bf62d5956a467b8493a4 SHA256 8fa39cdd3cca7241ab36f0d4c744bcf1380d454fa967d110d9b0180f212d95c4
MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
+Version: GnuPG v2.0.10 (GNU/Linux)
-iEYEARECAAYFAkmOqLUACgkQvFcC4BYPU0pM3ACgpq7SUnSqBXx7onxiBMsPuh3c
-wj0AoM1BQ9LEVZ+dbZOAMY0SK9GPLLc1
-=V4UM
+iEYEARECAAYFAkmecQ8ACgkQvFcC4BYPU0rCzQCgoExZneJ/6Axwu0IPpAYlu4DC
+VBwAn0djrlifzge2vx/UboUjbp87Ym+v
+=/m4V
-----END PGP SIGNATURE-----
diff --git a/media-libs/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch b/media-libs/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch
new file mode 100644
index 000000000000..7b42488e6e9e
--- /dev/null
+++ b/media-libs/libsamplerate/files/libsamplerate-0.1.7-macro-quoting.patch
@@ -0,0 +1,19 @@
+--- acinclude.m4.old 2009-02-16 20:40:05.000000000 +0000
++++ acinclude.m4 2009-02-16 20:43:42.000000000 +0000
+@@ -135,7 +135,6 @@
+ fi
+
+ )
+-]
+
+ if test $ac_cv_c_byte_order = big ; then
+ ac_cv_c_big_endian=1
+@@ -154,7 +153,7 @@
+ AC_MSG_WARN([[*****************************************************************]])
+ fi
+
+-)# AC_C_FIND_ENDIAN
++])# AC_C_FIND_ENDIAN
+
+
+
diff --git a/media-libs/libsamplerate/files/libsamplerate-0.1.7-tests.patch b/media-libs/libsamplerate/files/libsamplerate-0.1.7-tests.patch
new file mode 100644
index 000000000000..e25109aef41c
--- /dev/null
+++ b/media-libs/libsamplerate/files/libsamplerate-0.1.7-tests.patch
@@ -0,0 +1,21 @@
+Patch from Erik (upstream) to fix tests on 64 bits platforms.
+
+Index: libsamplerate-0.1.7/tests/callback_test.c
+===================================================================
+--- libsamplerate-0.1.7.orig/tests/callback_test.c
++++ libsamplerate-0.1.7/tests/callback_test.c
+@@ -137,11 +137,11 @@ callback_test (int converter, double src
+
+ src_state = src_delete (src_state) ;
+
+- if (fabs (read_total - src_ratio * ARRAY_LEN (test_callback_data.data)) > src_ratio)
++ if (fabs (read_total / src_ratio - ARRAY_LEN (test_callback_data.data)) > 2.0)
+ { printf ("\n\nLine %d : input / output length mismatch.\n\n", __LINE__) ;
+ printf (" input len : %d\n", ARRAY_LEN (test_callback_data.data)) ;
+- printf (" output len : %ld (should be %g +/- %g)\n\n", read_total,
+- floor (0.5 + src_ratio * ARRAY_LEN (test_callback_data.data)), ceil (src_ratio)) ;
++ printf (" output len : %ld (should be %g +/- 2)\n\n", read_total,
++ floor (0.5 + src_ratio * ARRAY_LEN (test_callback_data.data))) ;
+ exit (1) ;
+ } ;
+
diff --git a/media-libs/libsamplerate/libsamplerate-0.1.7.ebuild b/media-libs/libsamplerate/libsamplerate-0.1.7.ebuild
new file mode 100644
index 000000000000..b4942217cacc
--- /dev/null
+++ b/media-libs/libsamplerate/libsamplerate-0.1.7.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/libsamplerate-0.1.7.ebuild,v 1.1 2009/02/20 08:59:54 aballier Exp $
+
+inherit eutils autotools
+
+DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio"
+HOMEPAGE="http://www.mega-nerd.com/SRC/"
+SRC_URI="http://www.mega-nerd.com/SRC/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="sndfile"
+
+RDEPEND="sndfile? ( >=media-libs/libsndfile-1.0.2 )"
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.14"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-0.1.3-dontbuild-tests-examples.patch
+ epatch "${FILESDIR}"/${P}-macro-quoting.patch
+ epatch "${FILESDIR}"/${P}-tests.patch
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --disable-fftw \
+ $(use_enable sndfile) \
+ --disable-dependency-tracking
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS ChangeLog NEWS README
+ dohtml doc/*.html doc/*.css doc/*.png
+}