summaryrefslogtreecommitdiff
path: root/media-libs/libsndfile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libsndfile
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libsndfile')
-rw-r--r--media-libs/libsndfile/Manifest13
-rw-r--r--media-libs/libsndfile/files/libsndfile-1.0.17-regtests-need-sqlite.patch25
-rw-r--r--media-libs/libsndfile/files/libsndfile-1.0.25-make.patch14
-rw-r--r--media-libs/libsndfile/files/libsndfile-1.0.27-fix-tests.patch12
-rw-r--r--media-libs/libsndfile/files/libsndfile-1.0.28-arm-varargs-failure.patch32
-rw-r--r--media-libs/libsndfile/libsndfile-1.0.26.ebuild96
-rw-r--r--media-libs/libsndfile/libsndfile-1.0.27-r1.ebuild75
-rw-r--r--media-libs/libsndfile/libsndfile-1.0.28-r1.ebuild62
-rw-r--r--media-libs/libsndfile/metadata.xml8
9 files changed, 337 insertions, 0 deletions
diff --git a/media-libs/libsndfile/Manifest b/media-libs/libsndfile/Manifest
new file mode 100644
index 000000000000..af214132ace1
--- /dev/null
+++ b/media-libs/libsndfile/Manifest
@@ -0,0 +1,13 @@
+AUX libsndfile-1.0.17-regtests-need-sqlite.patch 894 SHA256 c53026864c6a05b1ccc8b12e7af895f5d0e2d3a00335fd9f49ed7cc9aecece73 SHA512 1c914a1e51b15149bdba7d242f1ce6979d36cee7e6a6771c6b301d309805e1d5c9db28d4ab968b573504b88a9531c1a3b67af8d92d69f59c047ba692746ce5ed WHIRLPOOL efdf9e09c71f4c3701ebdcc9f300490abed19b096495d0b9a45352f6b996fa1856457e7f5a022ea0f4a559d62e4453899b1239b902f19dace5b9569825dcb8f7
+AUX libsndfile-1.0.25-make.patch 444 SHA256 7962f824fb339c213e45b30f13d35b26069f878fa163f3eafced35250e7090be SHA512 4a5b92904ac15b3116ea864a77f77c504751630ed9eadbe520466410f27179729a1493099f7229a08755ef50a91b08bb2b27fa14c99d84418a08de22bdab131d WHIRLPOOL feabd9d6d96feea30ffd174a7045a3791883a5216ee534c22ef78624e4391af741b86c3e4046144a942617171607986284315eebd5d00d98091de1a634614d93
+AUX libsndfile-1.0.27-fix-tests.patch 366 SHA256 4ffdc864b47eb697fbb39276cee29cac5e1ca0a93317891e457ef500d8814f8a SHA512 df934cb531b2cc64296534cf8e6cd6aaf9ba538aeb4abf6d86f1f0abdd46f0a76317b2192a71054fe4ea99bfa2eaaa52b2e5701ac3dbf4a8f404d5d8720284fa WHIRLPOOL 635e0e2918dd898cae072dcbcd3ec3067459cbe5c5b20d399b2c7e10ca2f5f290e5417b395287bfc1fe5374d935b486f13bd3fc54fea05f887c7f43dc252041b
+AUX libsndfile-1.0.28-arm-varargs-failure.patch 1329 SHA256 60c8d82322bd78c08f284e424b4c5320eefa7ff39c4aa5f2d5c673f33e335592 SHA512 4577282dc0b71d456a562d06d8b22958f24caf383c6c4c8aa2c9006614d3110b7d6bbf896ce393468455460cb8d466c09a48416cdf159e30de6d5ecaa0d4cf09 WHIRLPOOL 9722b9043164b3003046d9d2e3b1c8ce4683f073cb97b7150b9296d6d33f9ce48b520a43744c79b22a363865db4b96abcec0aa96bdce1e04ccae5643f7f70421
+DIST libsndfile-1.0.26.tar.gz 1080727 SHA256 cd6520ec763d1a45573885ecb1f8e4e42505ac12180268482a44b28484a25092 SHA512 49a131482f9735e2f171ab7b59770cafc6b92e177f88bed9d2e6189390abc5aa473081dce3e4ec3c0e32b6f3d8c19901136b3df15b9222c11b578f522e88257e WHIRLPOOL 30ea43dab113a4e0fd5cf65e340f50943dae2a100a8b029473adb3c21f388d05a7e124d6219b25c22dc29efa3ab24a600eec958b435f7a050129e17d809e89fb
+DIST libsndfile-1.0.27.tar.gz 1192337 SHA256 a391952f27f4a92ceb2b4c06493ac107896ed6c76be9a613a4731f076d30fac0 SHA512 8272e3219d64be01034d3f7f7565bf20075c04533469a963ad055f00767e9c2987463fb982894ddc1023d5d6c2338f55f8c3e6d2e36635484dde577a0d2ac770 WHIRLPOOL 66f4a88a8215149ed05d5596587628cb887056b5ea555cacbaff59f1011224f1108564d96c07565e35a904f9c47a184ae368f3188790238cb620ed15ee6a1e9c
+DIST libsndfile-1.0.28.tar.gz 1202833 SHA256 1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9 SHA512 890731a6b8173f714155ce05eaf6d991b31632c8ab207fbae860968861a107552df26fcf85602df2e7f65502c7256c1b41735e1122485a3a07ddb580aa83b57f WHIRLPOOL 261951f56ef120b2119935e3960e5523dcd845e9c127409c6d1a20e7e3a59f53e7cfe4c974005e206c56c8fc20cd287cfb554ef2ae3e9540487c9008dba5d8d2
+EBUILD libsndfile-1.0.26.ebuild 2692 SHA256 ef280ea735df622463f0bc6f903259f17e3787a8e0c6d9d5e374113878fc7b94 SHA512 94cd99345b65b581616bbf44a6218359c9e10ed2378b651616b240e05dbfce60cddd53cbbbdf369b70d54e4f90480e97d6b858836a21f130c82e51f7340e73d9 WHIRLPOOL aa5c4a6f2cfb3d706e9871bde49c7e714e9ebb0ebc6b3711b552767d76aba32fe0b68dece177463a1de7197341e4bb0c9a1afafe11629df0eec199338989d590
+EBUILD libsndfile-1.0.27-r1.ebuild 1912 SHA256 4bcaf142b5ffc70de136bd314ac6ad07130d2d00c9db347cacfa60d539795d3f SHA512 67f8f3d757dad12c5a087cc49a54b6b6d93be7d89fad9ef5e9fe7c89fb013d3f11688517574c08e258a50cade576dae82b1ca9b996243c84d97ae85987706f00 WHIRLPOOL 9b59c050d342a660601ae7c7b45c07bac9791a212342c50fdfe98c562e57d6c9ff6b7df3904f9ec97a50e4b4ac682839bcb44e09a2999756fe99dd197eea9ae8
+EBUILD libsndfile-1.0.28-r1.ebuild 1664 SHA256 254e40bf34d5a0b00e205af0f08bf5412c5433f994929c8defb1ce791b8385e5 SHA512 49446be5c9f84afa4ffaae7b1dade1140bb98de0e91fc88d0ffe2cd1e782cc56b9f879f00a255b2b109cab77280ad99acb5c12a9b564ce56f0b57acca119e2bd WHIRLPOOL 558187e2fa1f51d507c4c1bd7a650f94ec175d9c638d828c59cf856bda7a55280b23f0d9610fb0b9e183375ff6c4d1559e91ef7effe0af4ae056368f6be8a00e
+MISC ChangeLog 5750 SHA256 9d1d7328d23be213d42365977269e84f81041297c5776063d1864cb0af9a7327 SHA512 a0f8be5c80ab861bcd5defb11ad32c90c64f9679af0476322d979aaa8bd4f088deb985e298e8c5640e6fc75cf68c2a229062c77d558fc6d685b36458146d5a32 WHIRLPOOL 1aff80e5eeb64493716cf32bd5e058db706a501124d3dad23ac0e3ca6e864986dca6a882d41c76f3e0caf561aa37a942c4ce1924d5a07703ae792748ae3f8ef3
+MISC ChangeLog-2015 22119 SHA256 fa4675ddab48c3377fd1292e3abfb2ec820857a4a14844748fe2f63352c82370 SHA512 9c8978c4608e8b7c042050e6eda234db8541c246168670b6247c8f9a946967bc34b68cbc8abfe10046aca483f5faa1b7cdd28988a350d6782b730d8e2802dea7 WHIRLPOOL b314308b8409737eca0adfd7e255983ec4db1e3c64850165a56c7f2ca56eccf8a74dd7a7cda30b3346b22af0e2c5d2b9acd8e1bed4272ef45da074494e0e7da0
+MISC metadata.xml 259 SHA256 1321ae0a7e2232e5201f0537a1a6a49bd4fa5f03c1224a00e3edfb71d02bd29a SHA512 7315c86cee93f8109e30dd379dde35c51ad60e759a037cc8ee3feeec369434d65fecf785480861e7fc6a17baaf81517083284783b4b35143c911da98846d0360 WHIRLPOOL a2363e099d54512fba9b48dab9ebf3cb1346857aff3fedb1b318c5942093ee1fc6a5492f11faf5713e934dfa0fbbc70eab52e5319b5afc3d0e17ff56caa7c3fa
diff --git a/media-libs/libsndfile/files/libsndfile-1.0.17-regtests-need-sqlite.patch b/media-libs/libsndfile/files/libsndfile-1.0.17-regtests-need-sqlite.patch
new file mode 100644
index 000000000000..85d628000f96
--- /dev/null
+++ b/media-libs/libsndfile/files/libsndfile-1.0.17-regtests-need-sqlite.patch
@@ -0,0 +1,25 @@
+Index: libsndfile-1.0.17/configure.ac
+===================================================================
+--- libsndfile-1.0.17.orig/configure.ac
++++ libsndfile-1.0.17/configure.ac
+@@ -268,6 +268,7 @@ else
+ fi
+
+ AC_DEFINE_UNQUOTED([HAVE_SQLITE3],$HAVE_SQLITE3,[Set to 1 if you have libsqlite3.])
++AM_CONDITIONAL(HAVE_SQLITE3, [test "x$ac_cv_sqlite3" = "xyes"])
+
+ #====================================================================================
+ # Determine if the processor can do clipping on float to int conversions.
+Index: libsndfile-1.0.17/regtest/Makefile.am
+===================================================================
+--- libsndfile-1.0.17.orig/regtest/Makefile.am
++++ libsndfile-1.0.17/regtest/Makefile.am
+@@ -1,6 +1,8 @@
+ ## Process this file with automake to produce Makefile.in
+
++if HAVE_SQLITE3
+ bin_PROGRAMS = sndfile-regtest
++endif
+
+ noinst_HEADERS = regtest.h
+
diff --git a/media-libs/libsndfile/files/libsndfile-1.0.25-make.patch b/media-libs/libsndfile/files/libsndfile-1.0.25-make.patch
new file mode 100644
index 000000000000..70cc4e2e4b4b
--- /dev/null
+++ b/media-libs/libsndfile/files/libsndfile-1.0.25-make.patch
@@ -0,0 +1,14 @@
+Honour MAKE variable for systems with make != GNU make (eg fbsd)
+
+Index: libsndfile-1.0.25/configure.ac
+===================================================================
+--- libsndfile-1.0.25.orig/configure.ac
++++ libsndfile-1.0.25/configure.ac
+@@ -701,5 +701,5 @@ if test x$prefix != "x/usr" ; then
+ echo
+ fi
+
+-(cd src && make genfiles)
+-(cd tests && make genfiles)
++(cd src && ${MAKE-make} genfiles)
++(cd tests && ${MAKE-make} genfiles)
diff --git a/media-libs/libsndfile/files/libsndfile-1.0.27-fix-tests.patch b/media-libs/libsndfile/files/libsndfile-1.0.27-fix-tests.patch
new file mode 100644
index 000000000000..b8e7e2e815be
--- /dev/null
+++ b/media-libs/libsndfile/files/libsndfile-1.0.27-fix-tests.patch
@@ -0,0 +1,12 @@
+Fix tests
+
+--- a/examples/Makefile.am
++++ b/examples/Makefile.am
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in
+
+-noinst_PROGRAMS = make_sine sfprocess list_formats generate sndfilehandle \
++check_PROGRAMS = make_sine sfprocess list_formats generate sndfilehandle \
+ sndfile-to-text sndfile-loopify
+
+ AM_CPPFLAGS = -I$(top_srcdir)/src
diff --git a/media-libs/libsndfile/files/libsndfile-1.0.28-arm-varargs-failure.patch b/media-libs/libsndfile/files/libsndfile-1.0.28-arm-varargs-failure.patch
new file mode 100644
index 000000000000..ed726f829769
--- /dev/null
+++ b/media-libs/libsndfile/files/libsndfile-1.0.28-arm-varargs-failure.patch
@@ -0,0 +1,32 @@
+From 9d470ee5577d3ccedb1c28c7e0a7295ba17feaf5 Mon Sep 17 00:00:00 2001
+From: Erik de Castro Lopo <erikd@mega-nerd.com>
+Date: Sun, 16 Apr 2017 17:54:17 +1000
+Subject: [PATCH] src/rf64.c: Fix varargs related bug
+
+C's <stargs.h> functionality isn't type checked so that passing an
+`sf_count_t` (64 bits) by mistake in place of a `unit32_t` can cause
+errors. This would be fine if it was an error on every architecture
+and platform, but its not. This particular problem only manifested
+on armhf and some other Arm architectures. It was not an issue on
+32 bit x86.
+
+I have now fixed variants of this same bug several times.
+
+Closes: https://github.com/erikd/libsndfile/issues/229
+---
+ src/rf64.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/rf64.c b/src/rf64.c
+index b3d637fa..02dd9046 100644
+--- a/src/rf64.c
++++ b/src/rf64.c
+@@ -742,7 +742,7 @@ rf64_write_header (SF_PRIVATE *psf, int calc_length)
+
+ pad_size = psf->dataoffset - 16 - psf->header.indx ;
+ if (pad_size >= 0)
+- psf_binheader_writef (psf, "m4z", PAD_MARKER, pad_size, make_size_t (pad_size)) ;
++ psf_binheader_writef (psf, "m4z", PAD_MARKER, (unsigned int) pad_size, make_size_t (pad_size)) ;
+
+ if (wpriv->rf64_downgrade && (psf->filelength < RIFF_DOWNGRADE_BYTES))
+ psf_binheader_writef (psf, "tm8", data_MARKER, psf->datalength) ;
diff --git a/media-libs/libsndfile/libsndfile-1.0.26.ebuild b/media-libs/libsndfile/libsndfile-1.0.26.ebuild
new file mode 100644
index 000000000000..6943e130e554
--- /dev/null
+++ b/media-libs/libsndfile/libsndfile-1.0.26.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
+PYTHON_COMPAT=( python2_7 pypy )
+inherit autotools-multilib epunt-cxx flag-o-matic python-any-r1
+
+MY_P=${P/_pre/pre}
+
+DESCRIPTION="A C library for reading and writing files containing sampled sound"
+HOMEPAGE="http://www.mega-nerd.com/libsndfile"
+if [[ "${MY_P}" == "${P}" ]]; then
+ SRC_URI="http://www.mega-nerd.com/libsndfile/files/${P}.tar.gz"
+else
+ SRC_URI="http://www.mega-nerd.com/tmp/${MY_P}b.tar.gz"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="alsa minimal sqlite static-libs test"
+
+RDEPEND="
+ !minimal? ( >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}]
+ >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
+ >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] )
+ alsa? ( media-libs/alsa-lib )
+ sqlite? ( >=dev-db/sqlite-3.2 )
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r6
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( ${PYTHON_DEPS} )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # fix adding largefile flags on amd64 multilib
+ # https://github.com/erikd/libsndfile/commit/d464da7dba4d5
+ sed -i -e 's:AC_SYS_EXTRA_LARGEFILE:AC_SYS_LARGEFILE:' configure.ac || die
+ sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' {examples,tests}/Makefile.am || die
+
+ local PATCHES=(
+ "${FILESDIR}"/${PN}-1.0.17-regtests-need-sqlite.patch
+ "${FILESDIR}"/${PN}-1.0.25-make.patch
+ )
+
+ AT_M4DIR=M4 \
+ autotools-multilib_src_prepare
+ epunt_cxx
+}
+
+src_configure() {
+ my_configure() {
+ local myeconfargs=(
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
+ $(use_enable static-libs static)
+ $(use_enable !minimal external-libs)
+ --disable-octave
+ --disable-gcc-pipe
+ )
+
+ if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then
+ myeconfargs+=(
+ $(use_enable alsa)
+ $(use_enable sqlite)
+ )
+ else
+ myeconfargs+=(
+ --disable-alsa
+ --disable-sqlite
+ )
+ fi
+
+ autotools-utils_src_configure
+
+ if [ "${ABI}" != "${DEFAULT_ABI}" ] ; then
+ # Do not build useless stuff.
+ for i in man doc examples regtest programs ; do
+ sed -i -e "s/ ${i}//" "${BUILD_DIR}/Makefile" || die
+ done
+ fi
+ }
+
+ multilib_parallel_foreach_abi my_configure
+}
+
+src_install() {
+ # note: --htmldir support fixed upstream already,
+ # next version should pass --htmldir to configure instead
+ autotools-multilib_src_install \
+ htmldocdir="${EPREFIX}/usr/share/doc/${PF}/html"
+}
diff --git a/media-libs/libsndfile/libsndfile-1.0.27-r1.ebuild b/media-libs/libsndfile/libsndfile-1.0.27-r1.ebuild
new file mode 100644
index 000000000000..cfd9863242e2
--- /dev/null
+++ b/media-libs/libsndfile/libsndfile-1.0.27-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit autotools python-any-r1 multilib-minimal
+
+MY_P=${P/_pre/pre}
+
+DESCRIPTION="A C library for reading and writing files containing sampled sound"
+HOMEPAGE="http://www.mega-nerd.com/libsndfile"
+if [[ ${MY_P} == ${P} ]]; then
+ SRC_URI="http://www.mega-nerd.com/libsndfile/files/${P}.tar.gz"
+else
+ SRC_URI="http://www.mega-nerd.com/tmp/${MY_P}b.tar.gz"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="alsa minimal sqlite static-libs test"
+
+RDEPEND="
+ !minimal? ( >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}]
+ >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
+ >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] )
+ alsa? ( media-libs/alsa-lib )
+ sqlite? ( >=dev-db/sqlite-3.2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( ${PYTHON_DEPS} )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.0.27-fix-tests.patch
+ "${FILESDIR}"/${PN}-1.0.17-regtests-need-sqlite.patch
+ "${FILESDIR}"/${PN}-1.0.25-make.patch
+)
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --disable-octave \
+ --disable-gcc-pipe \
+ $(use_enable static-libs static) \
+ $(use_enable !minimal external-libs) \
+ $(multilib_native_use_enable alsa) \
+ $(multilib_native_use_enable sqlite)
+
+ if ! multilib_is_native_abi; then
+ # Do not build useless stuff
+ local i
+ for i in man doc examples regtest programs; do
+ sed -i -e "s/ ${i}//" Makefile || die
+ done
+ fi
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ # package provides .pc files
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/media-libs/libsndfile/libsndfile-1.0.28-r1.ebuild b/media-libs/libsndfile/libsndfile-1.0.28-r1.ebuild
new file mode 100644
index 000000000000..cfec91e87a09
--- /dev/null
+++ b/media-libs/libsndfile/libsndfile-1.0.28-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+inherit python-any-r1 multilib-minimal
+
+MY_P=${P/_pre/pre}
+
+DESCRIPTION="A C library for reading and writing files containing sampled sound"
+HOMEPAGE="http://www.mega-nerd.com/libsndfile"
+if [[ ${MY_P} == ${P} ]]; then
+ SRC_URI="http://www.mega-nerd.com/libsndfile/files/${P}.tar.gz"
+else
+ SRC_URI="http://www.mega-nerd.com/tmp/${MY_P}b.tar.gz"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="alsa minimal sqlite static-libs test"
+
+RDEPEND="
+ !minimal? (
+ >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}]
+ >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
+ >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
+ )
+ alsa? ( media-libs/alsa-lib )
+ sqlite? ( >=dev-db/sqlite-3.2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( ${PYTHON_DEPS} )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-arm-varargs-failure.patch )
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --disable-octave \
+ --enable-gcc-pipe \
+ --enable-gcc-opt \
+ $(use_enable static-libs static) \
+ $(use_enable !minimal external-libs) \
+ $(multilib_native_enable full-suite) \
+ $(multilib_native_use_enable alsa) \
+ $(multilib_native_use_enable sqlite)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ # package provides .pc files
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/media-libs/libsndfile/metadata.xml b/media-libs/libsndfile/metadata.xml
new file mode 100644
index 000000000000..39626a990be5
--- /dev/null
+++ b/media-libs/libsndfile/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+</pkgmetadata>