Upgraded the libsamplerate Portage package

Upgraded media-libs/libsamplerate to version 0.1.7 on amd64, arm, x86

BUG=chromium-os:29554
TEST=build_packages for stumpy, x86-generic, and daisy.

Change-Id: Id7dd975d0d476aa9c3d4d8d70075a43ecf7a48f2
Reviewed-on: https://gerrit.chromium.org/gerrit/20318
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Ready: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
Dylan Reid 2012-04-16 10:52:50 -07:00 committed by Gerrit
parent 3cfdd016dd
commit bed9a50120
6 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST libsamplerate-0.1.7.tar.gz 4340634 RMD160 697a355393d21ad66ea4313b928f2c3322f67a39 SHA1 98a52392eb97f9ba724ca024b3af29a8a0cc0206 SHA256 e0a646224a0323ac63f56ef009b2d7fee11452a7b8af139b19ae71d2890dbc9c

View File

@ -0,0 +1,32 @@
Index: libsamplerate-0.1.3/examples/Makefile.am
===================================================================
--- libsamplerate-0.1.3.orig/examples/Makefile.am
+++ libsamplerate-0.1.3/examples/Makefile.am
@@ -3,7 +3,7 @@
bin_PROGRAMS = sndfile-resample
-noinst_PROGRAMS = varispeed-play timewarp-file
+EXTRA_PROGRAMS = varispeed-play timewarp-file
SAMPLERATEDIR =../src
INCLUDES = -I$(srcdir)/$(SAMPLERATEDIR) @OS_SPECIFIC_INCLUDES@
Index: libsamplerate-0.1.3/tests/Makefile.am
===================================================================
--- libsamplerate-0.1.3.orig/tests/Makefile.am
+++ libsamplerate-0.1.3/tests/Makefile.am
@@ -1,4 +1,4 @@
-noinst_PROGRAMS = misc_test termination_test simple_test callback_test \
+EXTRA_PROGRAMS = misc_test termination_test simple_test callback_test \
reset_test multi_channel_test snr_bw_test \
float_short_test varispeed_test callback_hang_test \
src-evaluate throughput_test
@@ -55,7 +55,7 @@ throughput_test_LDADD = $(SAMPLRATEDIR)
#===============================================================================
-check: $(noinst_PROGRAMS)
+check: $(EXTRA_PROGRAMS)
date
uname -a
./misc_test

View File

@ -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

View File

@ -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) ;
} ;

View File

@ -0,0 +1,41 @@
# Copyright 1999-2010 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.10 2010/01/31 16:05:00 armin76 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 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
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
}

View File

@ -0,0 +1,12 @@
DEFINED_PHASES=compile install unpack
DEPEND=sndfile? ( >=media-libs/libsndfile-1.0.2 ) >=dev-util/pkgconfig-0.14 || ( =sys-devel/automake-1.11* ) >=sys-devel/autoconf-2.61 sys-devel/libtool
DESCRIPTION=Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio
HOMEPAGE=http://www.mega-nerd.com/SRC/
IUSE=sndfile
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos
LICENSE=GPL-2
RDEPEND=sndfile? ( >=media-libs/libsndfile-1.0.2 )
SLOT=0
SRC_URI=http://www.mega-nerd.com/SRC/libsamplerate-0.1.7.tar.gz
_eclasses_=autotools 63332a15502113ca711ccccb3889a109 eutils 33ef77a15337022e05342d2c772a7a5a libtool 0fd90d183673bf1107465ec45849d1ea multilib 5f4ad6cf85e365e8f0c6050ddd21659e portability 0be430f759a631e692678ed796e09f5c toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68 user 9e552f935106ff0bc92af16da64b4b29
_md5_=97edc3cf9f08c899d19bb5c53ab57845