Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg/
Date: Sat, 24 Dec 2016 10:33:36
Message-Id: 1482575604.d0f4c01d5c36ba6f209a8506c27f7b71260749d0.aballier@gentoo
1 commit: d0f4c01d5c36ba6f209a8506c27f7b71260749d0
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 24 10:28:22 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 24 10:33:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0f4c01d
7
8 media-video/ffmpeg: remove old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 media-video/ffmpeg/Manifest | 3 -
13 media-video/ffmpeg/ffmpeg-2.8.8.ebuild | 458 ---------------------------------
14 media-video/ffmpeg/ffmpeg-2.8.9.ebuild | 458 ---------------------------------
15 media-video/ffmpeg/ffmpeg-3.2.1.ebuild | 457 --------------------------------
16 4 files changed, 1376 deletions(-)
17
18 diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
19 index 4632377..b6547f7 100644
20 --- a/media-video/ffmpeg/Manifest
21 +++ b/media-video/ffmpeg/Manifest
22 @@ -1,6 +1,3 @@
23 DIST ffmpeg-2.8.10.tar.bz2 8585304 SHA256 d1ce1a73503dce6e2b1e208cb93a2a8a7e89f9c64357ddc3e4da3cab33dea9c9 SHA512 1ca8b0060361c49de201afc463bcd7c9340f09bbd116dff2539653bc36411d60cdf667874d2ec51664e141ee7a7be8bebc94e158687cb97db6bdfa40f00ec193 WHIRLPOOL 4ff9271290c138ad5caa50835da9fd6685fabf5a589cb6c068cfff6698ded948d93e9d40656dca3b516f9e591119d204e6283d57f7d2f0747a4f7ef9b322ebce
24 DIST ffmpeg-2.8.6.tar.bz2 8582420 SHA256 40611e329bc354592c6f8f1deb033c31b91f80e91f5707ca4f9afceca78d8e62 SHA512 68fb41884b95953025b9c56496b17e13062196800ff9834dac43a12e9a0048d4a763f50a2256418c91cc850b63713e1debbf9170737f29621f48946adef152dc WHIRLPOOL 20a4b12b5a03f187b753cca43c65bd75b49cc21c9ffabad31b8ac0ab47fc8e017931ad5076b701c303bb594b20acb403d3ec2dabdf647fd262c070c8dabf1eea
25 -DIST ffmpeg-2.8.8.tar.bz2 8583641 SHA256 b70848958feadca180315d17b1131a1b519527971590e6ee8363a4c568ed06a6 SHA512 26fc2f9da8b0c62fb3147632476d328dff096f07efc83112dd3cf3a1da6b42edab053ef8f05d2035c5f824d9336020b3b4a99501243f83ec66255f082278bfb3 WHIRLPOOL 9ba67f08dcfbed0c3519767d9fea35f24a3652290ad095d01d928cf9f54e9e99afa410889c6afb84f22cd9882b5a7d44f304d602b41510973962517228f5f32f
26 -DIST ffmpeg-2.8.9.tar.bz2 8583736 SHA256 7f979f1dd9a4d8f756636d4f52daf53fdc632ae2e27720f2ed9e9b2b0c659439 SHA512 3d36c5937b8902299f826849d77774e477cec5c280d56713b6f11d06a51679497ef18f5d6222f1984586a4e3fa553895f30a2e6c6e072184f17226376c9a0a09 WHIRLPOOL 23bfbad47426542cfa7a6365a30bdd17ff80a9c3fa25d3a96d8093723a9720a3d2a71115c7d6115e7711977a96229d805dc8ea93ea49aa1c1684c77aaa1ccb1e
27 -DIST ffmpeg-3.2.1.tar.bz2 9613356 SHA256 72abc55bea5ff5397ac82320fa5c4843a05f527d0d7912d66784c92fdfbd12fb SHA512 bdadad5a3879d9492c152541db39d96707ca2989d4663ef6b09a19169c67813da329ec99b274519ef119eaaa01a0dd4aee4a5841469068d7c73b27f8dafcd377 WHIRLPOOL d85fd6a10b9e721cba60e5cf88c98148daa99499cd51caeb2796dd9a86a4117cc3c6df9ceef0bd980cad100d33113292323f211861cfc4e8236b5cc0a34d6d55
28 DIST ffmpeg-3.2.2.tar.bz2 9611373 SHA256 0b129a56d1b8d06101b1fcbfaa9f4f5eee3182d1ad6e44f511a84c12113a366b SHA512 7cb61684081bbe905ef324f60d259fd543e8be1ed2593167beb9324bec8bbc012cccff40a73e8be0ccc6bb0a20acd98a3dbac0d1d39403016cb381c1410b45db WHIRLPOOL fe43df569f88b79d5bfaab1d16929d3f3eaf7deecd3ca42a922d67cd971d8ac0a17b2dfc6db75b706a93da7e877887dcc75a38609e62e2ea4781b9363292a872
29
30 diff --git a/media-video/ffmpeg/ffmpeg-2.8.8.ebuild b/media-video/ffmpeg/ffmpeg-2.8.8.ebuild
31 deleted file mode 100644
32 index 882a440..00000000
33 --- a/media-video/ffmpeg/ffmpeg-2.8.8.ebuild
34 +++ /dev/null
35 @@ -1,458 +0,0 @@
36 -# Copyright 1999-2016 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -# $Id$
39 -
40 -EAPI="5"
41 -
42 -# Subslot: libavutil major.libavcodec major.libavformat major
43 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
44 -# Most consumers will use those three libraries, if a "less used" library
45 -# changes its soname, consumers will have to be rebuilt the old way
46 -# (preserve-libs).
47 -# If, for example, a package does not link to libavformat and only libavformat
48 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
49 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
50 -# doing so since such a case is unlikely.
51 -FFMPEG_SUBSLOT=54.56.56
52 -
53 -SCM=""
54 -if [ "${PV#9999}" != "${PV}" ] ; then
55 - SCM="git-2"
56 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
57 -fi
58 -
59 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
60 -
61 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
62 -HOMEPAGE="http://ffmpeg.org/"
63 -if [ "${PV#9999}" != "${PV}" ] ; then
64 - SRC_URI=""
65 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
66 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
67 -else # Release
68 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
69 -fi
70 -FFMPEG_REVISION="${PV#*_p}"
71 -
72 -SLOT="0/${FFMPEG_SUBSLOT}"
73 -LICENSE="
74 - !gpl? ( LGPL-2.1 )
75 - gpl? ( GPL-2 )
76 - amr? (
77 - gpl? ( GPL-3 )
78 - !gpl? ( LGPL-3 )
79 - )
80 - encode? (
81 - aac? (
82 - gpl? ( GPL-3 )
83 - !gpl? ( LGPL-3 )
84 - )
85 - amrenc? (
86 - gpl? ( GPL-3 )
87 - !gpl? ( LGPL-3 )
88 - )
89 - )
90 - samba? ( GPL-3 )
91 -"
92 -if [ "${PV#9999}" = "${PV}" ] ; then
93 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
94 -fi
95 -
96 -# Options to use as use_enable in the foo[:bar] form.
97 -# This will feed configure with $(use_enable foo bar)
98 -# or $(use_enable foo foo) if no :bar is set.
99 -# foo is added to IUSE.
100 -FFMPEG_FLAG_MAP=(
101 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
102 - +hardcoded-tables +iconv lzma +network openssl +postproc
103 - samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb
104 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
105 - # libavdevice options
106 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
107 - opengl
108 - # indevs
109 - libv4l:libv4l2 pulseaudio:libpulse
110 - # decoders
111 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
112 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
113 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
114 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
115 - zvbi:libzvbi
116 - # libavfilter options
117 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
118 - libass truetype:libfreetype
119 - # libswresample options
120 - libsoxr
121 - # Threads; we only support pthread for now but ffmpeg supports more
122 - +threads:pthreads
123 -)
124 -
125 -# Same as above but for encoders, i.e. they do something only with USE=encode.
126 -FFMPEG_ENCODER_FLAG_MAP=(
127 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
128 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
129 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
130 - xvid:libxvid
131 -)
132 -
133 -IUSE="
134 - alsa +encode examples jack libressl oss pic static-libs test v4l
135 - ${FFMPEG_FLAG_MAP[@]%:*}
136 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
137 -"
138 -
139 -# Strings for CPU features in the useflag[:configure_option] form
140 -# if :configure_option isn't set, it will use 'useflag' as configure option
141 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
142 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
143 -PPC_CPU_FEATURES=( altivec )
144 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
145 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
146 -X86_CPU_REQUIRED_USE="
147 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
148 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
149 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
150 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
151 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
152 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
153 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
154 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
155 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
156 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
157 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
158 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
159 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
160 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
161 -"
162 -
163 -IUSE="${IUSE}
164 - ${ARM_CPU_FEATURES[@]%:*}
165 - ${MIPS_CPU_FEATURES[@]%:*}
166 - ${PPC_CPU_FEATURES[@]%:*}
167 - ${X86_CPU_FEATURES[@]%:*}
168 -"
169 -
170 -CPU_REQUIRED_USE="
171 - ${X86_CPU_REQUIRED_USE}
172 -"
173 -
174 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
175 -# $(tc-arch).
176 -CPU_FEATURES_MAP="
177 - arm:ARM
178 - arm64:ARM
179 - mips:MIPS
180 - ppc:PPC
181 - ppc64:PPC
182 - x86:X86
183 - amd64:X86
184 -"
185 -
186 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
187 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
188 -
189 -RDEPEND="
190 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
191 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
192 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
193 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
194 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
195 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
196 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
197 - encode? (
198 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
199 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
200 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
201 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
202 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
203 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
204 - theora? (
205 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
206 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
207 - )
208 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
209 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
210 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
211 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
212 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
213 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
214 - )
215 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
216 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
217 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
218 - frei0r? ( media-plugins/frei0r-plugins )
219 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
220 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
221 - gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] )
222 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
223 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
224 - iec61883? (
225 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
226 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
227 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
228 - )
229 - ieee1394? (
230 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
231 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
232 - )
233 - jack? ( virtual/jack[${MULTILIB_USEDEP}] )
234 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
235 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
236 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
237 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
238 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
239 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
240 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
241 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
242 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
243 - openssl? (
244 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
245 - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
246 - )
247 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
248 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
249 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
250 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
251 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
252 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
253 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
254 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
255 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
256 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
257 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
258 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
259 - vorbis? (
260 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
261 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
262 - )
263 - vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
264 - X? (
265 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
266 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
267 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
268 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
269 - )
270 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
271 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
272 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
273 - !media-video/qt-faststart
274 - postproc? ( !media-libs/libpostproc )
275 -"
276 -
277 -DEPEND="${RDEPEND}
278 - >=sys-devel/make-3.81
279 - doc? ( app-text/texi2html )
280 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
281 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
282 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
283 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
284 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
285 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
286 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
287 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
288 - test? ( net-misc/wget sys-devel/bc )
289 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
290 - v4l? ( sys-kernel/linux-headers )
291 -"
292 -
293 -RDEPEND="${RDEPEND}
294 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
295 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
296 -
297 -# Code requiring FFmpeg to be built under gpl license
298 -GPL_REQUIRED_USE="
299 - postproc? ( gpl )
300 - frei0r? ( gpl )
301 - cdio? ( gpl )
302 - samba? ( gpl )
303 - zvbi? ( gpl )
304 - encode? (
305 - x264? ( gpl )
306 - x265? ( gpl )
307 - xvid? ( gpl )
308 - X? ( !xcb? ( gpl ) )
309 - )
310 -"
311 -REQUIRED_USE="
312 - libv4l? ( v4l )
313 - fftools_cws2fws? ( zlib )
314 - test? ( encode )
315 - ${GPL_REQUIRED_USE}
316 - ${CPU_REQUIRED_USE}"
317 -RESTRICT="
318 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
319 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
320 -"
321 -
322 -S=${WORKDIR}/${P/_/-}
323 -
324 -MULTILIB_WRAPPED_HEADERS=(
325 - /usr/include/libavutil/avconfig.h
326 -)
327 -
328 -src_prepare() {
329 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
330 - export revision=git-N-${FFMPEG_REVISION}
331 - fi
332 - epatch_user
333 -}
334 -
335 -multilib_src_configure() {
336 - local myconf=( ${EXTRA_FFMPEG_CONF} )
337 -
338 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
339 - use openssl && use gpl && myconf+=( --enable-nonfree )
340 - use samba && myconf+=( --enable-version3 )
341 -
342 - # Encoders
343 - if use encode ; then
344 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
345 -
346 - # Licensing.
347 - if use aac || use amrenc ; then
348 - myconf+=( --enable-version3 )
349 - fi
350 - if use aacplus || use faac ; then
351 - myconf+=( --enable-nonfree )
352 - fi
353 - else
354 - myconf+=( --disable-encoders )
355 - fi
356 -
357 - # Indevs
358 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
359 - for i in alsa oss jack ; do
360 - use ${i} || myconf+=( --disable-indev=${i} )
361 - done
362 - use xcb || ffuse+=( X:x11grab )
363 -
364 - # Outdevs
365 - for i in alsa oss sdl ; do
366 - use ${i} || myconf+=( --disable-outdev=${i} )
367 - done
368 -
369 - # Decoders
370 - use amr && myconf+=( --enable-version3 )
371 - use fdk && use gpl && myconf+=( --enable-nonfree )
372 -
373 - for i in "${ffuse[@]#+}" ; do
374 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
375 - done
376 -
377 - # (temporarily) disable non-multilib deps
378 - if ! multilib_is_native_abi; then
379 - for i in frei0r ; do
380 - myconf+=( --disable-${i} )
381 - done
382 - fi
383 -
384 - # CPU features
385 - for i in ${CPU_FEATURES_MAP} ; do
386 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
387 - local var="${i#*:}_CPU_FEATURES[@]"
388 - for j in ${!var} ; do
389 - use ${j%:*} || myconf+=( --disable-${j#*:} )
390 - done
391 - fi
392 - done
393 -
394 - if use pic ; then
395 - myconf+=( --enable-pic )
396 - # disable asm code if PIC is required
397 - # as the provided asm decidedly is not PIC for x86.
398 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
399 - fi
400 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
401 -
402 - # Try to get cpu type based on CFLAGS.
403 - # Bug #172723
404 - # We need to do this so that features of that CPU will be better used
405 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
406 - # will just ignore it.
407 - for i in $(get-flag mcpu) $(get-flag march) ; do
408 - [[ ${i} = native ]] && i="host" # bug #273421
409 - myconf+=( --cpu=${i} )
410 - break
411 - done
412 -
413 - # LTO support, bug #566282
414 - is-flagq "-flto*" && myconf+=( "--enable-lto" )
415 -
416 - # Mandatory configuration
417 - myconf=(
418 - --enable-avfilter
419 - --enable-avresample
420 - --disable-stripping
421 - "${myconf[@]}"
422 - )
423 -
424 - # cross compile support
425 - if tc-is-cross-compiler ; then
426 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
427 - case ${CHOST} in
428 - *freebsd*)
429 - myconf+=( --target-os=freebsd )
430 - ;;
431 - *mingw32*)
432 - myconf+=( --target-os=mingw32 )
433 - ;;
434 - *linux*)
435 - myconf+=( --target-os=linux )
436 - ;;
437 - esac
438 - fi
439 -
440 - set -- "${S}/configure" \
441 - --prefix="${EPREFIX}/usr" \
442 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
443 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
444 - --mandir="${EPREFIX}/usr/share/man" \
445 - --enable-shared \
446 - --cc="$(tc-getCC)" \
447 - --cxx="$(tc-getCXX)" \
448 - --ar="$(tc-getAR)" \
449 - --optflags="${CFLAGS}" \
450 - $(use_enable static-libs static) \
451 - "${myconf[@]}"
452 - echo "${@}"
453 - "${@}" || die
454 -}
455 -
456 -multilib_src_compile() {
457 - emake V=1
458 -
459 - if multilib_is_native_abi; then
460 - for i in "${FFTOOLS[@]}" ; do
461 - if use fftools_${i} ; then
462 - emake V=1 tools/${i}
463 - fi
464 - done
465 - fi
466 -}
467 -
468 -multilib_src_install() {
469 - emake V=1 DESTDIR="${D}" install install-man
470 -
471 - if multilib_is_native_abi; then
472 - for i in "${FFTOOLS[@]}" ; do
473 - if use fftools_${i} ; then
474 - dobin tools/${i}
475 - fi
476 - done
477 - fi
478 -}
479 -
480 -multilib_src_install_all() {
481 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
482 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
483 - use doc && dohtml -r doc/*
484 - if use examples ; then
485 - dodoc -r doc/examples
486 - docompress -x /usr/share/doc/${PF}/examples
487 - fi
488 -}
489 -
490 -multilib_src_test() {
491 - LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \
492 - emake V=1 fate
493 -}
494
495 diff --git a/media-video/ffmpeg/ffmpeg-2.8.9.ebuild b/media-video/ffmpeg/ffmpeg-2.8.9.ebuild
496 deleted file mode 100644
497 index 882a440..00000000
498 --- a/media-video/ffmpeg/ffmpeg-2.8.9.ebuild
499 +++ /dev/null
500 @@ -1,458 +0,0 @@
501 -# Copyright 1999-2016 Gentoo Foundation
502 -# Distributed under the terms of the GNU General Public License v2
503 -# $Id$
504 -
505 -EAPI="5"
506 -
507 -# Subslot: libavutil major.libavcodec major.libavformat major
508 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
509 -# Most consumers will use those three libraries, if a "less used" library
510 -# changes its soname, consumers will have to be rebuilt the old way
511 -# (preserve-libs).
512 -# If, for example, a package does not link to libavformat and only libavformat
513 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
514 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
515 -# doing so since such a case is unlikely.
516 -FFMPEG_SUBSLOT=54.56.56
517 -
518 -SCM=""
519 -if [ "${PV#9999}" != "${PV}" ] ; then
520 - SCM="git-2"
521 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
522 -fi
523 -
524 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
525 -
526 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
527 -HOMEPAGE="http://ffmpeg.org/"
528 -if [ "${PV#9999}" != "${PV}" ] ; then
529 - SRC_URI=""
530 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
531 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
532 -else # Release
533 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
534 -fi
535 -FFMPEG_REVISION="${PV#*_p}"
536 -
537 -SLOT="0/${FFMPEG_SUBSLOT}"
538 -LICENSE="
539 - !gpl? ( LGPL-2.1 )
540 - gpl? ( GPL-2 )
541 - amr? (
542 - gpl? ( GPL-3 )
543 - !gpl? ( LGPL-3 )
544 - )
545 - encode? (
546 - aac? (
547 - gpl? ( GPL-3 )
548 - !gpl? ( LGPL-3 )
549 - )
550 - amrenc? (
551 - gpl? ( GPL-3 )
552 - !gpl? ( LGPL-3 )
553 - )
554 - )
555 - samba? ( GPL-3 )
556 -"
557 -if [ "${PV#9999}" = "${PV}" ] ; then
558 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
559 -fi
560 -
561 -# Options to use as use_enable in the foo[:bar] form.
562 -# This will feed configure with $(use_enable foo bar)
563 -# or $(use_enable foo foo) if no :bar is set.
564 -# foo is added to IUSE.
565 -FFMPEG_FLAG_MAP=(
566 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
567 - +hardcoded-tables +iconv lzma +network openssl +postproc
568 - samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb
569 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
570 - # libavdevice options
571 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
572 - opengl
573 - # indevs
574 - libv4l:libv4l2 pulseaudio:libpulse
575 - # decoders
576 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
577 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
578 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
579 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
580 - zvbi:libzvbi
581 - # libavfilter options
582 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
583 - libass truetype:libfreetype
584 - # libswresample options
585 - libsoxr
586 - # Threads; we only support pthread for now but ffmpeg supports more
587 - +threads:pthreads
588 -)
589 -
590 -# Same as above but for encoders, i.e. they do something only with USE=encode.
591 -FFMPEG_ENCODER_FLAG_MAP=(
592 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
593 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
594 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
595 - xvid:libxvid
596 -)
597 -
598 -IUSE="
599 - alsa +encode examples jack libressl oss pic static-libs test v4l
600 - ${FFMPEG_FLAG_MAP[@]%:*}
601 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
602 -"
603 -
604 -# Strings for CPU features in the useflag[:configure_option] form
605 -# if :configure_option isn't set, it will use 'useflag' as configure option
606 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
607 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
608 -PPC_CPU_FEATURES=( altivec )
609 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
610 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
611 -X86_CPU_REQUIRED_USE="
612 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
613 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
614 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
615 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
616 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
617 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
618 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
619 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
620 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
621 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
622 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
623 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
624 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
625 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
626 -"
627 -
628 -IUSE="${IUSE}
629 - ${ARM_CPU_FEATURES[@]%:*}
630 - ${MIPS_CPU_FEATURES[@]%:*}
631 - ${PPC_CPU_FEATURES[@]%:*}
632 - ${X86_CPU_FEATURES[@]%:*}
633 -"
634 -
635 -CPU_REQUIRED_USE="
636 - ${X86_CPU_REQUIRED_USE}
637 -"
638 -
639 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
640 -# $(tc-arch).
641 -CPU_FEATURES_MAP="
642 - arm:ARM
643 - arm64:ARM
644 - mips:MIPS
645 - ppc:PPC
646 - ppc64:PPC
647 - x86:X86
648 - amd64:X86
649 -"
650 -
651 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
652 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
653 -
654 -RDEPEND="
655 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
656 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
657 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
658 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
659 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
660 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
661 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
662 - encode? (
663 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
664 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
665 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
666 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
667 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
668 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
669 - theora? (
670 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
671 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
672 - )
673 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
674 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
675 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
676 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
677 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
678 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
679 - )
680 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
681 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
682 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
683 - frei0r? ( media-plugins/frei0r-plugins )
684 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
685 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
686 - gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] )
687 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
688 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
689 - iec61883? (
690 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
691 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
692 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
693 - )
694 - ieee1394? (
695 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
696 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
697 - )
698 - jack? ( virtual/jack[${MULTILIB_USEDEP}] )
699 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
700 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
701 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
702 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
703 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
704 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
705 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
706 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
707 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
708 - openssl? (
709 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
710 - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
711 - )
712 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
713 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
714 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
715 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
716 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
717 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
718 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
719 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
720 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
721 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
722 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
723 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
724 - vorbis? (
725 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
726 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
727 - )
728 - vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
729 - X? (
730 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
731 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
732 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
733 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
734 - )
735 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
736 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
737 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
738 - !media-video/qt-faststart
739 - postproc? ( !media-libs/libpostproc )
740 -"
741 -
742 -DEPEND="${RDEPEND}
743 - >=sys-devel/make-3.81
744 - doc? ( app-text/texi2html )
745 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
746 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
747 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
748 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
749 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
750 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
751 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
752 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
753 - test? ( net-misc/wget sys-devel/bc )
754 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
755 - v4l? ( sys-kernel/linux-headers )
756 -"
757 -
758 -RDEPEND="${RDEPEND}
759 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
760 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
761 -
762 -# Code requiring FFmpeg to be built under gpl license
763 -GPL_REQUIRED_USE="
764 - postproc? ( gpl )
765 - frei0r? ( gpl )
766 - cdio? ( gpl )
767 - samba? ( gpl )
768 - zvbi? ( gpl )
769 - encode? (
770 - x264? ( gpl )
771 - x265? ( gpl )
772 - xvid? ( gpl )
773 - X? ( !xcb? ( gpl ) )
774 - )
775 -"
776 -REQUIRED_USE="
777 - libv4l? ( v4l )
778 - fftools_cws2fws? ( zlib )
779 - test? ( encode )
780 - ${GPL_REQUIRED_USE}
781 - ${CPU_REQUIRED_USE}"
782 -RESTRICT="
783 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
784 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
785 -"
786 -
787 -S=${WORKDIR}/${P/_/-}
788 -
789 -MULTILIB_WRAPPED_HEADERS=(
790 - /usr/include/libavutil/avconfig.h
791 -)
792 -
793 -src_prepare() {
794 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
795 - export revision=git-N-${FFMPEG_REVISION}
796 - fi
797 - epatch_user
798 -}
799 -
800 -multilib_src_configure() {
801 - local myconf=( ${EXTRA_FFMPEG_CONF} )
802 -
803 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
804 - use openssl && use gpl && myconf+=( --enable-nonfree )
805 - use samba && myconf+=( --enable-version3 )
806 -
807 - # Encoders
808 - if use encode ; then
809 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
810 -
811 - # Licensing.
812 - if use aac || use amrenc ; then
813 - myconf+=( --enable-version3 )
814 - fi
815 - if use aacplus || use faac ; then
816 - myconf+=( --enable-nonfree )
817 - fi
818 - else
819 - myconf+=( --disable-encoders )
820 - fi
821 -
822 - # Indevs
823 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
824 - for i in alsa oss jack ; do
825 - use ${i} || myconf+=( --disable-indev=${i} )
826 - done
827 - use xcb || ffuse+=( X:x11grab )
828 -
829 - # Outdevs
830 - for i in alsa oss sdl ; do
831 - use ${i} || myconf+=( --disable-outdev=${i} )
832 - done
833 -
834 - # Decoders
835 - use amr && myconf+=( --enable-version3 )
836 - use fdk && use gpl && myconf+=( --enable-nonfree )
837 -
838 - for i in "${ffuse[@]#+}" ; do
839 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
840 - done
841 -
842 - # (temporarily) disable non-multilib deps
843 - if ! multilib_is_native_abi; then
844 - for i in frei0r ; do
845 - myconf+=( --disable-${i} )
846 - done
847 - fi
848 -
849 - # CPU features
850 - for i in ${CPU_FEATURES_MAP} ; do
851 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
852 - local var="${i#*:}_CPU_FEATURES[@]"
853 - for j in ${!var} ; do
854 - use ${j%:*} || myconf+=( --disable-${j#*:} )
855 - done
856 - fi
857 - done
858 -
859 - if use pic ; then
860 - myconf+=( --enable-pic )
861 - # disable asm code if PIC is required
862 - # as the provided asm decidedly is not PIC for x86.
863 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
864 - fi
865 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
866 -
867 - # Try to get cpu type based on CFLAGS.
868 - # Bug #172723
869 - # We need to do this so that features of that CPU will be better used
870 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
871 - # will just ignore it.
872 - for i in $(get-flag mcpu) $(get-flag march) ; do
873 - [[ ${i} = native ]] && i="host" # bug #273421
874 - myconf+=( --cpu=${i} )
875 - break
876 - done
877 -
878 - # LTO support, bug #566282
879 - is-flagq "-flto*" && myconf+=( "--enable-lto" )
880 -
881 - # Mandatory configuration
882 - myconf=(
883 - --enable-avfilter
884 - --enable-avresample
885 - --disable-stripping
886 - "${myconf[@]}"
887 - )
888 -
889 - # cross compile support
890 - if tc-is-cross-compiler ; then
891 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
892 - case ${CHOST} in
893 - *freebsd*)
894 - myconf+=( --target-os=freebsd )
895 - ;;
896 - *mingw32*)
897 - myconf+=( --target-os=mingw32 )
898 - ;;
899 - *linux*)
900 - myconf+=( --target-os=linux )
901 - ;;
902 - esac
903 - fi
904 -
905 - set -- "${S}/configure" \
906 - --prefix="${EPREFIX}/usr" \
907 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
908 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
909 - --mandir="${EPREFIX}/usr/share/man" \
910 - --enable-shared \
911 - --cc="$(tc-getCC)" \
912 - --cxx="$(tc-getCXX)" \
913 - --ar="$(tc-getAR)" \
914 - --optflags="${CFLAGS}" \
915 - $(use_enable static-libs static) \
916 - "${myconf[@]}"
917 - echo "${@}"
918 - "${@}" || die
919 -}
920 -
921 -multilib_src_compile() {
922 - emake V=1
923 -
924 - if multilib_is_native_abi; then
925 - for i in "${FFTOOLS[@]}" ; do
926 - if use fftools_${i} ; then
927 - emake V=1 tools/${i}
928 - fi
929 - done
930 - fi
931 -}
932 -
933 -multilib_src_install() {
934 - emake V=1 DESTDIR="${D}" install install-man
935 -
936 - if multilib_is_native_abi; then
937 - for i in "${FFTOOLS[@]}" ; do
938 - if use fftools_${i} ; then
939 - dobin tools/${i}
940 - fi
941 - done
942 - fi
943 -}
944 -
945 -multilib_src_install_all() {
946 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
947 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
948 - use doc && dohtml -r doc/*
949 - if use examples ; then
950 - dodoc -r doc/examples
951 - docompress -x /usr/share/doc/${PF}/examples
952 - fi
953 -}
954 -
955 -multilib_src_test() {
956 - LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \
957 - emake V=1 fate
958 -}
959
960 diff --git a/media-video/ffmpeg/ffmpeg-3.2.1.ebuild b/media-video/ffmpeg/ffmpeg-3.2.1.ebuild
961 deleted file mode 100644
962 index 38429b2..00000000
963 --- a/media-video/ffmpeg/ffmpeg-3.2.1.ebuild
964 +++ /dev/null
965 @@ -1,457 +0,0 @@
966 -# Copyright 1999-2016 Gentoo Foundation
967 -# Distributed under the terms of the GNU General Public License v2
968 -# $Id$
969 -
970 -EAPI=6
971 -
972 -# Subslot: libavutil major.libavcodec major.libavformat major
973 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
974 -# Most consumers will use those three libraries, if a "less used" library
975 -# changes its soname, consumers will have to be rebuilt the old way
976 -# (preserve-libs).
977 -# If, for example, a package does not link to libavformat and only libavformat
978 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
979 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
980 -# doing so since such a case is unlikely.
981 -FFMPEG_SUBSLOT=55.57.57
982 -
983 -SCM=""
984 -if [ "${PV#9999}" != "${PV}" ] ; then
985 - SCM="git-r3"
986 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
987 -fi
988 -
989 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
990 -
991 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
992 -HOMEPAGE="http://ffmpeg.org/"
993 -if [ "${PV#9999}" != "${PV}" ] ; then
994 - SRC_URI=""
995 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
996 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
997 -else # Release
998 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
999 -fi
1000 -FFMPEG_REVISION="${PV#*_p}"
1001 -
1002 -SLOT="0/${FFMPEG_SUBSLOT}"
1003 -LICENSE="
1004 - !gpl? ( LGPL-2.1 )
1005 - gpl? ( GPL-2 )
1006 - amr? (
1007 - gpl? ( GPL-3 )
1008 - !gpl? ( LGPL-3 )
1009 - )
1010 - gmp? (
1011 - gpl? ( GPL-3 )
1012 - !gpl? ( LGPL-3 )
1013 - )
1014 - encode? (
1015 - amrenc? (
1016 - gpl? ( GPL-3 )
1017 - !gpl? ( LGPL-3 )
1018 - )
1019 - )
1020 - samba? ( GPL-3 )
1021 -"
1022 -if [ "${PV#9999}" = "${PV}" ] ; then
1023 - KEYWORDS="~amd64 ~mips ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
1024 -fi
1025 -
1026 -# Options to use as use_enable in the foo[:bar] form.
1027 -# This will feed configure with $(use_enable foo bar)
1028 -# or $(use_enable foo foo) if no :bar is set.
1029 -# foo is added to IUSE.
1030 -FFMPEG_FLAG_MAP=(
1031 - +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp
1032 - +gpl +hardcoded-tables +iconv lzma +network openssl +postproc
1033 - samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau X:xlib xcb:libxcb
1034 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
1035 - # libavdevice options
1036 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
1037 - opengl
1038 - # indevs
1039 - libv4l:libv4l2 pulseaudio:libpulse
1040 - # decoders
1041 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
1042 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
1043 - mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh
1044 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
1045 - zvbi:libzvbi
1046 - # libavfilter options
1047 - bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r
1048 - fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype
1049 - rubberband:librubberband zimg:libzimg
1050 - # libswresample options
1051 - libsoxr
1052 - # Threads; we only support pthread for now but ffmpeg supports more
1053 - +threads:pthreads
1054 -)
1055 -
1056 -# Same as above but for encoders, i.e. they do something only with USE=encode.
1057 -FFMPEG_ENCODER_FLAG_MAP=(
1058 - amrenc:libvo-amrwbenc mp3:libmp3lame
1059 - kvazaar:libkvazaar nvenc:nvenc
1060 - openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame
1061 - wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid
1062 -)
1063 -
1064 -IUSE="
1065 - alsa doc +encode jack oss pic static-libs test v4l
1066 - ${FFMPEG_FLAG_MAP[@]%:*}
1067 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
1068 -"
1069 -
1070 -# Strings for CPU features in the useflag[:configure_option] form
1071 -# if :configure_option isn't set, it will use 'useflag' as configure option
1072 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
1073 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
1074 -PPC_CPU_FEATURES=( altivec )
1075 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext aes:aesni avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
1076 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
1077 -X86_CPU_REQUIRED_USE="
1078 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
1079 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
1080 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
1081 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
1082 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
1083 - cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 )
1084 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
1085 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
1086 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
1087 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
1088 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
1089 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
1090 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
1091 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
1092 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
1093 -"
1094 -
1095 -IUSE="${IUSE}
1096 - ${ARM_CPU_FEATURES[@]%:*}
1097 - ${MIPS_CPU_FEATURES[@]%:*}
1098 - ${PPC_CPU_FEATURES[@]%:*}
1099 - ${X86_CPU_FEATURES[@]%:*}
1100 -"
1101 -
1102 -CPU_REQUIRED_USE="
1103 - ${X86_CPU_REQUIRED_USE}
1104 -"
1105 -
1106 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
1107 -# $(tc-arch).
1108 -CPU_FEATURES_MAP="
1109 - arm:ARM
1110 - arm64:ARM
1111 - mips:MIPS
1112 - ppc:PPC
1113 - ppc64:PPC
1114 - x86:X86
1115 - amd64:X86
1116 -"
1117 -
1118 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
1119 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
1120 -
1121 -RDEPEND="
1122 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
1123 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
1124 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
1125 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
1126 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
1127 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
1128 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
1129 - chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] )
1130 - ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] )
1131 - encode? (
1132 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
1133 - kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] )
1134 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
1135 - nvenc? ( media-video/nvidia_video_sdk )
1136 - openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] )
1137 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
1138 - theora? (
1139 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
1140 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
1141 - )
1142 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
1143 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
1144 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
1145 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
1146 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
1147 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
1148 - )
1149 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
1150 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
1151 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
1152 - frei0r? ( media-plugins/frei0r-plugins )
1153 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
1154 - gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] )
1155 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
1156 - gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] )
1157 - gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] )
1158 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
1159 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
1160 - iec61883? (
1161 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
1162 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
1163 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
1164 - )
1165 - ieee1394? (
1166 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
1167 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
1168 - )
1169 - jack? ( virtual/jack[${MULTILIB_USEDEP}] )
1170 - jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] )
1171 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
1172 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
1173 - libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] )
1174 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
1175 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
1176 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
1177 - mmal? ( media-libs/raspberrypi-userland )
1178 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
1179 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
1180 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
1181 - openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
1182 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
1183 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
1184 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
1185 - rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] )
1186 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
1187 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
1188 - sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] )
1189 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
1190 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
1191 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
1192 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
1193 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
1194 - vorbis? (
1195 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
1196 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
1197 - )
1198 - vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
1199 - X? (
1200 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
1201 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
1202 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
1203 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
1204 - )
1205 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
1206 - zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] )
1207 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
1208 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
1209 - !media-video/qt-faststart
1210 - postproc? ( !media-libs/libpostproc )
1211 -"
1212 -
1213 -DEPEND="${RDEPEND}
1214 - >=sys-devel/make-3.81
1215 - doc? ( sys-apps/texinfo )
1216 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
1217 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
1218 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
1219 - test? ( net-misc/wget sys-devel/bc )
1220 - v4l? ( sys-kernel/linux-headers )
1221 -"
1222 -
1223 -RDEPEND="${RDEPEND}
1224 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
1225 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
1226 -
1227 -# Code requiring FFmpeg to be built under gpl license
1228 -GPL_REQUIRED_USE="
1229 - postproc? ( gpl )
1230 - frei0r? ( gpl )
1231 - cdio? ( gpl )
1232 - samba? ( gpl )
1233 - encode? (
1234 - x264? ( gpl )
1235 - x265? ( gpl )
1236 - xvid? ( gpl )
1237 - X? ( !xcb? ( gpl ) )
1238 - )
1239 -"
1240 -REQUIRED_USE="
1241 - libv4l? ( v4l )
1242 - fftools_cws2fws? ( zlib )
1243 - test? ( encode )
1244 - ${GPL_REQUIRED_USE}
1245 - ${CPU_REQUIRED_USE}"
1246 -RESTRICT="
1247 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
1248 -"
1249 -
1250 -S=${WORKDIR}/${P/_/-}
1251 -
1252 -MULTILIB_WRAPPED_HEADERS=(
1253 - /usr/include/libavutil/avconfig.h
1254 -)
1255 -
1256 -src_prepare() {
1257 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
1258 - export revision=git-N-${FFMPEG_REVISION}
1259 - fi
1260 - default
1261 -}
1262 -
1263 -multilib_src_configure() {
1264 - local myconf=( ${EXTRA_FFMPEG_CONF} )
1265 -
1266 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
1267 - use openssl && use gpl && myconf+=( --enable-nonfree )
1268 - use samba && myconf+=( --enable-version3 )
1269 -
1270 - # Encoders
1271 - if use encode ; then
1272 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
1273 -
1274 - # Licensing.
1275 - if use amrenc ; then
1276 - myconf+=( --enable-version3 )
1277 - fi
1278 - else
1279 - myconf+=( --disable-encoders )
1280 - fi
1281 -
1282 - # Indevs
1283 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
1284 - for i in alsa oss jack ; do
1285 - use ${i} || myconf+=( --disable-indev=${i} )
1286 - done
1287 - use xcb || ffuse+=( X:x11grab )
1288 -
1289 - # Outdevs
1290 - for i in alsa oss sdl ; do
1291 - use ${i} || myconf+=( --disable-outdev=${i} )
1292 - done
1293 -
1294 - # Decoders
1295 - use amr && myconf+=( --enable-version3 )
1296 - use gmp && myconf+=( --enable-version3 )
1297 - use fdk && use gpl && myconf+=( --enable-nonfree )
1298 -
1299 - for i in "${ffuse[@]#+}" ; do
1300 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
1301 - done
1302 -
1303 - # (temporarily) disable non-multilib deps
1304 - if ! multilib_is_native_abi; then
1305 - for i in frei0r ; do
1306 - myconf+=( --disable-${i} )
1307 - done
1308 - fi
1309 -
1310 - # CPU features
1311 - for i in ${CPU_FEATURES_MAP} ; do
1312 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
1313 - local var="${i#*:}_CPU_FEATURES[@]"
1314 - for j in ${!var} ; do
1315 - use ${j%:*} || myconf+=( --disable-${j#*:} )
1316 - done
1317 - fi
1318 - done
1319 -
1320 - if use pic ; then
1321 - myconf+=( --enable-pic )
1322 - # disable asm code if PIC is required
1323 - # as the provided asm decidedly is not PIC for x86.
1324 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
1325 - fi
1326 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
1327 -
1328 - # Try to get cpu type based on CFLAGS.
1329 - # Bug #172723
1330 - # We need to do this so that features of that CPU will be better used
1331 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
1332 - # will just ignore it.
1333 - for i in $(get-flag mcpu) $(get-flag march) ; do
1334 - [[ ${i} = native ]] && i="host" # bug #273421
1335 - myconf+=( --cpu=${i} )
1336 - break
1337 - done
1338 -
1339 - # LTO support, bug #566282
1340 - is-flagq "-flto*" && myconf+=( "--enable-lto" )
1341 -
1342 - # Mandatory configuration
1343 - myconf=(
1344 - --enable-avfilter
1345 - --enable-avresample
1346 - --disable-stripping
1347 - "${myconf[@]}"
1348 - )
1349 -
1350 - # cross compile support
1351 - if tc-is-cross-compiler ; then
1352 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
1353 - case ${CHOST} in
1354 - *freebsd*)
1355 - myconf+=( --target-os=freebsd )
1356 - ;;
1357 - *mingw32*)
1358 - myconf+=( --target-os=mingw32 )
1359 - ;;
1360 - *linux*)
1361 - myconf+=( --target-os=linux )
1362 - ;;
1363 - esac
1364 - fi
1365 -
1366 - # doc
1367 - myconf+=(
1368 - $(multilib_native_use_enable doc)
1369 - $(multilib_native_use_enable doc htmlpages)
1370 - $(multilib_native_enable manpages)
1371 - )
1372 -
1373 - set -- "${S}/configure" \
1374 - --prefix="${EPREFIX}/usr" \
1375 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
1376 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
1377 - --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
1378 - --mandir="${EPREFIX}/usr/share/man" \
1379 - --enable-shared \
1380 - --cc="$(tc-getCC)" \
1381 - --cxx="$(tc-getCXX)" \
1382 - --ar="$(tc-getAR)" \
1383 - --optflags="${CFLAGS}" \
1384 - $(use_enable static-libs static) \
1385 - "${myconf[@]}"
1386 - echo "${@}"
1387 - "${@}" || die
1388 -}
1389 -
1390 -multilib_src_compile() {
1391 - emake V=1
1392 -
1393 - if multilib_is_native_abi; then
1394 - for i in "${FFTOOLS[@]}" ; do
1395 - if use fftools_${i} ; then
1396 - emake V=1 tools/${i}
1397 - fi
1398 - done
1399 - fi
1400 -}
1401 -
1402 -multilib_src_install() {
1403 - emake V=1 DESTDIR="${D}" install install-doc
1404 -
1405 - if multilib_is_native_abi; then
1406 - for i in "${FFTOOLS[@]}" ; do
1407 - if use fftools_${i} ; then
1408 - dobin tools/${i}
1409 - fi
1410 - done
1411 - fi
1412 -}
1413 -
1414 -multilib_src_install_all() {
1415 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
1416 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
1417 -}
1418 -
1419 -multilib_src_test() {
1420 - LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \
1421 - emake V=1 fate
1422 -}