summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Michael <fedora.dm0@gmail.com>2020-11-07 20:10:34 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-07 20:10:34 +0100
commit6b8031710f6bd46ec6f90df2769e6cf82d3973c0 (patch)
tree5a3126021009ea2bf7a77d07174fb34c4c02aa7d /media-libs/a52dec
parentmedia-libs/speexdsp: EAPI 7, drop static-libs (diff)
downloadgentoo-6b8031710f6bd46ec6f90df2769e6cf82d3973c0.tar.gz
gentoo-6b8031710f6bd46ec6f90df2769e6cf82d3973c0.tar.bz2
gentoo-6b8031710f6bd46ec6f90df2769e6cf82d3973c0.zip
media-libs/a52dec: EAPI 7, drop static-libs
Closes: https://github.com/gentoo/gentoo/pull/18176 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs/a52dec')
-rw-r--r--media-libs/a52dec/a52dec-0.7.4-r8.ebuild63
-rw-r--r--media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch4
2 files changed, 65 insertions, 2 deletions
diff --git a/media-libs/a52dec/a52dec-0.7.4-r8.ebuild b/media-libs/a52dec/a52dec-0.7.4-r8.ebuild
new file mode 100644
index 000000000000..e32e97439eda
--- /dev/null
+++ b/media-libs/a52dec/a52dec-0.7.4-r8.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic 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 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="djbfft oss"
+
+RDEPEND="djbfft? ( >=sci-libs/djbfft-0.76-r2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-freebsd.patch
+ "${FILESDIR}"/${P}-tests-optional.patch
+ "${FILESDIR}"/${P}-test-hidden-symbols.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #466978
+ mv configure.{in,ac} || die
+
+ eautoreconf
+
+ filter-flags -fprefetch-loop-arrays
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ --disable-static \
+ --enable-shared \
+ $(use_enable djbfft) \
+ $(usex oss '' --disable-oss)
+
+ # 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() {
+ einstalldocs
+ dodoc HISTORY doc/liba52.txt
+
+ find "${ED}" -name '*.la' -type f -delete || die
+}
diff --git a/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch b/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
index 6e33f18911b3..13d83bd3b67d 100644
--- a/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
+++ b/media-libs/a52dec/files/a52dec-0.7.4-freebsd.patch
@@ -1,5 +1,5 @@
---- libao/audio_out_oss.c 2002-04-28 12:23:02 +0200
-+++ libao/audio_out_oss.c 2005-07-23 15:42:50 +0200
+--- a/libao/audio_out_oss.c
++++ b/libao/audio_out_oss.c
@@ -35,7 +35,7 @@
#if defined(__OpenBSD__)
#include <soundcard.h>