1 |
commit: 3d18db25b4e5e5fed5f7525fdf55e800884489b3 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 28 18:03:51 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 28 18:04:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d18db25 |
7 |
|
8 |
media-libs/fdk-aac: bump to 2.0.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
media-libs/fdk-aac/Manifest | 1 + |
14 |
media-libs/fdk-aac/fdk-aac-2.0.2.ebuild | 56 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 57 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/fdk-aac/Manifest b/media-libs/fdk-aac/Manifest |
18 |
index 7332f9fe8b3..7ce07ae0274 100644 |
19 |
--- a/media-libs/fdk-aac/Manifest |
20 |
+++ b/media-libs/fdk-aac/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST fdk-aac-2.0.1.tar.gz 2865456 BLAKE2B 79c66956b3c43138fb34448398cf104a021757332b2af6d4493bce8c4f9dfdf97a38d1f00c3f1a3f91ffb3b2ce2bb0bdc982e3f92a1ffe7e5f0d1c2f0ef8ca99 SHA512 08209bbd060edafe7b607c9e1394cd03df4f98df6f32b4be21d34d1ab491a7447ed592785546c040126767bd31980121ca6a31aba06eaf90558b14228e302d82 |
23 |
+DIST fdk-aac-2.0.2.tar.gz 2886434 BLAKE2B f9917cf8ded3e4165048b27211c5985b4fe174d1ac815a7bc4afad88e059f3a89a24f88ad20633becdba9cb91717b9d4bf44781368c436e35002061b1644eb64 SHA512 8e5a7992869a7e649bee6d41bf7c6e408cec7ba1931a6cd7a9ad8a01e6ac49bd299ddd147b18823e8ee379ce7c6373d7f5a94f0f859ed973a30c61eccd53fa7e |
24 |
|
25 |
diff --git a/media-libs/fdk-aac/fdk-aac-2.0.2.ebuild b/media-libs/fdk-aac/fdk-aac-2.0.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..01bbf0f0867 |
28 |
--- /dev/null |
29 |
+++ b/media-libs/fdk-aac/fdk-aac-2.0.2.ebuild |
30 |
@@ -0,0 +1,56 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit multilib-minimal |
37 |
+ |
38 |
+if [[ ${PV} == *9999* ]]; then |
39 |
+ EGIT_REPO_URI="https://github.com/mstorsjo/${PN}.git" |
40 |
+ [[ ${PV%9999} != "" ]] && EGIT_BRANCH="release/${PV%.9999}" |
41 |
+ inherit autotools git-r3 |
42 |
+else |
43 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x64-macos" |
44 |
+ if [[ ${PV%_p*} != ${PV} ]]; then # Gentoo snapshot |
45 |
+ SRC_URI="mirror://gentoo/${P}.tar.xz" |
46 |
+ else # Official release |
47 |
+ SRC_URI="mirror://sourceforge/opencore-amr/${P}.tar.gz" |
48 |
+ fi |
49 |
+fi |
50 |
+ |
51 |
+DESCRIPTION="Fraunhofer AAC codec library" |
52 |
+HOMEPAGE="https://sourceforge.net/projects/opencore-amr/" |
53 |
+LICENSE="FraunhoferFDK" |
54 |
+# subslot == N where N is libfdk-aac.so.N |
55 |
+SLOT="0/2" |
56 |
+ |
57 |
+IUSE="static-libs examples" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ [[ ${PV} == *9999* ]] && eautoreconf |
62 |
+} |
63 |
+ |
64 |
+multilib_src_configure() { |
65 |
+ local myeconfargs=( |
66 |
+ --enable-shared |
67 |
+ $(use_enable static-libs static) |
68 |
+ $(use_enable examples example) |
69 |
+ ) |
70 |
+ ECONF_SOURCE=${S} econf "${myeconfargs[@]}" |
71 |
+} |
72 |
+ |
73 |
+multilib_src_install_all() { |
74 |
+ einstalldocs |
75 |
+ |
76 |
+ if use examples; then |
77 |
+ mv "${ED}/usr/bin/"{,fdk-}aac-enc || die |
78 |
+ fi |
79 |
+ |
80 |
+ # package provides .pc files |
81 |
+ find "${ED}" -name '*.la' -delete || die |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ use examples && einfo "aac-enc was renamed to fdk-aac-enc to prevent file collision with other packages" |
86 |
+} |