summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-02-05 23:16:47 +0100
committerDavid Seifert <soap@gentoo.org>2016-02-05 23:17:03 +0100
commitf41b6ee954d6b66c8bcc405e5c87d13d6de0bd56 (patch)
treed97a88d6ea7f0b968bafbb9a19e18b684f924151 /media-libs/libaacplus/libaacplus-2.0.2-r3.ebuild
parentdev-ml/ocaml-cstruct: restrict sexplib dep, based on opam dep (diff)
downloadgentoo-f41b6ee954d6b66c8bcc405e5c87d13d6de0bd56.tar.gz
gentoo-f41b6ee954d6b66c8bcc405e5c87d13d6de0bd56.tar.bz2
gentoo-f41b6ee954d6b66c8bcc405e5c87d13d6de0bd56.zip
media-libs/libaacplus: Include patch for building with clang
Gentoo-Bug: 458932 * EAPI=6 * Thanks Fabio Scaccabarozzi for the patch Package-Manager: portage-2.2.27
Diffstat (limited to 'media-libs/libaacplus/libaacplus-2.0.2-r3.ebuild')
-rw-r--r--media-libs/libaacplus/libaacplus-2.0.2-r3.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/media-libs/libaacplus/libaacplus-2.0.2-r3.ebuild b/media-libs/libaacplus/libaacplus-2.0.2-r3.ebuild
new file mode 100644
index 000000000000..2e9dc37126b1
--- /dev/null
+++ b/media-libs/libaacplus/libaacplus-2.0.2-r3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils multilib-minimal
+
+# This file cannot be mirrored.
+# See the notes at http://tipok.org.ua/node/17
+# The .tar.gz, ie the wrapper library, is lgpl though.
+TGPPDIST=26410-800.zip
+
+DESCRIPTION="HE-AAC+ v2 library, based on the reference implementation"
+HOMEPAGE="http://tipok.org.ua/node/17"
+SRC_URI="
+ https://dev.gentoo.org/~aballier/${P}.tar.gz
+ http://tipok.ath.cx/downloads/media/aac+/libaacplus/${P}.tar.gz
+ http://217.20.164.161/~tipok/aacplus/${P}.tar.gz
+ http://www.3gpp.org/ftp/Specs/archive/26_series/26.410/${TGPPDIST}"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="fftw static-libs"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ !media-sound/aacplusenc
+ fftw? ( >=sci-libs/fftw-3.3.3-r2:3.0[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-clang-inline-redefinition.patch"
+)
+
+src_prepare() {
+ default
+ sed \
+ -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' \
+ -i configure.ac || die
+ eautoreconf
+ cp "${DISTDIR}/${TGPPDIST}" src/ || die
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ econf \
+ $(use_with fftw fftw3) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_compile() {
+ emake -j1
+}
+
+multilib_src_install_all() {
+ prune_libtool_files --all
+ einstalldocs
+}