summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreroen <eroen@occam.eroen.eu>2013-05-28 20:59:59 +0200
committereroen <eroen@occam.eroen.eu>2013-05-28 20:59:59 +0200
commitd68a6454d284a7f3993feddde21c41652596a5bb (patch)
treebf321cdf5066d6f0eeae079aac3ccc1c7ef51ab7 /media-libs
parentlibvorbis-1.3.3-r1: interoperate w/ elx86-soundlibs (diff)
downloaderoen-d68a6454d284a7f3993feddde21c41652596a5bb.tar.gz
eroen-d68a6454d284a7f3993feddde21c41652596a5bb.tar.bz2
eroen-d68a6454d284a7f3993feddde21c41652596a5bb.zip
libsndfile-1.0.25-r1 from gentoo
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libsndfile/Manifest4
-rw-r--r--media-libs/libsndfile/files/libsndfile-1.0.17-regtests-need-sqlite.patch25
-rw-r--r--media-libs/libsndfile/libsndfile-1.0.25-r1.ebuild81
-rw-r--r--media-libs/libsndfile/metadata.xml5
4 files changed, 115 insertions, 0 deletions
diff --git a/media-libs/libsndfile/Manifest b/media-libs/libsndfile/Manifest
new file mode 100644
index 0000000..1e8a687
--- /dev/null
+++ b/media-libs/libsndfile/Manifest
@@ -0,0 +1,4 @@
+AUX libsndfile-1.0.17-regtests-need-sqlite.patch 894 SHA256 c53026864c6a05b1ccc8b12e7af895f5d0e2d3a00335fd9f49ed7cc9aecece73 SHA512 1c914a1e51b15149bdba7d242f1ce6979d36cee7e6a6771c6b301d309805e1d5c9db28d4ab968b573504b88a9531c1a3b67af8d92d69f59c047ba692746ce5ed WHIRLPOOL efdf9e09c71f4c3701ebdcc9f300490abed19b096495d0b9a45352f6b996fa1856457e7f5a022ea0f4a559d62e4453899b1239b902f19dace5b9569825dcb8f7
+DIST libsndfile-1.0.25.tar.gz 1060692 SHA256 59016dbd326abe7e2366ded5c344c853829bebfd1702ef26a07ef662d6aa4882 SHA512 4ca9780ed0a915aca8a10ef91bf4bf48b05ecb85285c2c3fe7eef1d46d3e0747e61416b6bddbef369bd69adf4b796ff5f61380e0bc998906b170a93341ba6f78 WHIRLPOOL 37ef0a66f11d3f60741fe40bce2b255f44284cf78f7c762542def2aab0eefed1360181bb7f29b9850c11e8672a78bc5a687bc04f2cc349e45dfd24721bea8f29
+EBUILD libsndfile-1.0.25-r1.ebuild 2418 SHA256 bc281308ae39c961d92f2c51ed5efbec5ba45907945bb61933d65e04a7465da1 SHA512 2859e8a5ab7a77c75ea7ecb031d6725fe3e250f77272639dfebec757d24890b902c347b0bcc4185876478ab76df14017319b6f584ea6b15e0568d42103e3da7b WHIRLPOOL bcbb7cbdf630c1b88b2795bba3287ff158e6c1c70768a7d8bfb5a09b6c3d506e6045e4e78461fdcb68d988ba14d6a467544f0b4e920841cbe443404ae36f4dc4
+MISC metadata.xml 159 SHA256 eb5b8cfa9aed067cd72d6439beac2dd0abdba30248f27e4b337012b493a18369 SHA512 a77b80f2ab1799aab052edd575ad80daae01c717af7bd5bf3dcda15714b9afd2e9fd6553cc20b000bc3157915b7082641a92fda56de3a9b8362ae2488925e4b1 WHIRLPOOL 913c53cb00341537eff621357b1c5b8379bb63df52d18b88fdef0173cdfd7c60f6d1ece1d42b5d0fcda69ed73ab4138f4268c6394851b07a9411a8306fef9173
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 0000000..85d6280
--- /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/libsndfile-1.0.25-r1.ebuild b/media-libs/libsndfile/libsndfile-1.0.25-r1.ebuild
new file mode 100644
index 0000000..54acddf
--- /dev/null
+++ b/media-libs/libsndfile/libsndfile-1.0.25-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsndfile/libsndfile-1.0.25-r1.ebuild,v 1.1 2013/05/05 08:04:11 mgorny Exp $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
+PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} )
+inherit autotools-multilib 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 ~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[${MULTILIB_USEDEP}]
+ >=media-libs/libogg-1.1.3[${MULTILIB_USEDEP}]
+ >=media-libs/libvorbis-1.2.3[${MULTILIB_USEDEP}] )
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+ sqlite? (
+ >=dev-db/sqlite-3.2
+ amd64? ( abi_x86_32? (
+ app-emulation/emul-linux-x86-baselibs[development]
+ ) )
+ )
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224 )"
+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
+ )
+
+ AT_M4DIR=M4 \
+ autotools-multilib_src_prepare
+ epunt_cxx
+}
+
+src_configure() {
+ local myeconfargs=(
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
+
+ $(use_enable sqlite)
+ $(use_enable static-libs static)
+ $(use_enable alsa)
+ $(use_enable !minimal external-libs)
+ --disable-octave
+ --disable-gcc-werror
+ --disable-gcc-pipe
+ )
+
+ autotools-multilib_src_configure
+}
+
+src_install() {
+ # note: --htmldir support fixed upstream already,
+ # next version should pass --htmldir to configure instead
+ autotools-multilib_src_install \
+ htmldocdir=/usr/share/doc/${PF}/html
+}
diff --git a/media-libs/libsndfile/metadata.xml b/media-libs/libsndfile/metadata.xml
new file mode 100644
index 0000000..ae573a6
--- /dev/null
+++ b/media-libs/libsndfile/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sound</herd>
+</pkgmetadata>