diff options
4 files changed, 90 insertions, 1 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/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 +} |