summaryrefslogtreecommitdiff
path: root/media-libs/a52dec
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/a52dec
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/a52dec')
-rw-r--r--media-libs/a52dec/Manifest10
-rw-r--r--media-libs/a52dec/a52dec-0.7.4-r6.ebuild59
-rw-r--r--media-libs/a52dec/a52dec-0.7.4-r7.ebuild63
-rw-r--r--media-libs/a52dec/files/a52dec-0.7.4-build.patch27
-rw-r--r--media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch11
-rw-r--r--media-libs/a52dec/files/a52dec-0.7.4-test-hidden-symbols.patch19
-rw-r--r--media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch10
-rw-r--r--media-libs/a52dec/metadata.xml14
8 files changed, 213 insertions, 0 deletions
diff --git a/media-libs/a52dec/Manifest b/media-libs/a52dec/Manifest
new file mode 100644
index 000000000000..104bdc4648a1
--- /dev/null
+++ b/media-libs/a52dec/Manifest
@@ -0,0 +1,10 @@
+AUX a52dec-0.7.4-build.patch 1113 SHA256 00a094d6178cd21bfc2303ff2ac91ce656810e6fef50e77ab30e18d0f4d4a650 SHA512 eee40a2871c00fc704fa49d3192a41ceadc4cf7e80d7d7cf368aa2a3e7ebb786f39ef835bdffca5685bf054316a9bacf87556b9a0c90868dbf29e7269873806e WHIRLPOOL a14dc155ecf8dbd760d98aa03991585657ca68ba8cf231bf91b884c605e4409b6ca36bdbf9d30dfd192ced73926a2288476607a953181d733eeae1a7995f71b7
+AUX a52dec-0.7.4-freebsd.patch 343 SHA256 61a2852445843dcb3cee283cbcd44ce28a1e5d018f60879ba8e8de184668367d SHA512 3e448e36b4c0720df634efcfd1f5be50d404131e250a05d58396e9a74d92f2ea7f2d0de7b0394bf138ce033aa31d8e7fb3512e778c5b5f97f04d7dfb2ce6b964 WHIRLPOOL 14237a83d0602118ec3a03260906e27f490ed9b788df3465840dddfb084bf2b5a011058570a0c32889bf3c121c6a46eb8fba38564929a89891771d71122335c0
+AUX a52dec-0.7.4-test-hidden-symbols.patch 637 SHA256 eb49d33c59529a6fb790743f19a69edc8638f73f38d693edd1890b2dbc58fffd SHA512 097f4f9cb82f01cb42e5536bfb4fa5ed6cbe85da5f4a31c19e83e1d1e73f8724a3828f0585834142f861bad3417fb9c55b21581def85733278870c3c48c2e8fd WHIRLPOOL 2b663f60f84b68bedf1a99163be0c10efd18eb35783010004c157eb2c417ce70bcf3fa8bfcff9e234019769b98b18443b6fab6ae8e02246505ada0703aebf8da
+AUX a52dec-0.7.4-tests-optional.patch 299 SHA256 d0dd7ad5d6f070ef385bf76ff48e1d54be7cb9d5ba3d7d71e5b1b4657bdfb9ba SHA512 9f5c0afbfd656287eafeba04eed34070f53a77cb53981d64ff71edb96bef6cc2c0638e0be6647086cbad87ead97aa0215cd6cb413258d0122bc3f45bcf4480b1 WHIRLPOOL b266bec3f0c253f39f58523012157572f1cd4621fc7fda2e2fea7c290956c92e968d7ae8d707e51ba682ecc390c15fb255ecc9536e35ea75715b29fec056a95f
+DIST a52dec-0.7.4.tar.gz 241507 SHA256 a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33 SHA512 4b26fe9492f218b775fb190b76ecf06edaeb656adfe6dcbd24d0a0f86871c3ba917edb88a398eb12dccedaa1605b6f0a0be06b09f9fddd9a46e457b7dd244848 WHIRLPOOL 6dd6454f88ab9c4d80374ac2019d4392765fb3fffc54e0f0367f5c1a7ec31bb38b8b817e05fa195bf4ff83c59adf51872a93e4d61ffcb1e723e13e4a6288bf32
+EBUILD a52dec-0.7.4-r6.ebuild 1439 SHA256 9d6b12650460eb52b16708ae687df341909b10aa1ce796412dcd2ffe09f563bb SHA512 8437c6bdbb0ec560ad57829cf6a2227b07886c27db4a954c3c1b3e402313ad710ea8c0dad575c0f325deb64bb3ba9ddb064255aa37751a27f6f3b6578af54d50 WHIRLPOOL 51337d8e09f429af9e730aac015aea119a368980d45f5c97c5ff66e9392079e992ced69780672777f0c4aa43fd6a9b699849e296b1c637e3fcac7879a46c99c5
+EBUILD a52dec-0.7.4-r7.ebuild 1699 SHA256 9c6b5efec4fb20aea1bf9cfa2d5aa2068821f74a2976c79fd895c24b260cb2e7 SHA512 aba8ae851c427adc2215bb687e4a246ccc3019bd184c0005c3aad1067f350cfa01fe6f48b5501737731abc85ea287fec48c3700d4438c9e5078017165aeff532 WHIRLPOOL bbac032e961c14c5f1a0c717131b7875d716f27db87984772f975019b72f566cef7f92f72bd7ded13305056fc7c21b32160dd1ce67570e34774923c6d79f28f6
+MISC ChangeLog 3343 SHA256 1256179beeb30a0b7e1a4c744aa27214c21a4b3f72c2089a3239784a53824eb7 SHA512 4668b896bfaf87637ff2bec7ed3b2f9660387dc694de92c3945428b2f9b7cf4ece2f1a8052ef0f2ed3ec4447069d583a727fcd77010129f07c9dde71b1be745d WHIRLPOOL 79613ea35159fd3b7185c38993ad24863758819161dbd7b05acca63020cdfbfb38f2d9e11ca9e48375bcea495dcb988d6a60b23d39594dcc08410b477aa0f6e3
+MISC ChangeLog-2015 10721 SHA256 dcdcd907031e864f0e8134166a201be10be86aa969aaf73bee171c2339411f45 SHA512 962312b8df18d18c397833ddd8c9f81de3387a989afd824464509f3185f5a9bede5f83a758038bdf03bf5ecec6e79da48d665341f134297506855d9e4d61ccd8 WHIRLPOOL 8628051fa34ba1a40549a0b6815474c76dfc4f662862e726e4e04d398c8e950a64296e54887b53215369ad7c69f813f82b8a062cd11b8561b571aeead0bd633a
+MISC metadata.xml 442 SHA256 b85705034c6cb742b1ee2ce7d646de85f58c77e36b6585c873e491bb45e0444b SHA512 acc8d37733d5efebd4e65401dfff5926a64e13f641dd383343a26b666fe13963191782990ec4571c18803584808b249cb60646a06d91437f0a6793237eb99ca0 WHIRLPOOL 4ba68241c449f1c8f701673393d5d051b13e6b07deb0f8d08ec6dfcee273326ab93adcb5f0f8fb612a1554f7e45d24566d846429bf48e05a4fe07425d32be6ce
diff --git a/media-libs/a52dec/a52dec-0.7.4-r6.ebuild b/media-libs/a52dec/a52dec-0.7.4-r6.ebuild
new file mode 100644
index 000000000000..8af3a605accc
--- /dev/null
+++ b/media-libs/a52dec/a52dec-0.7.4-r6.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools epatch flag-o-matic ltprune
+
+DESCRIPTION="library for decoding ATSC A/52 streams used in DVD"
+HOMEPAGE="http://liba52.sourceforge.net/"
+SRC_URI="http://liba52.sourceforge.net/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+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 ~x86-solaris"
+IUSE="djbfft oss static-libs"
+
+RDEPEND="djbfft? ( sci-libs/djbfft )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-freebsd.patch \
+ "${FILESDIR}"/${P}-tests-optional.patch \
+ "${FILESDIR}"/${P}-test-hidden-symbols.patch
+
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #466978
+
+ eautoreconf
+# epunt_cxx is not required with eautoreconf wrt #458298
+# epunt_cxx
+}
+
+src_configure() {
+ filter-flags -fprefetch-loop-arrays
+
+ local myconf
+ use oss || myconf="${myconf} --disable-oss"
+
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable djbfft) \
+ ${myconf}
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ insinto /usr/include/a52dec
+ doins liba52/a52_internal.h
+
+ dodoc AUTHORS ChangeLog HISTORY NEWS README TODO doc/liba52.txt
+
+ prune_libtool_files --all
+}
diff --git a/media-libs/a52dec/a52dec-0.7.4-r7.ebuild b/media-libs/a52dec/a52dec-0.7.4-r7.ebuild
new file mode 100644
index 000000000000..66e18ef381df
--- /dev/null
+++ b/media-libs/a52dec/a52dec-0.7.4-r7.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+# eutils for einstalldocs
+inherit autotools epatch eutils flag-o-matic ltprune multilib-minimal
+
+DESCRIPTION="library for decoding ATSC A/52 streams used in DVD"
+HOMEPAGE="http://liba52.sourceforge.net/"
+SRC_URI="http://liba52.sourceforge.net/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+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 ~x86-solaris"
+IUSE="djbfft oss static-libs"
+
+RDEPEND="djbfft? ( >=sci-libs/djbfft-0.76-r2[${MULTILIB_USEDEP}] )
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r8
+ !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
+DEPEND="${RDEPEND}"
+DOCS=( AUTHORS ChangeLog HISTORY NEWS README TODO doc/liba52.txt )
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-freebsd.patch \
+ "${FILESDIR}"/${P}-tests-optional.patch \
+ "${FILESDIR}"/${P}-test-hidden-symbols.patch
+
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #466978
+
+ eautoreconf
+
+ filter-flags -fprefetch-loop-arrays
+}
+
+multilib_src_configure() {
+ local myconf
+ use oss || myconf="${myconf} --disable-oss"
+
+ ECONF_SOURCE="${S}" econf \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable djbfft) \
+ ${myconf}
+
+ # remove useless subdirs
+ if ! multilib_is_native_abi ; then
+ sed -i \
+ -e 's/ src//' \
+ -e 's/ libao//' \
+ Makefile || die
+ fi
+}
+
+multilib_src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+multilib_src_install_all() {
+ prune_libtool_files --all
+ einstalldocs
+}
diff --git a/media-libs/a52dec/files/a52dec-0.7.4-build.patch b/media-libs/a52dec/files/a52dec-0.7.4-build.patch
new file mode 100644
index 000000000000..f3a29f303ceb
--- /dev/null
+++ b/media-libs/a52dec/files/a52dec-0.7.4-build.patch
@@ -0,0 +1,27 @@
+diff -Naur a52dec-0.7.4.orig/liba52/Makefile.am a52dec-0.7.4/liba52/Makefile.am
+--- a52dec-0.7.4.orig/liba52/Makefile.am 2002-01-27 20:36:48.000000000 -0800
++++ a52dec-0.7.4/liba52/Makefile.am 2004-11-05 01:10:21.317401872 -0800
+@@ -1,4 +1,3 @@
+-CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@
+
+ lib_LTLIBRARIES = liba52.la
+
+diff -Naur a52dec-0.7.4.orig/liba52/configure.incl a52dec-0.7.4/liba52/configure.incl
+--- a52dec-0.7.4.orig/liba52/configure.incl 2002-01-27 20:36:48.000000000 -0800
++++ a52dec-0.7.4/liba52/configure.incl 2004-11-05 01:11:38.172672216 -0800
+@@ -2,7 +2,6 @@
+ AC_SUBST([LIBA52_LIBS])
+
+ dnl avoid -fPIC when possible
+-LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
+
+ AC_ARG_ENABLE([double],
+ [ --enable-double use double-precision samples])
+diff -Naur a52dec-0.7.4.orig/src/Makefile.am a52dec-0.7.4/src/Makefile.am
+--- a52dec-0.7.4.orig/src/Makefile.am 2002-06-22 18:51:57.000000000 -0700
++++ a52dec-0.7.4/src/Makefile.am 2004-11-05 01:10:21.320401375 -0800
+@@ -1,4 +1,3 @@
+-CFLAGS = @A52DEC_CFLAGS@
+
+ bin_PROGRAMS = a52dec extract_a52
+ a52dec_SOURCES = a52dec.c getopt.c gettimeofday.c
diff --git a/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch b/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
new file mode 100644
index 000000000000..6e33f18911b3
--- /dev/null
+++ b/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
@@ -0,0 +1,11 @@
+--- libao/audio_out_oss.c 2002-04-28 12:23:02 +0200
++++ libao/audio_out_oss.c 2005-07-23 15:42:50 +0200
+@@ -35,7 +35,7 @@
+ #if defined(__OpenBSD__)
+ #include <soundcard.h>
+ #elif defined(__FreeBSD__)
+-#include <machine/soundcard.h>
++#include <sys/soundcard.h>
+ #ifndef AFMT_S16_NE
+ #include <machine/endian.h>
+ #if BYTE_ORDER == LITTLE_ENDIAN
diff --git a/media-libs/a52dec/files/a52dec-0.7.4-test-hidden-symbols.patch b/media-libs/a52dec/files/a52dec-0.7.4-test-hidden-symbols.patch
new file mode 100644
index 000000000000..9ff949dd9c08
--- /dev/null
+++ b/media-libs/a52dec/files/a52dec-0.7.4-test-hidden-symbols.patch
@@ -0,0 +1,19 @@
+2010-07-26 Martin Rejman <martin.rejman@centrum.cz>
+
+ #327369
+ * test/globals: bad_globals: Use readelf and ignore hidden symbols
+
+--- a/test/globals 2010-07-07 20:37:49.000000000 +0200
++++ b/test/globals 2010-07-07 20:37:57.000000000 +0200
+@@ -12,8 +12,9 @@
+ srcdir=`cd $srcdir;pwd`
+ builddir=`cd $builddir;pwd`
+
+-bad_globals=`nm -g --defined-only $builddir/../liba52/*.o|\
+- awk '{if ($3) print $3}'|grep -v '^_\?a52_'`
++bad_globals=`readelf -s $builddir/../liba52/*.o |\
++ awk '$5=="GLOBAL" && $6!="HIDDEN" && $7!="UND" {print $8}' |\
++ grep -v '^_\?a52_'`
+
+ if test x"$bad_globals" != x""; then
+ echo BAD GLOBAL SYMBOLS:
diff --git a/media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch b/media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch
new file mode 100644
index 000000000000..6958ef7b4904
--- /dev/null
+++ b/media-libs/a52dec/files/a52dec-0.7.4-tests-optional.patch
@@ -0,0 +1,10 @@
+Index: a52dec-0.7.4/test/Makefile.am
+===================================================================
+--- a52dec-0.7.4.orig/test/Makefile.am
++++ a52dec-0.7.4/test/Makefile.am
+@@ -1,4 +1,4 @@
+-noinst_PROGRAMS = compare
++check_PROGRAMS = compare
+ compare_SOURCES = compare.c
+ compare_LDADD = -lm
+
diff --git a/media-libs/a52dec/metadata.xml b/media-libs/a52dec/metadata.xml
new file mode 100644
index 000000000000..9c09c6a97e5c
--- /dev/null
+++ b/media-libs/a52dec/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <use>
+ <flag name="djbfft">Prefer D.J. Bernstein's library for fourier transforms</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">liba52</remote-id>
+ </upstream>
+</pkgmetadata>