summaryrefslogtreecommitdiff
path: root/media-libs/fdk-aac
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/fdk-aac')
-rw-r--r--media-libs/fdk-aac/Manifest2
-rw-r--r--media-libs/fdk-aac/fdk-aac-2.0.2.ebuild56
2 files changed, 58 insertions, 0 deletions
diff --git a/media-libs/fdk-aac/Manifest b/media-libs/fdk-aac/Manifest
index edaa13928da2..cede6101f646 100644
--- a/media-libs/fdk-aac/Manifest
+++ b/media-libs/fdk-aac/Manifest
@@ -1,3 +1,5 @@
DIST fdk-aac-2.0.1.tar.gz 2865456 BLAKE2B 79c66956b3c43138fb34448398cf104a021757332b2af6d4493bce8c4f9dfdf97a38d1f00c3f1a3f91ffb3b2ce2bb0bdc982e3f92a1ffe7e5f0d1c2f0ef8ca99 SHA512 08209bbd060edafe7b607c9e1394cd03df4f98df6f32b4be21d34d1ab491a7447ed592785546c040126767bd31980121ca6a31aba06eaf90558b14228e302d82
+DIST fdk-aac-2.0.2.tar.gz 2886434 BLAKE2B f9917cf8ded3e4165048b27211c5985b4fe174d1ac815a7bc4afad88e059f3a89a24f88ad20633becdba9cb91717b9d4bf44781368c436e35002061b1644eb64 SHA512 8e5a7992869a7e649bee6d41bf7c6e408cec7ba1931a6cd7a9ad8a01e6ac49bd299ddd147b18823e8ee379ce7c6373d7f5a94f0f859ed973a30c61eccd53fa7e
EBUILD fdk-aac-2.0.1.ebuild 1328 BLAKE2B c4da80c35ec53c1c0a2bba5fd0dce0c766baed5bc7ce7b2f66b751ba512d21fbcb795a251c35dd4021f7479975253d5959cf8c49f133a0d5b4ca566f8c84c0d5 SHA512 eef06746f316d6e4e4e50ec17c242ce0eebdc04458747810fcb543749587e96e8534916998a8060f5c07d132c0c10d3d3647355d75431590708ab1cd563c5b34
+EBUILD fdk-aac-2.0.2.ebuild 1334 BLAKE2B f510ecb0acda1e90c1a508eb0812df2f1b18949c3033075bf871b684d68d42f6533f0b2000697caa481aeb9f424e2a928c553738e9ac59630f6f794a2c42e70c SHA512 4eb6135ff5e16a25fa741d1b59f3e5c426a3dfd1a7217f1b8ba0f3b88904ba4d4c6688b9c4c2f1353e229ead7dc068521699a2f5837b81867c2d7fcdc686336d
MISC metadata.xml 335 BLAKE2B 62ac5499e6bf0ca4ebb5cef78982a734cbc068fad39764b545089233f2c611937c4d8cddfa7f042705c7f7849a44f1e971431667eae02e7622d45f5b5ccdfb14 SHA512 25f894f204476ffe7bf81e7e81b16f569b34ac57572cba903bf447a53699f0e4cf5448fa27689b4baf60753e7f605f47c4a7d60f19616446b0c1f871d9b866e3
diff --git a/media-libs/fdk-aac/fdk-aac-2.0.2.ebuild b/media-libs/fdk-aac/fdk-aac-2.0.2.ebuild
new file mode 100644
index 000000000000..01bbf0f08671
--- /dev/null
+++ b/media-libs/fdk-aac/fdk-aac-2.0.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/mstorsjo/${PN}.git"
+ [[ ${PV%9999} != "" ]] && EGIT_BRANCH="release/${PV%.9999}"
+ inherit autotools git-r3
+else
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x64-macos"
+ if [[ ${PV%_p*} != ${PV} ]]; then # Gentoo snapshot
+ SRC_URI="mirror://gentoo/${P}.tar.xz"
+ else # Official release
+ SRC_URI="mirror://sourceforge/opencore-amr/${P}.tar.gz"
+ fi
+fi
+
+DESCRIPTION="Fraunhofer AAC codec library"
+HOMEPAGE="https://sourceforge.net/projects/opencore-amr/"
+LICENSE="FraunhoferFDK"
+# subslot == N where N is libfdk-aac.so.N
+SLOT="0/2"
+
+IUSE="static-libs examples"
+
+src_prepare() {
+ default
+ [[ ${PV} == *9999* ]] && eautoreconf
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable static-libs static)
+ $(use_enable examples example)
+ )
+ ECONF_SOURCE=${S} econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ if use examples; then
+ mv "${ED}/usr/bin/"{,fdk-}aac-enc || die
+ fi
+
+ # package provides .pc files
+ find "${ED}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ use examples && einfo "aac-enc was renamed to fdk-aac-enc to prevent file collision with other packages"
+}