1 |
commit: 5f134e8b860dd88cc8e3224e4eafa742231cbe5e |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 25 00:01:48 2018 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 25 00:01:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f134e8b |
7 |
|
8 |
media-video/libav: cleanup vulnerable wrt bug #600706 |
9 |
|
10 |
media-video/libav/Manifest | 5 - |
11 |
media-video/libav/libav-11.3-r1.ebuild | 347 --------------------------------- |
12 |
media-video/libav/libav-11.3.ebuild | 344 -------------------------------- |
13 |
media-video/libav/libav-11.4.ebuild | 346 -------------------------------- |
14 |
media-video/libav/libav-11.6.ebuild | 346 -------------------------------- |
15 |
media-video/libav/libav-11.7.ebuild | 346 -------------------------------- |
16 |
6 files changed, 1734 deletions(-) |
17 |
|
18 |
diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest |
19 |
index 72221bb9fe7..125623c2d18 100644 |
20 |
--- a/media-video/libav/Manifest |
21 |
+++ b/media-video/libav/Manifest |
22 |
@@ -1,12 +1,7 @@ |
23 |
-DIST 0001-x86-Put-COPY3_IF_LT-under-HAVE_6REGS.patch.gz 736 BLAKE2B 04e7b9f1b26e3df50e89e9af4663a2765ca6a71bf52b9f931b2d194366526642cdf15b96b1bba98167c1fe1304da71528b05a4504df6153d0cbf4e3b219c0bb7 SHA512 dbdfdf7fc1d42ebd93b0853e85ba0c07d816035c126a9303e6a5656bb9faeea16f16068d7e4aa67c7c4ade8ca09f64669e67f52d7d0a2a65518fa3897d586311 |
24 |
DIST fate-11.tar.xz 691009480 BLAKE2B 01e1e8125d34a623b5bd4bf1da0daee96d045e73fd069cf438f471970ad4cf71df8bd3235306b3493cb547fb5ac4bb8fce416e194fec9a7e9b9de68a5a15d572 SHA512 f9dc152964e3f19cf32d5d4cbc923a2bd05ba3b0f8f3880122df79d32852ee9d4795a0bfd66d7a2925299e9e9533888df6103e212ea3e5cbfe799d17ffa2b433 |
25 |
DIST fate-12-r1.tar.xz 763758260 BLAKE2B 299e1a2a773e49c7a51c1222ac34eaea24f77420570a1b0c0b18db5517736656f52ad0a7ca807f65f5e9f9597709265fcd950cf989ad995aa4289ba0e364950e SHA512 084f584c34d34b66c1f4d4742a11376ee2b90f6a07529b5aba6d50421dc8f863fded73dd57ad2c201aadfd529f0f923fa531ea9b41aaaa7b682846ef565a1018 |
26 |
DIST fate-12.tar.xz 755165356 BLAKE2B 031cef24bcfae6205cd6546f453cddb17387176ae837086dd38c8c7132ad9b8dee5367be5fb1b8c604b2203a1e2a55f0c3be2a62f825a95a7ace1aceb4593b70 SHA512 f6ffb3b673b01debd71d7c79cd5c3c4d6f6adb975ed0bdb7c791d674efd8a84ac98f7db3943dfbe3756a3f8819ceab2bdf4633c15fefddf0f8e10adfc805c1e1 |
27 |
DIST fate-9.tar.xz 467671500 BLAKE2B df4ef8187f257c91b7b6c3c25c2f204c2d4a476cc73cca199ec1c8af2c4641cbb3a314e39ab38f6d8b68c5fe0b91ff1b4b592dec6b518d544806eaeaca003608 SHA512 8e45539f2512ef915b37c857226c0243940259f269b8f99393b9defa3352d7b8c1fcc5078f4f0d40dc0509737f0c915e179cedcc77f71fe5d96b1b956169a202 |
28 |
-DIST libav-11.3.tar.xz 4858864 BLAKE2B f029581ea013564b69257f0ba71114c489afff3705bfeb9b7dad4a5c95eb64f727ebee4127b1205d1bbca0a2f56e2ebc907d57c25a5abf02ffdaf0b20ae30004 SHA512 f25b9fb7392d5bb4df35937f79beae26bd8f6606f0ad7cdebf16963834eb9b423d882f6a3a44b5120a5d5d853c7c31bb8c3420a427cd2b360f41a48a6d5df284 |
29 |
-DIST libav-11.4.tar.xz 4860264 BLAKE2B 3e56751b806cdf542bf078e790085bb0599696df0646f7bab5187e7af1b008041952ceadb5e1a10a021202c84eb878a8316993eddb6973d9b22fea042114db65 SHA512 82ffe6aaccb1a19782dfcb0de641c8255531ce34ee5f49f9b8ec7f5a11c81713432aafc3a6b7c4de927eb8141ddea41f28e4e3a1ab715b943774193050fb02e7 |
30 |
-DIST libav-11.6.tar.xz 4860268 BLAKE2B 52bd7cce7c1bbf7550d8ebfc00b735903bad1aefe0ecff6bfe80eb23deec6702974f63ec4b50d6956a6511f8dbeb9c6ee57b74786e6f8155b958c3c507391c8d SHA512 bff3e22de93e4ab357715ae20e25b6435df52d1868c5164426a693d14fe7f54e47a46c4c62a36fbf27bd204e12f6a29a6f58016c7deaa838915d424b5ce530bd |
31 |
-DIST libav-11.7.tar.xz 4861984 BLAKE2B 4191e47808b4e2827594398c33f4cd95c789379c0ec1256a18385d4570139054fbb0549c2ab45f3c20c41d2a5cb861ea439a7e76939ccfa856ea2101fc181f55 SHA512 23c6ffd0efdfa6b22c7863bf440d7469eba03a7990382fe33c8c4c7871edf250641ac536572516225679b0934e5c250ee0e2e91ea093c770a0c4c32b4776e3c5 |
32 |
DIST libav-11.8.tar.xz 4865796 BLAKE2B fb0e8f129edee0423252f334b12485d514f9fdfb3d916877d83141e0985ec4efb4de0f5b65d6e3e6d94b835f317a52116b849eec99d023ebb109bdbc2b7a8c5c SHA512 26f9a6bb7312acc08b6785c260220ada3ca2a8db0d0f2bd4621b47082c275fbdb7978457cb423693ba9a61dc4570b05d0dceb5861ff0bcce859c349a6a8f49be |
33 |
DIST libav-12.2.tar.xz 5268804 BLAKE2B e25b3dfe1026b9e69c89cbec2090070088a7004dc03e8cc23da2da03824a627c733c16c67e5fc65ec9f19942d93405d5ba6926de83cae04c497597f55220f004 SHA512 4b37cfb18a6cf6f12eddb5175b1751c093f3a495ae1d1b588884c60157cb260479b1d8fa3a6e3e08c00d7a26422b1e78a750eb35cf7bc763c01790f3567cba03 |
34 |
DIST libav-13_pre20171219.tar.xz 5427904 BLAKE2B 074dc5d071aeb656fc14a015c2e3c168aa81d25e2fb08d99e300dc47d7ea28f61500fcfab0b16fa136261a5af27631b7536eb3aefa0e1feb4d615af57f9f5a36 SHA512 0c9b59957f1fbbff8f5b95b02c11014a4efdddf4b7e1b158cd0fda3af8b89bd90d48263ed0239915adfb7abcd7a8b22c278cd5cf1d01822bd22df65cc7f69689 |
35 |
|
36 |
diff --git a/media-video/libav/libav-11.3-r1.ebuild b/media-video/libav/libav-11.3-r1.ebuild |
37 |
deleted file mode 100644 |
38 |
index ddd93225c96..00000000000 |
39 |
--- a/media-video/libav/libav-11.3-r1.ebuild |
40 |
+++ /dev/null |
41 |
@@ -1,347 +0,0 @@ |
42 |
-# Copyright 1999-2015 Gentoo Foundation |
43 |
-# Distributed under the terms of the GNU General Public License v2 |
44 |
- |
45 |
-EAPI=5 |
46 |
- |
47 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs |
48 |
- |
49 |
-if [[ ${PV} == *9999 ]] ; then |
50 |
- : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"} |
51 |
- if [[ ${PV%9999} != "" ]] ; then |
52 |
- : ${EGIT_BRANCH:="release/${PV%.9999}"} |
53 |
- fi |
54 |
- inherit git-r3 |
55 |
-fi |
56 |
- |
57 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video" |
58 |
-HOMEPAGE="https://libav.org/" |
59 |
-if [[ ${PV} == *9999 ]] ; then |
60 |
- SRC_URI="" |
61 |
-elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot |
62 |
- SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" |
63 |
-else # Official release |
64 |
- SRC_URI="https://libav.org/releases/${P}.tar.xz" |
65 |
- SRC_URI+=" https://dev.gentoo.org/~lu_zero/libav/patches/0001-x86-Put-COPY3_IF_LT-under-HAVE_6REGS.patch.gz" |
66 |
-fi |
67 |
-# 9999 does not have fate-*.tar.xz |
68 |
-[[ ${PV%9999} != "" ]] && SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )" |
69 |
- |
70 |
-LICENSE="LGPL-2.1 gpl? ( GPL-3 )" |
71 |
-SLOT="0/11" |
72 |
-[[ ${PV} == *9999 ]] || \ |
73 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
74 |
-IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk |
75 |
- frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 |
76 |
- +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl |
77 |
- static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X |
78 |
- wavpack webp x264 x265 xvid +zlib" |
79 |
- |
80 |
-# String for CPU features in the useflag[:configure_option] form |
81 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
82 |
-CPU_FEATURES="altivec armv5te armv6 armv6t2 armvfp:vfp neon" |
83 |
-X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" |
84 |
-for i in ${X86_CPU_FEATURES} ; do |
85 |
- CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" |
86 |
-done |
87 |
-for i in ${CPU_FEATURES} ; do |
88 |
- IUSE+=" ${i%:*}" |
89 |
-done |
90 |
- |
91 |
-RDEPEND=" |
92 |
- !media-video/ffmpeg:0 |
93 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
94 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
95 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
96 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
97 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
98 |
- encode? ( |
99 |
- aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
100 |
- amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
101 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
102 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
103 |
- theora? ( |
104 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
105 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
106 |
- ) |
107 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
108 |
- vorbis? ( |
109 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
110 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
111 |
- ) |
112 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
113 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
114 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
115 |
- x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) |
116 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
117 |
- ) |
118 |
- fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) |
119 |
- frei0r? ( media-plugins/frei0r-plugins ) |
120 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
121 |
- ieee1394? ( |
122 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
123 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
124 |
- ) |
125 |
- jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
126 |
- jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
127 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
128 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
129 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
130 |
- ssl? ( |
131 |
- openssl? ( |
132 |
- !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
133 |
- libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) |
134 |
- ) |
135 |
- !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
136 |
- ) |
137 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
138 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
139 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
140 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
141 |
- fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) |
142 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
143 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
144 |
- vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
145 |
- X? ( |
146 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
147 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
148 |
- >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
149 |
- ) |
150 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
151 |
-" |
152 |
- |
153 |
-DEPEND="${RDEPEND} |
154 |
- >=sys-devel/make-3.81 |
155 |
- doc? ( app-text/texi2html ) |
156 |
- ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
157 |
- cpu_flags_x86_mmx? ( dev-lang/yasm ) |
158 |
- rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
159 |
- schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
160 |
- ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
161 |
- test? ( sys-devel/bc ) |
162 |
- truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
163 |
- fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
164 |
- v4l? ( sys-kernel/linux-headers ) |
165 |
-" |
166 |
- |
167 |
-RDEPEND="${RDEPEND} |
168 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
169 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
170 |
- |
171 |
-# faac can't be binary distributed |
172 |
-# openssl support marked as nonfree |
173 |
-# faac and aac are concurent implementations |
174 |
-# amr and aac require at least lgpl3 |
175 |
-# x264 requires gpl2 |
176 |
-REQUIRED_USE=" |
177 |
- rtmp? ( network ) |
178 |
- amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) x265? ( gpl ) |
179 |
- test? ( encode zlib ) |
180 |
- fontconfig? ( truetype ) |
181 |
-" |
182 |
-RESTRICT="faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" |
183 |
- |
184 |
-MULTILIB_WRAPPED_HEADERS=( |
185 |
- /usr/include/libavutil/avconfig.h |
186 |
-) |
187 |
- |
188 |
-src_unpack() { |
189 |
- [[ ${PV} == *9999 ]] && git-r3_src_unpack |
190 |
- # 9999 does not have fate-*.tar.xz |
191 |
- [[ ${PV%9999} != "" ]] && default_src_unpack |
192 |
-} |
193 |
- |
194 |
-src_prepare() { |
195 |
- epatch_user |
196 |
- |
197 |
- epatch "${WORKDIR}/0001-x86-Put-COPY3_IF_LT-under-HAVE_6REGS.patch" |
198 |
- epatch "${FILESDIR}"/${P}-libvpx-1.5.0.patch #565696 |
199 |
- |
200 |
- # if we have snapshot then we need to hardcode the version |
201 |
- if [[ ${PV%_p*} != ${PV} ]]; then |
202 |
- sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die |
203 |
- fi |
204 |
- |
205 |
- TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) |
206 |
- use zlib && TOOLS+=( cws2fws ) |
207 |
- |
208 |
- MAKEOPTS+=" V=1" |
209 |
-} |
210 |
- |
211 |
-multilib_src_configure() { |
212 |
- local myconf=( ${EXTRA_LIBAV_CONF} ) |
213 |
- local uses i |
214 |
- |
215 |
- # 9999 does not have fate-*.tar.xz |
216 |
- [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) |
217 |
- |
218 |
- myconf+=( |
219 |
- $(use_enable gpl) |
220 |
- $(use_enable gpl version3) |
221 |
- --enable-avfilter |
222 |
- ) |
223 |
- |
224 |
- # enabled by default |
225 |
- uses="debug doc network zlib" |
226 |
- for i in ${uses}; do |
227 |
- use ${i} || myconf+=( --disable-${i} ) |
228 |
- done |
229 |
- use bzip2 || myconf+=( --disable-bzlib ) |
230 |
- use sdl || myconf+=( --disable-avplay ) |
231 |
- |
232 |
- if use ssl; then |
233 |
- use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ |
234 |
- || myconf+=( --enable-gnutls ) |
235 |
- fi |
236 |
- |
237 |
- use custom-cflags && myconf+=( --disable-optimizations ) |
238 |
- use cpudetection && myconf+=( --enable-runtime-cpudetect ) |
239 |
- |
240 |
- use vdpau || myconf+=( --disable-vdpau ) |
241 |
- |
242 |
- use vaapi && myconf+=( --enable-vaapi ) |
243 |
- |
244 |
- # Encoders |
245 |
- if use encode; then |
246 |
- use faac && myconf+=( --enable-nonfree ) |
247 |
- use mp3 && myconf+=( --enable-libmp3lame ) |
248 |
- use amr && myconf+=( --enable-libvo-amrwbenc ) |
249 |
- use aac && myconf+=( --enable-libvo-aacenc ) |
250 |
- uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" |
251 |
- for i in ${uses}; do |
252 |
- use ${i} && myconf+=( --enable-lib${i} ) |
253 |
- done |
254 |
- else |
255 |
- myconf+=( --disable-encoders ) |
256 |
- fi |
257 |
- |
258 |
- # libavdevice options |
259 |
- use cdio && myconf+=( --enable-libcdio ) |
260 |
- use ieee1394 && myconf+=( --enable-libdc1394 ) |
261 |
- use pulseaudio && myconf+=( --enable-libpulse ) |
262 |
- |
263 |
- # Indevs |
264 |
- # v4l1 is gone since linux-headers-2.6.38 |
265 |
- myconf+=( --disable-indev=v4l ) |
266 |
- use v4l || myconf+=( --disable-indev=v4l2 ) |
267 |
- for i in alsa oss jack; do |
268 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
269 |
- done |
270 |
- use X && myconf+=( --enable-x11grab ) |
271 |
- # Outdevs |
272 |
- for i in alsa oss ; do |
273 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
274 |
- done |
275 |
- # libavfilter options |
276 |
- use bs2b && myconf+=( --enable-libbs2b ) |
277 |
- multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) |
278 |
- use truetype && myconf+=( --enable-libfreetype ) |
279 |
- use fontconfig && myconf+=( --enable-libfontconfig ) |
280 |
- |
281 |
- # Threads; we only support pthread for now |
282 |
- use threads && myconf+=( --enable-pthreads ) |
283 |
- |
284 |
- # Decoders |
285 |
- use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) |
286 |
- use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) |
287 |
- uses="gsm opus rtmp schroedinger speex vpx" |
288 |
- for i in ${uses}; do |
289 |
- use ${i} && myconf+=( --enable-lib${i} ) |
290 |
- done |
291 |
- use jpeg2k && myconf+=( --enable-libopenjpeg ) |
292 |
- |
293 |
- # CPU features |
294 |
- for i in ${CPU_FEATURES}; do |
295 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
296 |
- done |
297 |
- |
298 |
- # pass the right -mfpu as extra |
299 |
- use neon && append-cflags -mfpu=neon |
300 |
- |
301 |
- # disable mmx accelerated code if PIC is required |
302 |
- # as the provided asm decidedly is not PIC for x86. |
303 |
- if use pic && [[ ${ABI} == x86 ]]; then |
304 |
- myconf+=( --disable-mmx --disable-mmxext ) |
305 |
- fi |
306 |
- |
307 |
- # Option to force building pic |
308 |
- use pic && myconf+=( --enable-pic ) |
309 |
- |
310 |
- # cross compile support |
311 |
- if tc-is-cross-compiler ; then |
312 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
313 |
- case ${CHOST} in |
314 |
- *freebsd*) |
315 |
- myconf+=( --target-os=freebsd ) |
316 |
- ;; |
317 |
- mingw32*) |
318 |
- myconf+=( --target-os=mingw32 ) |
319 |
- ;; |
320 |
- *linux*) |
321 |
- myconf+=( --target-os=linux ) |
322 |
- ;; |
323 |
- esac |
324 |
- fi |
325 |
- |
326 |
- # Misc stuff |
327 |
- use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) |
328 |
- |
329 |
- # Specific workarounds for too-few-registers arch... |
330 |
- if [[ ${ABI} == x86 ]]; then |
331 |
- local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
332 |
- filter-flags -fforce-addr -momit-leaf-frame-pointer |
333 |
- append-flags -fomit-frame-pointer |
334 |
- is-flag -O? || append-flags -O2 |
335 |
- if use debug; then |
336 |
- # no need to warn about debug if not using debug flag |
337 |
- ewarn "" |
338 |
- ewarn "Debug information will be almost useless as the frame pointer is omitted." |
339 |
- ewarn "This makes debugging harder, so crashes that has no fixed behavior are" |
340 |
- ewarn "difficult to fix. Please have that in mind." |
341 |
- ewarn "" |
342 |
- fi |
343 |
- fi |
344 |
- |
345 |
- set -- "${S}"/configure \ |
346 |
- --prefix="${EPREFIX}"/usr \ |
347 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
348 |
- --shlibdir="${EPREFIX}"/usr/$(get_libdir) \ |
349 |
- --mandir="${EPREFIX}"/usr/share/man \ |
350 |
- --enable-shared \ |
351 |
- --cc="$(tc-getCC)" \ |
352 |
- --ar="$(tc-getAR)" \ |
353 |
- --optflags="${CFLAGS}" \ |
354 |
- --extra-cflags="${CFLAGS}" \ |
355 |
- $(use_enable static-libs static) \ |
356 |
- "${myconf[@]}" |
357 |
- echo "${@}" |
358 |
- "${@}" || die |
359 |
-} |
360 |
- |
361 |
-multilib_src_compile() { |
362 |
- emake |
363 |
- |
364 |
- if use tools; then |
365 |
- tc-export CC |
366 |
- |
367 |
- emake ${TOOLS[@]/#/tools/} |
368 |
- fi |
369 |
-} |
370 |
- |
371 |
-multilib_src_install() { |
372 |
- emake DESTDIR="${D}" install install-man |
373 |
- use doc && dodoc doc/*.html |
374 |
- |
375 |
- if use tools; then |
376 |
- dobin ${TOOLS[@]/#/tools/} |
377 |
- fi |
378 |
-} |
379 |
- |
380 |
-multilib_src_install_all() { |
381 |
- dodoc Changelog README.md INSTALL |
382 |
-} |
383 |
- |
384 |
-multilib_src_test() { |
385 |
- local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" |
386 |
- einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" |
387 |
- LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate |
388 |
-} |
389 |
|
390 |
diff --git a/media-video/libav/libav-11.3.ebuild b/media-video/libav/libav-11.3.ebuild |
391 |
deleted file mode 100644 |
392 |
index db8e6c4c8e9..00000000000 |
393 |
--- a/media-video/libav/libav-11.3.ebuild |
394 |
+++ /dev/null |
395 |
@@ -1,344 +0,0 @@ |
396 |
-# Copyright 1999-2016 Gentoo Foundation |
397 |
-# Distributed under the terms of the GNU General Public License v2 |
398 |
- |
399 |
-EAPI=5 |
400 |
- |
401 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs |
402 |
- |
403 |
-if [[ ${PV} == *9999 ]] ; then |
404 |
- : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"} |
405 |
- if [[ ${PV%9999} != "" ]] ; then |
406 |
- : ${EGIT_BRANCH:="release/${PV%.9999}"} |
407 |
- fi |
408 |
- inherit git-r3 |
409 |
-fi |
410 |
- |
411 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video" |
412 |
-HOMEPAGE="https://libav.org/" |
413 |
-if [[ ${PV} == *9999 ]] ; then |
414 |
- SRC_URI="" |
415 |
-elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot |
416 |
- SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" |
417 |
-else # Official release |
418 |
- SRC_URI="https://libav.org/releases/${P}.tar.xz" |
419 |
- SRC_URI+=" https://dev.gentoo.org/~lu_zero/libav/patches/0001-x86-Put-COPY3_IF_LT-under-HAVE_6REGS.patch.gz" |
420 |
-fi |
421 |
-# 9999 does not have fate-*.tar.xz |
422 |
-[[ ${PV%9999} != "" ]] && SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )" |
423 |
- |
424 |
-LICENSE="LGPL-2.1 gpl? ( GPL-3 )" |
425 |
-SLOT="0/11" |
426 |
-[[ ${PV} == *9999 ]] || \ |
427 |
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
428 |
-IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk |
429 |
- frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k mp3 |
430 |
- +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl |
431 |
- static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X |
432 |
- wavpack webp x264 x265 xvid +zlib" |
433 |
- |
434 |
-# String for CPU features in the useflag[:configure_option] form |
435 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
436 |
-CPU_FEATURES="altivec armv5te armv6 armv6t2 armvfp:vfp neon" |
437 |
-X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" |
438 |
-for i in ${X86_CPU_FEATURES} ; do |
439 |
- CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" |
440 |
-done |
441 |
-for i in ${CPU_FEATURES} ; do |
442 |
- IUSE+=" ${i%:*}" |
443 |
-done |
444 |
- |
445 |
-RDEPEND=" |
446 |
- !media-video/ffmpeg:0 |
447 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
448 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
449 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
450 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
451 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
452 |
- encode? ( |
453 |
- aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
454 |
- amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
455 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
456 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
457 |
- theora? ( |
458 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
459 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
460 |
- ) |
461 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
462 |
- vorbis? ( |
463 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
464 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
465 |
- ) |
466 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
467 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
468 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
469 |
- x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) |
470 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
471 |
- ) |
472 |
- fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) |
473 |
- frei0r? ( media-plugins/frei0r-plugins ) |
474 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
475 |
- ieee1394? ( |
476 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
477 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
478 |
- ) |
479 |
- jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
480 |
- jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
481 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
482 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
483 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
484 |
- ssl? ( |
485 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) |
486 |
- !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
487 |
- ) |
488 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
489 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
490 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
491 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
492 |
- fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) |
493 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
494 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
495 |
- vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
496 |
- X? ( |
497 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
498 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
499 |
- >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
500 |
- ) |
501 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
502 |
-" |
503 |
- |
504 |
-DEPEND="${RDEPEND} |
505 |
- >=sys-devel/make-3.81 |
506 |
- doc? ( app-text/texi2html ) |
507 |
- ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
508 |
- cpu_flags_x86_mmx? ( dev-lang/yasm ) |
509 |
- rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
510 |
- schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
511 |
- ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
512 |
- test? ( sys-devel/bc ) |
513 |
- truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
514 |
- fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
515 |
- v4l? ( sys-kernel/linux-headers ) |
516 |
-" |
517 |
- |
518 |
-RDEPEND="${RDEPEND} |
519 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
520 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
521 |
- |
522 |
-# faac can't be binary distributed |
523 |
-# openssl support marked as nonfree |
524 |
-# faac and aac are concurent implementations |
525 |
-# amr and aac require at least lgpl3 |
526 |
-# x264 requires gpl2 |
527 |
-REQUIRED_USE=" |
528 |
- rtmp? ( network ) |
529 |
- amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) x265? ( gpl ) |
530 |
- test? ( encode zlib ) |
531 |
- fontconfig? ( truetype ) |
532 |
-" |
533 |
-RESTRICT="faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" |
534 |
- |
535 |
-MULTILIB_WRAPPED_HEADERS=( |
536 |
- /usr/include/libavutil/avconfig.h |
537 |
-) |
538 |
- |
539 |
-src_unpack() { |
540 |
- [[ ${PV} == *9999 ]] && git-r3_src_unpack |
541 |
- # 9999 does not have fate-*.tar.xz |
542 |
- [[ ${PV%9999} != "" ]] && default_src_unpack |
543 |
-} |
544 |
- |
545 |
-src_prepare() { |
546 |
- epatch_user |
547 |
- |
548 |
- epatch "${WORKDIR}/0001-x86-Put-COPY3_IF_LT-under-HAVE_6REGS.patch" |
549 |
- epatch "${FILESDIR}"/${P}-libvpx-1.5.0.patch #565696 |
550 |
- |
551 |
- # if we have snapshot then we need to hardcode the version |
552 |
- if [[ ${PV%_p*} != ${PV} ]]; then |
553 |
- sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die |
554 |
- fi |
555 |
- |
556 |
- TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) |
557 |
- use zlib && TOOLS+=( cws2fws ) |
558 |
- |
559 |
- MAKEOPTS+=" V=1" |
560 |
-} |
561 |
- |
562 |
-multilib_src_configure() { |
563 |
- local myconf=( ${EXTRA_LIBAV_CONF} ) |
564 |
- local uses i |
565 |
- |
566 |
- # 9999 does not have fate-*.tar.xz |
567 |
- [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) |
568 |
- |
569 |
- myconf+=( |
570 |
- $(use_enable gpl) |
571 |
- $(use_enable gpl version3) |
572 |
- --enable-avfilter |
573 |
- ) |
574 |
- |
575 |
- # enabled by default |
576 |
- uses="debug doc network zlib" |
577 |
- for i in ${uses}; do |
578 |
- use ${i} || myconf+=( --disable-${i} ) |
579 |
- done |
580 |
- use bzip2 || myconf+=( --disable-bzlib ) |
581 |
- use sdl || myconf+=( --disable-avplay ) |
582 |
- |
583 |
- if use ssl; then |
584 |
- use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ |
585 |
- || myconf+=( --enable-gnutls ) |
586 |
- fi |
587 |
- |
588 |
- use custom-cflags && myconf+=( --disable-optimizations ) |
589 |
- use cpudetection && myconf+=( --enable-runtime-cpudetect ) |
590 |
- |
591 |
- use vdpau || myconf+=( --disable-vdpau ) |
592 |
- |
593 |
- use vaapi && myconf+=( --enable-vaapi ) |
594 |
- |
595 |
- # Encoders |
596 |
- if use encode; then |
597 |
- use faac && myconf+=( --enable-nonfree ) |
598 |
- use mp3 && myconf+=( --enable-libmp3lame ) |
599 |
- use amr && myconf+=( --enable-libvo-amrwbenc ) |
600 |
- use aac && myconf+=( --enable-libvo-aacenc ) |
601 |
- uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" |
602 |
- for i in ${uses}; do |
603 |
- use ${i} && myconf+=( --enable-lib${i} ) |
604 |
- done |
605 |
- else |
606 |
- myconf+=( --disable-encoders ) |
607 |
- fi |
608 |
- |
609 |
- # libavdevice options |
610 |
- use cdio && myconf+=( --enable-libcdio ) |
611 |
- use ieee1394 && myconf+=( --enable-libdc1394 ) |
612 |
- use pulseaudio && myconf+=( --enable-libpulse ) |
613 |
- |
614 |
- # Indevs |
615 |
- # v4l1 is gone since linux-headers-2.6.38 |
616 |
- myconf+=( --disable-indev=v4l ) |
617 |
- use v4l || myconf+=( --disable-indev=v4l2 ) |
618 |
- for i in alsa oss jack; do |
619 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
620 |
- done |
621 |
- use X && myconf+=( --enable-x11grab ) |
622 |
- # Outdevs |
623 |
- for i in alsa oss ; do |
624 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
625 |
- done |
626 |
- # libavfilter options |
627 |
- use bs2b && myconf+=( --enable-libbs2b ) |
628 |
- multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) |
629 |
- use truetype && myconf+=( --enable-libfreetype ) |
630 |
- use fontconfig && myconf+=( --enable-libfontconfig ) |
631 |
- |
632 |
- # Threads; we only support pthread for now |
633 |
- use threads && myconf+=( --enable-pthreads ) |
634 |
- |
635 |
- # Decoders |
636 |
- use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) |
637 |
- use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) |
638 |
- uses="gsm opus rtmp schroedinger speex vpx" |
639 |
- for i in ${uses}; do |
640 |
- use ${i} && myconf+=( --enable-lib${i} ) |
641 |
- done |
642 |
- use jpeg2k && myconf+=( --enable-libopenjpeg ) |
643 |
- |
644 |
- # CPU features |
645 |
- for i in ${CPU_FEATURES}; do |
646 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
647 |
- done |
648 |
- |
649 |
- # pass the right -mfpu as extra |
650 |
- use neon && append-cflags -mfpu=neon |
651 |
- |
652 |
- # disable mmx accelerated code if PIC is required |
653 |
- # as the provided asm decidedly is not PIC for x86. |
654 |
- if use pic && [[ ${ABI} == x86 ]]; then |
655 |
- myconf+=( --disable-mmx --disable-mmxext ) |
656 |
- fi |
657 |
- |
658 |
- # Option to force building pic |
659 |
- use pic && myconf+=( --enable-pic ) |
660 |
- |
661 |
- # cross compile support |
662 |
- if tc-is-cross-compiler ; then |
663 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
664 |
- case ${CHOST} in |
665 |
- *freebsd*) |
666 |
- myconf+=( --target-os=freebsd ) |
667 |
- ;; |
668 |
- mingw32*) |
669 |
- myconf+=( --target-os=mingw32 ) |
670 |
- ;; |
671 |
- *linux*) |
672 |
- myconf+=( --target-os=linux ) |
673 |
- ;; |
674 |
- esac |
675 |
- fi |
676 |
- |
677 |
- # Misc stuff |
678 |
- use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) |
679 |
- |
680 |
- # Specific workarounds for too-few-registers arch... |
681 |
- if [[ ${ABI} == x86 ]]; then |
682 |
- local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
683 |
- filter-flags -fforce-addr -momit-leaf-frame-pointer |
684 |
- append-flags -fomit-frame-pointer |
685 |
- is-flag -O? || append-flags -O2 |
686 |
- if use debug; then |
687 |
- # no need to warn about debug if not using debug flag |
688 |
- ewarn "" |
689 |
- ewarn "Debug information will be almost useless as the frame pointer is omitted." |
690 |
- ewarn "This makes debugging harder, so crashes that has no fixed behavior are" |
691 |
- ewarn "difficult to fix. Please have that in mind." |
692 |
- ewarn "" |
693 |
- fi |
694 |
- fi |
695 |
- |
696 |
- set -- "${S}"/configure \ |
697 |
- --prefix="${EPREFIX}"/usr \ |
698 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
699 |
- --shlibdir="${EPREFIX}"/usr/$(get_libdir) \ |
700 |
- --mandir="${EPREFIX}"/usr/share/man \ |
701 |
- --enable-shared \ |
702 |
- --cc="$(tc-getCC)" \ |
703 |
- --ar="$(tc-getAR)" \ |
704 |
- --optflags="${CFLAGS}" \ |
705 |
- --extra-cflags="${CFLAGS}" \ |
706 |
- $(use_enable static-libs static) \ |
707 |
- "${myconf[@]}" |
708 |
- echo "${@}" |
709 |
- "${@}" || die |
710 |
-} |
711 |
- |
712 |
-multilib_src_compile() { |
713 |
- emake |
714 |
- |
715 |
- if use tools; then |
716 |
- tc-export CC |
717 |
- |
718 |
- emake ${TOOLS[@]/#/tools/} |
719 |
- fi |
720 |
-} |
721 |
- |
722 |
-multilib_src_install() { |
723 |
- emake DESTDIR="${D}" install install-man |
724 |
- use doc && dodoc doc/*.html |
725 |
- |
726 |
- if use tools; then |
727 |
- dobin ${TOOLS[@]/#/tools/} |
728 |
- fi |
729 |
-} |
730 |
- |
731 |
-multilib_src_install_all() { |
732 |
- dodoc Changelog README.md INSTALL |
733 |
-} |
734 |
- |
735 |
-multilib_src_test() { |
736 |
- local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" |
737 |
- einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" |
738 |
- LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate |
739 |
-} |
740 |
|
741 |
diff --git a/media-video/libav/libav-11.4.ebuild b/media-video/libav/libav-11.4.ebuild |
742 |
deleted file mode 100644 |
743 |
index dba68568769..00000000000 |
744 |
--- a/media-video/libav/libav-11.4.ebuild |
745 |
+++ /dev/null |
746 |
@@ -1,346 +0,0 @@ |
747 |
-# Copyright 1999-2016 Gentoo Foundation |
748 |
-# Distributed under the terms of the GNU General Public License v2 |
749 |
- |
750 |
-EAPI=5 |
751 |
- |
752 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs |
753 |
- |
754 |
-if [[ ${PV} == *9999 ]] ; then |
755 |
- : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"} |
756 |
- if [[ ${PV%9999} != "" ]] ; then |
757 |
- : ${EGIT_BRANCH:="release/${PV%.9999}"} |
758 |
- fi |
759 |
- inherit git-r3 |
760 |
-fi |
761 |
- |
762 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video" |
763 |
-HOMEPAGE="https://libav.org/" |
764 |
-if [[ ${PV} == *9999 ]] ; then |
765 |
- SRC_URI="" |
766 |
-elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot |
767 |
- SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" |
768 |
-else # Official release |
769 |
- SRC_URI="https://libav.org/releases/${P}.tar.xz" |
770 |
-fi |
771 |
-# 9999 does not have fate-*.tar.xz |
772 |
-[[ ${PV%9999} != "" ]] && SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )" |
773 |
- |
774 |
-LICENSE="LGPL-2.1 gpl? ( GPL-3 )" |
775 |
-SLOT="0/11" |
776 |
-[[ ${PV} == *9999 ]] || \ |
777 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
778 |
-IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk |
779 |
- frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 |
780 |
- +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl |
781 |
- static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X |
782 |
- wavpack webp x264 x265 xvid +zlib" |
783 |
- |
784 |
-# String for CPU features in the useflag[:configure_option] form |
785 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
786 |
-CPU_FEATURES="altivec armv5te armv6 armv6t2 armvfp:vfp neon" |
787 |
-X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" |
788 |
-for i in ${X86_CPU_FEATURES} ; do |
789 |
- CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" |
790 |
-done |
791 |
-for i in ${CPU_FEATURES} ; do |
792 |
- IUSE+=" ${i%:*}" |
793 |
-done |
794 |
- |
795 |
-RDEPEND=" |
796 |
- !media-video/ffmpeg:0 |
797 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
798 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
799 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
800 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
801 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
802 |
- encode? ( |
803 |
- aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
804 |
- amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
805 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
806 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
807 |
- theora? ( |
808 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
809 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
810 |
- ) |
811 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
812 |
- vorbis? ( |
813 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
814 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
815 |
- ) |
816 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
817 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
818 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
819 |
- x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) |
820 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
821 |
- ) |
822 |
- fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) |
823 |
- frei0r? ( media-plugins/frei0r-plugins ) |
824 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
825 |
- ieee1394? ( |
826 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
827 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
828 |
- ) |
829 |
- jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
830 |
- jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
831 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
832 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
833 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
834 |
- ssl? ( |
835 |
- openssl? ( |
836 |
- !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
837 |
- libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) |
838 |
- ) |
839 |
- !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
840 |
- ) |
841 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
842 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
843 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
844 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
845 |
- fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) |
846 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
847 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
848 |
- vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
849 |
- X? ( |
850 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
851 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
852 |
- >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
853 |
- ) |
854 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
855 |
-" |
856 |
- |
857 |
-DEPEND="${RDEPEND} |
858 |
- >=sys-devel/make-3.81 |
859 |
- doc? ( app-text/texi2html ) |
860 |
- ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
861 |
- cpu_flags_x86_mmx? ( dev-lang/yasm ) |
862 |
- rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
863 |
- schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
864 |
- ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
865 |
- test? ( sys-devel/bc ) |
866 |
- truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
867 |
- fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
868 |
- v4l? ( sys-kernel/linux-headers ) |
869 |
-" |
870 |
- |
871 |
-RDEPEND="${RDEPEND} |
872 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
873 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
874 |
- |
875 |
-# faac can't be binary distributed |
876 |
-# openssl support marked as nonfree |
877 |
-# faac and aac are concurent implementations |
878 |
-# amr and aac require at least lgpl3 |
879 |
-# x264 requires gpl2 |
880 |
-REQUIRED_USE=" |
881 |
- rtmp? ( network ) |
882 |
- amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) x265? ( gpl ) |
883 |
- test? ( encode zlib ) |
884 |
- fontconfig? ( truetype ) |
885 |
-" |
886 |
-RESTRICT="faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" |
887 |
- |
888 |
-MULTILIB_WRAPPED_HEADERS=( |
889 |
- /usr/include/libavutil/avconfig.h |
890 |
-) |
891 |
- |
892 |
-src_unpack() { |
893 |
- [[ ${PV} == *9999 ]] && git-r3_src_unpack |
894 |
- # 9999 does not have fate-*.tar.xz |
895 |
- [[ ${PV%9999} != "" ]] && default_src_unpack |
896 |
-} |
897 |
- |
898 |
-src_prepare() { |
899 |
- epatch_user |
900 |
- |
901 |
- epatch "${FILESDIR}"/libav-11.3-libvpx-1.5.0.patch #565696 |
902 |
- |
903 |
- # if we have snapshot then we need to hardcode the version |
904 |
- if [[ ${PV%_p*} != ${PV} ]]; then |
905 |
- sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die |
906 |
- fi |
907 |
- |
908 |
- TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) |
909 |
- use zlib && TOOLS+=( cws2fws ) |
910 |
- |
911 |
- MAKEOPTS+=" V=1" |
912 |
-} |
913 |
- |
914 |
-multilib_src_configure() { |
915 |
- local myconf=( ${EXTRA_LIBAV_CONF} ) |
916 |
- local uses i |
917 |
- |
918 |
- # 9999 does not have fate-*.tar.xz |
919 |
- [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) |
920 |
- |
921 |
- myconf+=( |
922 |
- $(use_enable gpl) |
923 |
- $(use_enable gpl version3) |
924 |
- # It is a security concern and removed in the next version |
925 |
- --disable-protocol=concat |
926 |
- ) |
927 |
- |
928 |
- # enabled by default |
929 |
- uses="debug doc network zlib" |
930 |
- for i in ${uses}; do |
931 |
- use ${i} || myconf+=( --disable-${i} ) |
932 |
- done |
933 |
- use bzip2 || myconf+=( --disable-bzlib ) |
934 |
- use sdl || myconf+=( --disable-avplay ) |
935 |
- |
936 |
- if use ssl; then |
937 |
- use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ |
938 |
- || myconf+=( --enable-gnutls ) |
939 |
- fi |
940 |
- |
941 |
- use custom-cflags && myconf+=( --disable-optimizations ) |
942 |
- use cpudetection && myconf+=( --enable-runtime-cpudetect ) |
943 |
- |
944 |
- use vdpau || myconf+=( --disable-vdpau ) |
945 |
- |
946 |
- use vaapi && myconf+=( --enable-vaapi ) |
947 |
- |
948 |
- # Encoders |
949 |
- if use encode; then |
950 |
- use faac && myconf+=( --enable-nonfree ) |
951 |
- use mp3 && myconf+=( --enable-libmp3lame ) |
952 |
- use amr && myconf+=( --enable-libvo-amrwbenc ) |
953 |
- use aac && myconf+=( --enable-libvo-aacenc ) |
954 |
- uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" |
955 |
- for i in ${uses}; do |
956 |
- use ${i} && myconf+=( --enable-lib${i} ) |
957 |
- done |
958 |
- else |
959 |
- myconf+=( --disable-encoders ) |
960 |
- fi |
961 |
- |
962 |
- # libavdevice options |
963 |
- use cdio && myconf+=( --enable-libcdio ) |
964 |
- use ieee1394 && myconf+=( --enable-libdc1394 ) |
965 |
- use pulseaudio && myconf+=( --enable-libpulse ) |
966 |
- |
967 |
- # Indevs |
968 |
- # v4l1 is gone since linux-headers-2.6.38 |
969 |
- myconf+=( --disable-indev=v4l ) |
970 |
- use v4l || myconf+=( --disable-indev=v4l2 ) |
971 |
- for i in alsa oss jack; do |
972 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
973 |
- done |
974 |
- use X && myconf+=( --enable-x11grab ) |
975 |
- # Outdevs |
976 |
- for i in alsa oss ; do |
977 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
978 |
- done |
979 |
- # libavfilter options |
980 |
- use bs2b && myconf+=( --enable-libbs2b ) |
981 |
- multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) |
982 |
- use truetype && myconf+=( --enable-libfreetype ) |
983 |
- use fontconfig && myconf+=( --enable-libfontconfig ) |
984 |
- |
985 |
- # Threads; we only support pthread for now |
986 |
- use threads && myconf+=( --enable-pthreads ) |
987 |
- |
988 |
- # Decoders |
989 |
- use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) |
990 |
- use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) |
991 |
- uses="gsm opus rtmp schroedinger speex vpx" |
992 |
- for i in ${uses}; do |
993 |
- use ${i} && myconf+=( --enable-lib${i} ) |
994 |
- done |
995 |
- use jpeg2k && myconf+=( --enable-libopenjpeg ) |
996 |
- |
997 |
- # CPU features |
998 |
- for i in ${CPU_FEATURES}; do |
999 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
1000 |
- done |
1001 |
- |
1002 |
- # pass the right -mfpu as extra |
1003 |
- use neon && append-cflags -mfpu=neon |
1004 |
- |
1005 |
- # disable mmx accelerated code if PIC is required |
1006 |
- # as the provided asm decidedly is not PIC for x86. |
1007 |
- if use pic && [[ ${ABI} == x86 ]]; then |
1008 |
- myconf+=( --disable-mmx --disable-mmxext ) |
1009 |
- fi |
1010 |
- |
1011 |
- # Option to force building pic |
1012 |
- use pic && myconf+=( --enable-pic ) |
1013 |
- |
1014 |
- # cross compile support |
1015 |
- if tc-is-cross-compiler ; then |
1016 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
1017 |
- case ${CHOST} in |
1018 |
- *freebsd*) |
1019 |
- myconf+=( --target-os=freebsd ) |
1020 |
- ;; |
1021 |
- mingw32*) |
1022 |
- myconf+=( --target-os=mingw32 ) |
1023 |
- ;; |
1024 |
- *linux*) |
1025 |
- myconf+=( --target-os=linux ) |
1026 |
- ;; |
1027 |
- esac |
1028 |
- fi |
1029 |
- |
1030 |
- # Misc stuff |
1031 |
- use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) |
1032 |
- |
1033 |
- # Specific workarounds for too-few-registers arch... |
1034 |
- if [[ ${ABI} == x86 ]]; then |
1035 |
- local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
1036 |
- filter-flags -fforce-addr -momit-leaf-frame-pointer |
1037 |
- append-flags -fomit-frame-pointer |
1038 |
- is-flag -O? || append-flags -O2 |
1039 |
- if use debug; then |
1040 |
- # no need to warn about debug if not using debug flag |
1041 |
- ewarn "" |
1042 |
- ewarn "Debug information will be almost useless as the frame pointer is omitted." |
1043 |
- ewarn "This makes debugging harder, so crashes that has no fixed behavior are" |
1044 |
- ewarn "difficult to fix. Please have that in mind." |
1045 |
- ewarn "" |
1046 |
- fi |
1047 |
- fi |
1048 |
- |
1049 |
- set -- "${S}"/configure \ |
1050 |
- --prefix="${EPREFIX}"/usr \ |
1051 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
1052 |
- --shlibdir="${EPREFIX}"/usr/$(get_libdir) \ |
1053 |
- --mandir="${EPREFIX}"/usr/share/man \ |
1054 |
- --enable-shared \ |
1055 |
- --cc="$(tc-getCC)" \ |
1056 |
- --ar="$(tc-getAR)" \ |
1057 |
- --optflags="${CFLAGS}" \ |
1058 |
- --extra-cflags="${CFLAGS}" \ |
1059 |
- $(use_enable static-libs static) \ |
1060 |
- "${myconf[@]}" |
1061 |
- echo "${@}" |
1062 |
- "${@}" || die |
1063 |
-} |
1064 |
- |
1065 |
-multilib_src_compile() { |
1066 |
- emake |
1067 |
- |
1068 |
- if use tools; then |
1069 |
- tc-export CC |
1070 |
- |
1071 |
- emake ${TOOLS[@]/#/tools/} |
1072 |
- fi |
1073 |
-} |
1074 |
- |
1075 |
-multilib_src_install() { |
1076 |
- emake DESTDIR="${D}" install install-man |
1077 |
- use doc && dodoc doc/*.html |
1078 |
- |
1079 |
- if use tools; then |
1080 |
- dobin ${TOOLS[@]/#/tools/} |
1081 |
- fi |
1082 |
-} |
1083 |
- |
1084 |
-multilib_src_install_all() { |
1085 |
- dodoc Changelog README.md INSTALL |
1086 |
-} |
1087 |
- |
1088 |
-multilib_src_test() { |
1089 |
- local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" |
1090 |
- einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" |
1091 |
- LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate |
1092 |
-} |
1093 |
|
1094 |
diff --git a/media-video/libav/libav-11.6.ebuild b/media-video/libav/libav-11.6.ebuild |
1095 |
deleted file mode 100644 |
1096 |
index dba68568769..00000000000 |
1097 |
--- a/media-video/libav/libav-11.6.ebuild |
1098 |
+++ /dev/null |
1099 |
@@ -1,346 +0,0 @@ |
1100 |
-# Copyright 1999-2016 Gentoo Foundation |
1101 |
-# Distributed under the terms of the GNU General Public License v2 |
1102 |
- |
1103 |
-EAPI=5 |
1104 |
- |
1105 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs |
1106 |
- |
1107 |
-if [[ ${PV} == *9999 ]] ; then |
1108 |
- : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"} |
1109 |
- if [[ ${PV%9999} != "" ]] ; then |
1110 |
- : ${EGIT_BRANCH:="release/${PV%.9999}"} |
1111 |
- fi |
1112 |
- inherit git-r3 |
1113 |
-fi |
1114 |
- |
1115 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video" |
1116 |
-HOMEPAGE="https://libav.org/" |
1117 |
-if [[ ${PV} == *9999 ]] ; then |
1118 |
- SRC_URI="" |
1119 |
-elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot |
1120 |
- SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" |
1121 |
-else # Official release |
1122 |
- SRC_URI="https://libav.org/releases/${P}.tar.xz" |
1123 |
-fi |
1124 |
-# 9999 does not have fate-*.tar.xz |
1125 |
-[[ ${PV%9999} != "" ]] && SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )" |
1126 |
- |
1127 |
-LICENSE="LGPL-2.1 gpl? ( GPL-3 )" |
1128 |
-SLOT="0/11" |
1129 |
-[[ ${PV} == *9999 ]] || \ |
1130 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
1131 |
-IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk |
1132 |
- frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 |
1133 |
- +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl |
1134 |
- static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X |
1135 |
- wavpack webp x264 x265 xvid +zlib" |
1136 |
- |
1137 |
-# String for CPU features in the useflag[:configure_option] form |
1138 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
1139 |
-CPU_FEATURES="altivec armv5te armv6 armv6t2 armvfp:vfp neon" |
1140 |
-X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" |
1141 |
-for i in ${X86_CPU_FEATURES} ; do |
1142 |
- CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" |
1143 |
-done |
1144 |
-for i in ${CPU_FEATURES} ; do |
1145 |
- IUSE+=" ${i%:*}" |
1146 |
-done |
1147 |
- |
1148 |
-RDEPEND=" |
1149 |
- !media-video/ffmpeg:0 |
1150 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
1151 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
1152 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
1153 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
1154 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
1155 |
- encode? ( |
1156 |
- aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
1157 |
- amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
1158 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
1159 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
1160 |
- theora? ( |
1161 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
1162 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1163 |
- ) |
1164 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
1165 |
- vorbis? ( |
1166 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
1167 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1168 |
- ) |
1169 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
1170 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
1171 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
1172 |
- x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) |
1173 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
1174 |
- ) |
1175 |
- fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) |
1176 |
- frei0r? ( media-plugins/frei0r-plugins ) |
1177 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
1178 |
- ieee1394? ( |
1179 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
1180 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1181 |
- ) |
1182 |
- jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
1183 |
- jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
1184 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
1185 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
1186 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
1187 |
- ssl? ( |
1188 |
- openssl? ( |
1189 |
- !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
1190 |
- libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) |
1191 |
- ) |
1192 |
- !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
1193 |
- ) |
1194 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
1195 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
1196 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
1197 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
1198 |
- fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) |
1199 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
1200 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
1201 |
- vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
1202 |
- X? ( |
1203 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
1204 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
1205 |
- >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
1206 |
- ) |
1207 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
1208 |
-" |
1209 |
- |
1210 |
-DEPEND="${RDEPEND} |
1211 |
- >=sys-devel/make-3.81 |
1212 |
- doc? ( app-text/texi2html ) |
1213 |
- ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1214 |
- cpu_flags_x86_mmx? ( dev-lang/yasm ) |
1215 |
- rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1216 |
- schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1217 |
- ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1218 |
- test? ( sys-devel/bc ) |
1219 |
- truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1220 |
- fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1221 |
- v4l? ( sys-kernel/linux-headers ) |
1222 |
-" |
1223 |
- |
1224 |
-RDEPEND="${RDEPEND} |
1225 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
1226 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
1227 |
- |
1228 |
-# faac can't be binary distributed |
1229 |
-# openssl support marked as nonfree |
1230 |
-# faac and aac are concurent implementations |
1231 |
-# amr and aac require at least lgpl3 |
1232 |
-# x264 requires gpl2 |
1233 |
-REQUIRED_USE=" |
1234 |
- rtmp? ( network ) |
1235 |
- amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) x265? ( gpl ) |
1236 |
- test? ( encode zlib ) |
1237 |
- fontconfig? ( truetype ) |
1238 |
-" |
1239 |
-RESTRICT="faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" |
1240 |
- |
1241 |
-MULTILIB_WRAPPED_HEADERS=( |
1242 |
- /usr/include/libavutil/avconfig.h |
1243 |
-) |
1244 |
- |
1245 |
-src_unpack() { |
1246 |
- [[ ${PV} == *9999 ]] && git-r3_src_unpack |
1247 |
- # 9999 does not have fate-*.tar.xz |
1248 |
- [[ ${PV%9999} != "" ]] && default_src_unpack |
1249 |
-} |
1250 |
- |
1251 |
-src_prepare() { |
1252 |
- epatch_user |
1253 |
- |
1254 |
- epatch "${FILESDIR}"/libav-11.3-libvpx-1.5.0.patch #565696 |
1255 |
- |
1256 |
- # if we have snapshot then we need to hardcode the version |
1257 |
- if [[ ${PV%_p*} != ${PV} ]]; then |
1258 |
- sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die |
1259 |
- fi |
1260 |
- |
1261 |
- TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) |
1262 |
- use zlib && TOOLS+=( cws2fws ) |
1263 |
- |
1264 |
- MAKEOPTS+=" V=1" |
1265 |
-} |
1266 |
- |
1267 |
-multilib_src_configure() { |
1268 |
- local myconf=( ${EXTRA_LIBAV_CONF} ) |
1269 |
- local uses i |
1270 |
- |
1271 |
- # 9999 does not have fate-*.tar.xz |
1272 |
- [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) |
1273 |
- |
1274 |
- myconf+=( |
1275 |
- $(use_enable gpl) |
1276 |
- $(use_enable gpl version3) |
1277 |
- # It is a security concern and removed in the next version |
1278 |
- --disable-protocol=concat |
1279 |
- ) |
1280 |
- |
1281 |
- # enabled by default |
1282 |
- uses="debug doc network zlib" |
1283 |
- for i in ${uses}; do |
1284 |
- use ${i} || myconf+=( --disable-${i} ) |
1285 |
- done |
1286 |
- use bzip2 || myconf+=( --disable-bzlib ) |
1287 |
- use sdl || myconf+=( --disable-avplay ) |
1288 |
- |
1289 |
- if use ssl; then |
1290 |
- use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ |
1291 |
- || myconf+=( --enable-gnutls ) |
1292 |
- fi |
1293 |
- |
1294 |
- use custom-cflags && myconf+=( --disable-optimizations ) |
1295 |
- use cpudetection && myconf+=( --enable-runtime-cpudetect ) |
1296 |
- |
1297 |
- use vdpau || myconf+=( --disable-vdpau ) |
1298 |
- |
1299 |
- use vaapi && myconf+=( --enable-vaapi ) |
1300 |
- |
1301 |
- # Encoders |
1302 |
- if use encode; then |
1303 |
- use faac && myconf+=( --enable-nonfree ) |
1304 |
- use mp3 && myconf+=( --enable-libmp3lame ) |
1305 |
- use amr && myconf+=( --enable-libvo-amrwbenc ) |
1306 |
- use aac && myconf+=( --enable-libvo-aacenc ) |
1307 |
- uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" |
1308 |
- for i in ${uses}; do |
1309 |
- use ${i} && myconf+=( --enable-lib${i} ) |
1310 |
- done |
1311 |
- else |
1312 |
- myconf+=( --disable-encoders ) |
1313 |
- fi |
1314 |
- |
1315 |
- # libavdevice options |
1316 |
- use cdio && myconf+=( --enable-libcdio ) |
1317 |
- use ieee1394 && myconf+=( --enable-libdc1394 ) |
1318 |
- use pulseaudio && myconf+=( --enable-libpulse ) |
1319 |
- |
1320 |
- # Indevs |
1321 |
- # v4l1 is gone since linux-headers-2.6.38 |
1322 |
- myconf+=( --disable-indev=v4l ) |
1323 |
- use v4l || myconf+=( --disable-indev=v4l2 ) |
1324 |
- for i in alsa oss jack; do |
1325 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
1326 |
- done |
1327 |
- use X && myconf+=( --enable-x11grab ) |
1328 |
- # Outdevs |
1329 |
- for i in alsa oss ; do |
1330 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
1331 |
- done |
1332 |
- # libavfilter options |
1333 |
- use bs2b && myconf+=( --enable-libbs2b ) |
1334 |
- multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) |
1335 |
- use truetype && myconf+=( --enable-libfreetype ) |
1336 |
- use fontconfig && myconf+=( --enable-libfontconfig ) |
1337 |
- |
1338 |
- # Threads; we only support pthread for now |
1339 |
- use threads && myconf+=( --enable-pthreads ) |
1340 |
- |
1341 |
- # Decoders |
1342 |
- use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) |
1343 |
- use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) |
1344 |
- uses="gsm opus rtmp schroedinger speex vpx" |
1345 |
- for i in ${uses}; do |
1346 |
- use ${i} && myconf+=( --enable-lib${i} ) |
1347 |
- done |
1348 |
- use jpeg2k && myconf+=( --enable-libopenjpeg ) |
1349 |
- |
1350 |
- # CPU features |
1351 |
- for i in ${CPU_FEATURES}; do |
1352 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
1353 |
- done |
1354 |
- |
1355 |
- # pass the right -mfpu as extra |
1356 |
- use neon && append-cflags -mfpu=neon |
1357 |
- |
1358 |
- # disable mmx accelerated code if PIC is required |
1359 |
- # as the provided asm decidedly is not PIC for x86. |
1360 |
- if use pic && [[ ${ABI} == x86 ]]; then |
1361 |
- myconf+=( --disable-mmx --disable-mmxext ) |
1362 |
- fi |
1363 |
- |
1364 |
- # Option to force building pic |
1365 |
- use pic && myconf+=( --enable-pic ) |
1366 |
- |
1367 |
- # cross compile support |
1368 |
- if tc-is-cross-compiler ; then |
1369 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
1370 |
- case ${CHOST} in |
1371 |
- *freebsd*) |
1372 |
- myconf+=( --target-os=freebsd ) |
1373 |
- ;; |
1374 |
- mingw32*) |
1375 |
- myconf+=( --target-os=mingw32 ) |
1376 |
- ;; |
1377 |
- *linux*) |
1378 |
- myconf+=( --target-os=linux ) |
1379 |
- ;; |
1380 |
- esac |
1381 |
- fi |
1382 |
- |
1383 |
- # Misc stuff |
1384 |
- use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) |
1385 |
- |
1386 |
- # Specific workarounds for too-few-registers arch... |
1387 |
- if [[ ${ABI} == x86 ]]; then |
1388 |
- local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
1389 |
- filter-flags -fforce-addr -momit-leaf-frame-pointer |
1390 |
- append-flags -fomit-frame-pointer |
1391 |
- is-flag -O? || append-flags -O2 |
1392 |
- if use debug; then |
1393 |
- # no need to warn about debug if not using debug flag |
1394 |
- ewarn "" |
1395 |
- ewarn "Debug information will be almost useless as the frame pointer is omitted." |
1396 |
- ewarn "This makes debugging harder, so crashes that has no fixed behavior are" |
1397 |
- ewarn "difficult to fix. Please have that in mind." |
1398 |
- ewarn "" |
1399 |
- fi |
1400 |
- fi |
1401 |
- |
1402 |
- set -- "${S}"/configure \ |
1403 |
- --prefix="${EPREFIX}"/usr \ |
1404 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
1405 |
- --shlibdir="${EPREFIX}"/usr/$(get_libdir) \ |
1406 |
- --mandir="${EPREFIX}"/usr/share/man \ |
1407 |
- --enable-shared \ |
1408 |
- --cc="$(tc-getCC)" \ |
1409 |
- --ar="$(tc-getAR)" \ |
1410 |
- --optflags="${CFLAGS}" \ |
1411 |
- --extra-cflags="${CFLAGS}" \ |
1412 |
- $(use_enable static-libs static) \ |
1413 |
- "${myconf[@]}" |
1414 |
- echo "${@}" |
1415 |
- "${@}" || die |
1416 |
-} |
1417 |
- |
1418 |
-multilib_src_compile() { |
1419 |
- emake |
1420 |
- |
1421 |
- if use tools; then |
1422 |
- tc-export CC |
1423 |
- |
1424 |
- emake ${TOOLS[@]/#/tools/} |
1425 |
- fi |
1426 |
-} |
1427 |
- |
1428 |
-multilib_src_install() { |
1429 |
- emake DESTDIR="${D}" install install-man |
1430 |
- use doc && dodoc doc/*.html |
1431 |
- |
1432 |
- if use tools; then |
1433 |
- dobin ${TOOLS[@]/#/tools/} |
1434 |
- fi |
1435 |
-} |
1436 |
- |
1437 |
-multilib_src_install_all() { |
1438 |
- dodoc Changelog README.md INSTALL |
1439 |
-} |
1440 |
- |
1441 |
-multilib_src_test() { |
1442 |
- local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" |
1443 |
- einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" |
1444 |
- LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate |
1445 |
-} |
1446 |
|
1447 |
diff --git a/media-video/libav/libav-11.7.ebuild b/media-video/libav/libav-11.7.ebuild |
1448 |
deleted file mode 100644 |
1449 |
index dba68568769..00000000000 |
1450 |
--- a/media-video/libav/libav-11.7.ebuild |
1451 |
+++ /dev/null |
1452 |
@@ -1,346 +0,0 @@ |
1453 |
-# Copyright 1999-2016 Gentoo Foundation |
1454 |
-# Distributed under the terms of the GNU General Public License v2 |
1455 |
- |
1456 |
-EAPI=5 |
1457 |
- |
1458 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs |
1459 |
- |
1460 |
-if [[ ${PV} == *9999 ]] ; then |
1461 |
- : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"} |
1462 |
- if [[ ${PV%9999} != "" ]] ; then |
1463 |
- : ${EGIT_BRANCH:="release/${PV%.9999}"} |
1464 |
- fi |
1465 |
- inherit git-r3 |
1466 |
-fi |
1467 |
- |
1468 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video" |
1469 |
-HOMEPAGE="https://libav.org/" |
1470 |
-if [[ ${PV} == *9999 ]] ; then |
1471 |
- SRC_URI="" |
1472 |
-elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot |
1473 |
- SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" |
1474 |
-else # Official release |
1475 |
- SRC_URI="https://libav.org/releases/${P}.tar.xz" |
1476 |
-fi |
1477 |
-# 9999 does not have fate-*.tar.xz |
1478 |
-[[ ${PV%9999} != "" ]] && SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )" |
1479 |
- |
1480 |
-LICENSE="LGPL-2.1 gpl? ( GPL-3 )" |
1481 |
-SLOT="0/11" |
1482 |
-[[ ${PV} == *9999 ]] || \ |
1483 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
1484 |
-IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk |
1485 |
- frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3 |
1486 |
- +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl |
1487 |
- static-libs test theora threads tools truetype twolame v4l vaapi vdpau vorbis vpx X |
1488 |
- wavpack webp x264 x265 xvid +zlib" |
1489 |
- |
1490 |
-# String for CPU features in the useflag[:configure_option] form |
1491 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
1492 |
-CPU_FEATURES="altivec armv5te armv6 armv6t2 armvfp:vfp neon" |
1493 |
-X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext mmx mmxext sse sse2 sse3 ssse3 sse4_1:sse4 sse4_2:sse42 avx xop fma3 fma4 avx2" |
1494 |
-for i in ${X86_CPU_FEATURES} ; do |
1495 |
- CPU_FEATURES+=" cpu_flags_x86_${i%:*}:${i#*:}" |
1496 |
-done |
1497 |
-for i in ${CPU_FEATURES} ; do |
1498 |
- IUSE+=" ${i%:*}" |
1499 |
-done |
1500 |
- |
1501 |
-RDEPEND=" |
1502 |
- !media-video/ffmpeg:0 |
1503 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
1504 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
1505 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
1506 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
1507 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
1508 |
- encode? ( |
1509 |
- aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
1510 |
- amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
1511 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
1512 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
1513 |
- theora? ( |
1514 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
1515 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1516 |
- ) |
1517 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
1518 |
- vorbis? ( |
1519 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
1520 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1521 |
- ) |
1522 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
1523 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
1524 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
1525 |
- x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) |
1526 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
1527 |
- ) |
1528 |
- fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) |
1529 |
- frei0r? ( media-plugins/frei0r-plugins ) |
1530 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
1531 |
- ieee1394? ( |
1532 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
1533 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1534 |
- ) |
1535 |
- jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
1536 |
- jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
1537 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
1538 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
1539 |
- rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
1540 |
- ssl? ( |
1541 |
- openssl? ( |
1542 |
- !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
1543 |
- libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] ) |
1544 |
- ) |
1545 |
- !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
1546 |
- ) |
1547 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
1548 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
1549 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
1550 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
1551 |
- fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) |
1552 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
1553 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
1554 |
- vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
1555 |
- X? ( |
1556 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
1557 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
1558 |
- >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
1559 |
- ) |
1560 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
1561 |
-" |
1562 |
- |
1563 |
-DEPEND="${RDEPEND} |
1564 |
- >=sys-devel/make-3.81 |
1565 |
- doc? ( app-text/texi2html ) |
1566 |
- ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1567 |
- cpu_flags_x86_mmx? ( dev-lang/yasm ) |
1568 |
- rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1569 |
- schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1570 |
- ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1571 |
- test? ( sys-devel/bc ) |
1572 |
- truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1573 |
- fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
1574 |
- v4l? ( sys-kernel/linux-headers ) |
1575 |
-" |
1576 |
- |
1577 |
-RDEPEND="${RDEPEND} |
1578 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
1579 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
1580 |
- |
1581 |
-# faac can't be binary distributed |
1582 |
-# openssl support marked as nonfree |
1583 |
-# faac and aac are concurent implementations |
1584 |
-# amr and aac require at least lgpl3 |
1585 |
-# x264 requires gpl2 |
1586 |
-REQUIRED_USE=" |
1587 |
- rtmp? ( network ) |
1588 |
- amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) x265? ( gpl ) |
1589 |
- test? ( encode zlib ) |
1590 |
- fontconfig? ( truetype ) |
1591 |
-" |
1592 |
-RESTRICT="faac? ( bindist ) fdk? ( bindist ) openssl? ( bindist )" |
1593 |
- |
1594 |
-MULTILIB_WRAPPED_HEADERS=( |
1595 |
- /usr/include/libavutil/avconfig.h |
1596 |
-) |
1597 |
- |
1598 |
-src_unpack() { |
1599 |
- [[ ${PV} == *9999 ]] && git-r3_src_unpack |
1600 |
- # 9999 does not have fate-*.tar.xz |
1601 |
- [[ ${PV%9999} != "" ]] && default_src_unpack |
1602 |
-} |
1603 |
- |
1604 |
-src_prepare() { |
1605 |
- epatch_user |
1606 |
- |
1607 |
- epatch "${FILESDIR}"/libav-11.3-libvpx-1.5.0.patch #565696 |
1608 |
- |
1609 |
- # if we have snapshot then we need to hardcode the version |
1610 |
- if [[ ${PV%_p*} != ${PV} ]]; then |
1611 |
- sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die |
1612 |
- fi |
1613 |
- |
1614 |
- TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) |
1615 |
- use zlib && TOOLS+=( cws2fws ) |
1616 |
- |
1617 |
- MAKEOPTS+=" V=1" |
1618 |
-} |
1619 |
- |
1620 |
-multilib_src_configure() { |
1621 |
- local myconf=( ${EXTRA_LIBAV_CONF} ) |
1622 |
- local uses i |
1623 |
- |
1624 |
- # 9999 does not have fate-*.tar.xz |
1625 |
- [[ ${PV%9999} != "" ]] && use test && myconf+=( --samples="${WORKDIR}/fate" ) |
1626 |
- |
1627 |
- myconf+=( |
1628 |
- $(use_enable gpl) |
1629 |
- $(use_enable gpl version3) |
1630 |
- # It is a security concern and removed in the next version |
1631 |
- --disable-protocol=concat |
1632 |
- ) |
1633 |
- |
1634 |
- # enabled by default |
1635 |
- uses="debug doc network zlib" |
1636 |
- for i in ${uses}; do |
1637 |
- use ${i} || myconf+=( --disable-${i} ) |
1638 |
- done |
1639 |
- use bzip2 || myconf+=( --disable-bzlib ) |
1640 |
- use sdl || myconf+=( --disable-avplay ) |
1641 |
- |
1642 |
- if use ssl; then |
1643 |
- use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ |
1644 |
- || myconf+=( --enable-gnutls ) |
1645 |
- fi |
1646 |
- |
1647 |
- use custom-cflags && myconf+=( --disable-optimizations ) |
1648 |
- use cpudetection && myconf+=( --enable-runtime-cpudetect ) |
1649 |
- |
1650 |
- use vdpau || myconf+=( --disable-vdpau ) |
1651 |
- |
1652 |
- use vaapi && myconf+=( --enable-vaapi ) |
1653 |
- |
1654 |
- # Encoders |
1655 |
- if use encode; then |
1656 |
- use faac && myconf+=( --enable-nonfree ) |
1657 |
- use mp3 && myconf+=( --enable-libmp3lame ) |
1658 |
- use amr && myconf+=( --enable-libvo-amrwbenc ) |
1659 |
- use aac && myconf+=( --enable-libvo-aacenc ) |
1660 |
- uses="faac theora twolame vorbis wavpack webp x264 x265 xvid" |
1661 |
- for i in ${uses}; do |
1662 |
- use ${i} && myconf+=( --enable-lib${i} ) |
1663 |
- done |
1664 |
- else |
1665 |
- myconf+=( --disable-encoders ) |
1666 |
- fi |
1667 |
- |
1668 |
- # libavdevice options |
1669 |
- use cdio && myconf+=( --enable-libcdio ) |
1670 |
- use ieee1394 && myconf+=( --enable-libdc1394 ) |
1671 |
- use pulseaudio && myconf+=( --enable-libpulse ) |
1672 |
- |
1673 |
- # Indevs |
1674 |
- # v4l1 is gone since linux-headers-2.6.38 |
1675 |
- myconf+=( --disable-indev=v4l ) |
1676 |
- use v4l || myconf+=( --disable-indev=v4l2 ) |
1677 |
- for i in alsa oss jack; do |
1678 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
1679 |
- done |
1680 |
- use X && myconf+=( --enable-x11grab ) |
1681 |
- # Outdevs |
1682 |
- for i in alsa oss ; do |
1683 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
1684 |
- done |
1685 |
- # libavfilter options |
1686 |
- use bs2b && myconf+=( --enable-libbs2b ) |
1687 |
- multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) |
1688 |
- use truetype && myconf+=( --enable-libfreetype ) |
1689 |
- use fontconfig && myconf+=( --enable-libfontconfig ) |
1690 |
- |
1691 |
- # Threads; we only support pthread for now |
1692 |
- use threads && myconf+=( --enable-pthreads ) |
1693 |
- |
1694 |
- # Decoders |
1695 |
- use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) |
1696 |
- use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) |
1697 |
- uses="gsm opus rtmp schroedinger speex vpx" |
1698 |
- for i in ${uses}; do |
1699 |
- use ${i} && myconf+=( --enable-lib${i} ) |
1700 |
- done |
1701 |
- use jpeg2k && myconf+=( --enable-libopenjpeg ) |
1702 |
- |
1703 |
- # CPU features |
1704 |
- for i in ${CPU_FEATURES}; do |
1705 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
1706 |
- done |
1707 |
- |
1708 |
- # pass the right -mfpu as extra |
1709 |
- use neon && append-cflags -mfpu=neon |
1710 |
- |
1711 |
- # disable mmx accelerated code if PIC is required |
1712 |
- # as the provided asm decidedly is not PIC for x86. |
1713 |
- if use pic && [[ ${ABI} == x86 ]]; then |
1714 |
- myconf+=( --disable-mmx --disable-mmxext ) |
1715 |
- fi |
1716 |
- |
1717 |
- # Option to force building pic |
1718 |
- use pic && myconf+=( --enable-pic ) |
1719 |
- |
1720 |
- # cross compile support |
1721 |
- if tc-is-cross-compiler ; then |
1722 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
1723 |
- case ${CHOST} in |
1724 |
- *freebsd*) |
1725 |
- myconf+=( --target-os=freebsd ) |
1726 |
- ;; |
1727 |
- mingw32*) |
1728 |
- myconf+=( --target-os=mingw32 ) |
1729 |
- ;; |
1730 |
- *linux*) |
1731 |
- myconf+=( --target-os=linux ) |
1732 |
- ;; |
1733 |
- esac |
1734 |
- fi |
1735 |
- |
1736 |
- # Misc stuff |
1737 |
- use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) |
1738 |
- |
1739 |
- # Specific workarounds for too-few-registers arch... |
1740 |
- if [[ ${ABI} == x86 ]]; then |
1741 |
- local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} |
1742 |
- filter-flags -fforce-addr -momit-leaf-frame-pointer |
1743 |
- append-flags -fomit-frame-pointer |
1744 |
- is-flag -O? || append-flags -O2 |
1745 |
- if use debug; then |
1746 |
- # no need to warn about debug if not using debug flag |
1747 |
- ewarn "" |
1748 |
- ewarn "Debug information will be almost useless as the frame pointer is omitted." |
1749 |
- ewarn "This makes debugging harder, so crashes that has no fixed behavior are" |
1750 |
- ewarn "difficult to fix. Please have that in mind." |
1751 |
- ewarn "" |
1752 |
- fi |
1753 |
- fi |
1754 |
- |
1755 |
- set -- "${S}"/configure \ |
1756 |
- --prefix="${EPREFIX}"/usr \ |
1757 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
1758 |
- --shlibdir="${EPREFIX}"/usr/$(get_libdir) \ |
1759 |
- --mandir="${EPREFIX}"/usr/share/man \ |
1760 |
- --enable-shared \ |
1761 |
- --cc="$(tc-getCC)" \ |
1762 |
- --ar="$(tc-getAR)" \ |
1763 |
- --optflags="${CFLAGS}" \ |
1764 |
- --extra-cflags="${CFLAGS}" \ |
1765 |
- $(use_enable static-libs static) \ |
1766 |
- "${myconf[@]}" |
1767 |
- echo "${@}" |
1768 |
- "${@}" || die |
1769 |
-} |
1770 |
- |
1771 |
-multilib_src_compile() { |
1772 |
- emake |
1773 |
- |
1774 |
- if use tools; then |
1775 |
- tc-export CC |
1776 |
- |
1777 |
- emake ${TOOLS[@]/#/tools/} |
1778 |
- fi |
1779 |
-} |
1780 |
- |
1781 |
-multilib_src_install() { |
1782 |
- emake DESTDIR="${D}" install install-man |
1783 |
- use doc && dodoc doc/*.html |
1784 |
- |
1785 |
- if use tools; then |
1786 |
- dobin ${TOOLS[@]/#/tools/} |
1787 |
- fi |
1788 |
-} |
1789 |
- |
1790 |
-multilib_src_install_all() { |
1791 |
- dodoc Changelog README.md INSTALL |
1792 |
-} |
1793 |
- |
1794 |
-multilib_src_test() { |
1795 |
- local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)" |
1796 |
- einfo "LD_LIBRARY_PATH is set to \"${_libs}\"" |
1797 |
- LD_LIBRARY_PATH="${_libs}" emake -k -j1 fate |
1798 |
-} |