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: Fri, 30 Oct 2015 12:48:34
Message-Id: 1446209294.3e5435b2827aa404a0a11c4dc1cfbd8ecf491a6d.aballier@gentoo
1 commit: 3e5435b2827aa404a0a11c4dc1cfbd8ecf491a6d
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 12:48:14 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 12:48:14 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e5435b2
7
8 media-video/ffmpeg: remove old
9
10 Package-Manager: portage-2.2.23
11
12 media-video/ffmpeg/Manifest | 1 -
13 media-video/ffmpeg/ffmpeg-2.8-r1.ebuild | 455 --------------------------------
14 media-video/ffmpeg/ffmpeg-2.8.ebuild | 452 -------------------------------
15 3 files changed, 908 deletions(-)
16
17 diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
18 index 1b9dec9..8e0bc3c 100644
19 --- a/media-video/ffmpeg/Manifest
20 +++ b/media-video/ffmpeg/Manifest
21 @@ -2,4 +2,3 @@ DIST ffmpeg-2.6.3.tar.bz2 7803314 SHA256 59eb98c1b5896ac29abc0385f7c875d1b4942d6
22 DIST ffmpeg-2.6.4.tar.bz2 7811925 SHA256 184f49e6b359426c398ad6c67d89abd362558373a43d3d92f86e554571655a5d SHA512 76c8bb3b23f2d2bac73b1561ef31bb3d1da49b2e182d84a13bf0bf49ea84cd0d64566c9dfafc4ac9d660aa4cecc0f08272b9ee284d1d09776e4599b87920c308 WHIRLPOOL 2d68715fb284979d703905919289c897c5cb002c3d466aca6c9759ca9f93443b749a24747cf218d005d728680ad137990880ec99210b6fb49038587966dd79f4
23 DIST ffmpeg-2.7.2.tar.bz2 8157217 SHA256 7ceb7550ad628c526fa6c9ff23fdfb687a62f54d90c4a730998d8c2b417b9ef2 SHA512 cce58c63ae14dcbd3bdc4758af8427e18ac589f8bd4f2701e54b5e0e61669d5aab212e5829feb67a0fd33bc52b2d64adff93729c0696c44a0f6064a0752433dd WHIRLPOOL dd286393427b89be266ad2b122138dab578843d16bdf9b989b9546734f489c8c5c3d1ab0443ff5039b440a8430802ffe24f0fc38553688ec80984a1cce2ba2a3
24 DIST ffmpeg-2.8.1.tar.bz2 8564488 SHA256 e2ed5ab28dee1af94336739173eb0019afc21a54e38a96f4e3208e94a07866e2 SHA512 5c493f1eb84dd916f12a709a77ca0317a03ce88caaa1ee5e06b4e03c60ef4520ba58c8972841de25dcadb0da42e88592e6a87c3aca18dba62e246256c33fcf91 WHIRLPOOL f0f26375960dff80055fe257b63f11a1cc598bef9450d0da4a619bfc61ba6df185ea0dcf9c566810c7917159bb193d30a1009051c5b32ea1d746b289c782b8aa
25 -DIST ffmpeg-2.8.tar.bz2 8563832 SHA256 9565236404d3515aab754283c687c0a001019003148bf7f708e643608c0690b8 SHA512 d642317954aeb66cc1ca19d3605561cb8b95bbb308fc1064e693a71842cea2ac94f82144e52cdb389ca00e7e55cbd0bae252df858f50a085f3b1189f36418911 WHIRLPOOL 98a9b3f0bc8aefac50fd812dcd4da4c846d086d3e07ab522582c859d710c6dce6b382a2f8e8da6ddd3885685c935486e5f5b1b0f68f4a8987c4424cf086824e1
26
27 diff --git a/media-video/ffmpeg/ffmpeg-2.8-r1.ebuild b/media-video/ffmpeg/ffmpeg-2.8-r1.ebuild
28 deleted file mode 100644
29 index 6f3904f..0000000
30 --- a/media-video/ffmpeg/ffmpeg-2.8-r1.ebuild
31 +++ /dev/null
32 @@ -1,455 +0,0 @@
33 -# Copyright 1999-2015 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -# $Id$
36 -
37 -EAPI="5"
38 -
39 -# Subslot: libavutil major.libavcodec major.libavformat major
40 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
41 -# Most consumers will use those three libraries, if a "less used" library
42 -# changes its soname, consumers will have to be rebuilt the old way
43 -# (preserve-libs).
44 -# If, for example, a package does not link to libavformat and only libavformat
45 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
46 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
47 -# doing so since such a case is unlikely.
48 -FFMPEG_SUBSLOT=54.56.56
49 -
50 -SCM=""
51 -if [ "${PV#9999}" != "${PV}" ] ; then
52 - SCM="git-2"
53 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
54 -fi
55 -
56 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
57 -
58 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
59 -HOMEPAGE="http://ffmpeg.org/"
60 -if [ "${PV#9999}" != "${PV}" ] ; then
61 - SRC_URI=""
62 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
63 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
64 -else # Release
65 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
66 -fi
67 -FFMPEG_REVISION="${PV#*_p}"
68 -
69 -SLOT="0/${FFMPEG_SUBSLOT}"
70 -LICENSE="
71 - !gpl? ( LGPL-2.1 )
72 - gpl? ( GPL-2 )
73 - amr? (
74 - gpl? ( GPL-3 )
75 - !gpl? ( LGPL-3 )
76 - )
77 - encode? (
78 - aac? (
79 - gpl? ( GPL-3 )
80 - !gpl? ( LGPL-3 )
81 - )
82 - amrenc? (
83 - gpl? ( GPL-3 )
84 - !gpl? ( LGPL-3 )
85 - )
86 - )
87 - samba? ( GPL-3 )
88 -"
89 -if [ "${PV#9999}" = "${PV}" ] ; then
90 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
91 -fi
92 -
93 -# Options to use as use_enable in the foo[:bar] form.
94 -# This will feed configure with $(use_enable foo bar)
95 -# or $(use_enable foo foo) if no :bar is set.
96 -# foo is added to IUSE.
97 -FFMPEG_FLAG_MAP=(
98 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
99 - +hardcoded-tables +iconv lzma +network openssl +postproc
100 - samba:libsmbclient sdl:ffplay vaapi vdpau X:xlib xcb:libxcb
101 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
102 - # libavdevice options
103 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
104 - opengl
105 - # indevs
106 - libv4l:libv4l2 pulseaudio:libpulse
107 - # decoders
108 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
109 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
110 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
111 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
112 - zvbi:libzvbi
113 - # libavfilter options
114 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
115 - libass truetype:libfreetype
116 - # libswresample options
117 - libsoxr
118 - # Threads; we only support pthread for now but ffmpeg supports more
119 - +threads:pthreads
120 -)
121 -
122 -# Same as above but for encoders, i.e. they do something only with USE=encode.
123 -FFMPEG_ENCODER_FLAG_MAP=(
124 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
125 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
126 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
127 - xvid:libxvid
128 -)
129 -
130 -IUSE="
131 - alsa +encode examples jack libressl oss pic static-libs test v4l
132 - ${FFMPEG_FLAG_MAP[@]%:*}
133 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
134 -"
135 -
136 -# Strings for CPU features in the useflag[:configure_option] form
137 -# if :configure_option isn't set, it will use 'useflag' as configure option
138 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
139 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
140 -PPC_CPU_FEATURES=( altivec )
141 -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 )
142 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
143 -X86_CPU_REQUIRED_USE="
144 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
145 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
146 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
147 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
148 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
149 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
150 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
151 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
152 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
153 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
154 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
155 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
156 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
157 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
158 -"
159 -
160 -IUSE="${IUSE}
161 - ${ARM_CPU_FEATURES[@]%:*}
162 - ${MIPS_CPU_FEATURES[@]%:*}
163 - ${PPC_CPU_FEATURES[@]%:*}
164 - ${X86_CPU_FEATURES[@]%:*}
165 -"
166 -
167 -CPU_REQUIRED_USE="
168 - ${X86_CPU_REQUIRED_USE}
169 -"
170 -
171 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
172 -# $(tc-arch).
173 -CPU_FEATURES_MAP="
174 - arm:ARM
175 - arm64:ARM
176 - mips:MIPS
177 - ppc:PPC
178 - ppc64:PPC
179 - x86:X86
180 - amd64:X86
181 -"
182 -
183 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
184 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
185 -
186 -RDEPEND="
187 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
188 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
189 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
190 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
191 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
192 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
193 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
194 - encode? (
195 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
196 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
197 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
198 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
199 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
200 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
201 - theora? (
202 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
203 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
204 - )
205 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
206 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
207 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
208 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
209 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
210 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
211 - )
212 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
213 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
214 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
215 - frei0r? ( media-plugins/frei0r-plugins )
216 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
217 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
218 - gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
219 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
220 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
221 - iec61883? (
222 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
223 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
224 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
225 - )
226 - ieee1394? (
227 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
228 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
229 - )
230 - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
231 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
232 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
233 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
234 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
235 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
236 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
237 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
238 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
239 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
240 - openssl? (
241 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
242 - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
243 - )
244 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
245 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
246 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
247 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
248 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
249 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
250 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
251 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
252 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
253 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
254 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
255 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
256 - vorbis? (
257 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
258 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
259 - )
260 - vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] )
261 - X? (
262 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
263 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
264 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
265 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
266 - )
267 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
268 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
269 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
270 - !media-video/qt-faststart
271 - postproc? ( !media-libs/libpostproc )
272 -"
273 -
274 -DEPEND="${RDEPEND}
275 - >=sys-devel/make-3.81
276 - doc? ( app-text/texi2html )
277 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
278 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
279 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
280 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
281 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
282 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
283 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
284 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
285 - test? ( net-misc/wget sys-devel/bc )
286 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
287 - v4l? ( sys-kernel/linux-headers )
288 -"
289 -
290 -RDEPEND="${RDEPEND}
291 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
292 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
293 -
294 -# Code requiring FFmpeg to be built under gpl license
295 -GPL_REQUIRED_USE="
296 - postproc? ( gpl )
297 - frei0r? ( gpl )
298 - cdio? ( gpl )
299 - samba? ( gpl )
300 - zvbi? ( gpl )
301 - encode? (
302 - x264? ( gpl )
303 - x265? ( gpl )
304 - xvid? ( gpl )
305 - X? ( !xcb? ( gpl ) )
306 - )
307 -"
308 -REQUIRED_USE="
309 - libv4l? ( v4l )
310 - fftools_cws2fws? ( zlib )
311 - test? ( encode )
312 - ${GPL_REQUIRED_USE}
313 - ${CPU_REQUIRED_USE}"
314 -RESTRICT="
315 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
316 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
317 -"
318 -
319 -S=${WORKDIR}/${P/_/-}
320 -
321 -MULTILIB_WRAPPED_HEADERS=(
322 - /usr/include/libavutil/avconfig.h
323 -)
324 -
325 -src_prepare() {
326 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
327 - export revision=git-N-${FFMPEG_REVISION}
328 - fi
329 - epatch_user
330 -}
331 -
332 -multilib_src_configure() {
333 - local myconf=( ${EXTRA_FFMPEG_CONF} )
334 -
335 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
336 - use openssl && use gpl && myconf+=( --enable-nonfree )
337 - use samba && myconf+=( --enable-version3 )
338 -
339 - # Encoders
340 - if use encode ; then
341 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
342 -
343 - # Licensing.
344 - if use aac || use amrenc ; then
345 - myconf+=( --enable-version3 )
346 - fi
347 - if use aacplus || use faac ; then
348 - myconf+=( --enable-nonfree )
349 - fi
350 - else
351 - myconf+=( --disable-encoders )
352 - fi
353 -
354 - # Indevs
355 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
356 - for i in alsa oss jack ; do
357 - use ${i} || myconf+=( --disable-indev=${i} )
358 - done
359 - use xcb || ffuse+=( X:x11grab )
360 -
361 - # Outdevs
362 - for i in alsa oss sdl ; do
363 - use ${i} || myconf+=( --disable-outdev=${i} )
364 - done
365 -
366 - # Decoders
367 - use amr && myconf+=( --enable-version3 )
368 - use fdk && use gpl && myconf+=( --enable-nonfree )
369 -
370 - for i in "${ffuse[@]#+}" ; do
371 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
372 - done
373 -
374 - # (temporarily) disable non-multilib deps
375 - if ! multilib_is_native_abi; then
376 - for i in frei0r ; do
377 - myconf+=( --disable-${i} )
378 - done
379 - fi
380 -
381 - # CPU features
382 - for i in ${CPU_FEATURES_MAP} ; do
383 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
384 - local var="${i#*:}_CPU_FEATURES[@]"
385 - for j in ${!var} ; do
386 - use ${j%:*} || myconf+=( --disable-${j#*:} )
387 - done
388 - fi
389 - done
390 -
391 - if use pic ; then
392 - myconf+=( --enable-pic )
393 - # disable asm code if PIC is required
394 - # as the provided asm decidedly is not PIC for x86.
395 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
396 - fi
397 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
398 -
399 - # Try to get cpu type based on CFLAGS.
400 - # Bug #172723
401 - # We need to do this so that features of that CPU will be better used
402 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
403 - # will just ignore it.
404 - for i in $(get-flag mcpu) $(get-flag march) $(get-flag mtune) ; do
405 - [[ ${i} = native ]] && i="host" # bug #273421
406 - myconf+=( --cpu=${i} )
407 - break
408 - done
409 -
410 - # Mandatory configuration
411 - myconf=(
412 - --enable-avfilter
413 - --enable-avresample
414 - --disable-stripping
415 - "${myconf[@]}"
416 - )
417 -
418 - # cross compile support
419 - if tc-is-cross-compiler ; then
420 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
421 - case ${CHOST} in
422 - *freebsd*)
423 - myconf+=( --target-os=freebsd )
424 - ;;
425 - mingw32*)
426 - myconf+=( --target-os=mingw32 )
427 - ;;
428 - *linux*)
429 - myconf+=( --target-os=linux )
430 - ;;
431 - esac
432 - fi
433 -
434 - set -- "${S}/configure" \
435 - --prefix="${EPREFIX}/usr" \
436 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
437 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
438 - --mandir="${EPREFIX}/usr/share/man" \
439 - --enable-shared \
440 - --cc="$(tc-getCC)" \
441 - --cxx="$(tc-getCXX)" \
442 - --ar="$(tc-getAR)" \
443 - --optflags=" " \
444 - $(use_enable static-libs static) \
445 - "${myconf[@]}"
446 - echo "${@}"
447 - "${@}" || die
448 -}
449 -
450 -multilib_src_compile() {
451 - emake V=1
452 -
453 - if multilib_is_native_abi; then
454 - for i in "${FFTOOLS[@]}" ; do
455 - if use fftools_${i} ; then
456 - emake V=1 tools/${i}
457 - fi
458 - done
459 - fi
460 -}
461 -
462 -multilib_src_install() {
463 - emake V=1 DESTDIR="${D}" install install-man
464 -
465 - if multilib_is_native_abi; then
466 - for i in "${FFTOOLS[@]}" ; do
467 - if use fftools_${i} ; then
468 - dobin tools/${i}
469 - fi
470 - done
471 - fi
472 -}
473 -
474 -multilib_src_install_all() {
475 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
476 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
477 - use doc && dohtml -r doc/*
478 - if use examples ; then
479 - dodoc -r doc/examples
480 - docompress -x /usr/share/doc/${PF}/examples
481 - fi
482 -}
483 -
484 -multilib_src_test() {
485 - 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" \
486 - emake V=1 fate
487 -}
488
489 diff --git a/media-video/ffmpeg/ffmpeg-2.8.ebuild b/media-video/ffmpeg/ffmpeg-2.8.ebuild
490 deleted file mode 100644
491 index 36041cf..0000000
492 --- a/media-video/ffmpeg/ffmpeg-2.8.ebuild
493 +++ /dev/null
494 @@ -1,452 +0,0 @@
495 -# Copyright 1999-2015 Gentoo Foundation
496 -# Distributed under the terms of the GNU General Public License v2
497 -# $Id$
498 -
499 -EAPI="5"
500 -
501 -# Subslot: libavutil major.libavcodec major.libavformat major
502 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
503 -# Most consumers will use those three libraries, if a "less used" library
504 -# changes its soname, consumers will have to be rebuilt the old way
505 -# (preserve-libs).
506 -# If, for example, a package does not link to libavformat and only libavformat
507 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
508 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
509 -# doing so since such a case is unlikely.
510 -FFMPEG_SUBSLOT=54.56.56
511 -
512 -SCM=""
513 -if [ "${PV#9999}" != "${PV}" ] ; then
514 - SCM="git-2"
515 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
516 -fi
517 -
518 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
519 -
520 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
521 -HOMEPAGE="http://ffmpeg.org/"
522 -if [ "${PV#9999}" != "${PV}" ] ; then
523 - SRC_URI=""
524 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
525 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
526 -else # Release
527 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
528 -fi
529 -FFMPEG_REVISION="${PV#*_p}"
530 -
531 -SLOT="0/${FFMPEG_SUBSLOT}"
532 -LICENSE="
533 - !gpl? ( LGPL-2.1 )
534 - gpl? ( GPL-2 )
535 - amr? (
536 - gpl? ( GPL-3 )
537 - !gpl? ( LGPL-3 )
538 - )
539 - encode? (
540 - aac? (
541 - gpl? ( GPL-3 )
542 - !gpl? ( LGPL-3 )
543 - )
544 - amrenc? (
545 - gpl? ( GPL-3 )
546 - !gpl? ( LGPL-3 )
547 - )
548 - )
549 - samba? ( GPL-3 )
550 -"
551 -if [ "${PV#9999}" = "${PV}" ] ; then
552 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
553 -fi
554 -
555 -# Options to use as use_enable in the foo[:bar] form.
556 -# This will feed configure with $(use_enable foo bar)
557 -# or $(use_enable foo foo) if no :bar is set.
558 -# foo is added to IUSE.
559 -FFMPEG_FLAG_MAP=(
560 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
561 - +hardcoded-tables +iconv lzma +network openssl +postproc
562 - samba:libsmbclient sdl:ffplay vaapi vdpau X:xlib xcb:libxcb
563 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
564 - # libavdevice options
565 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
566 - opengl
567 - # indevs
568 - libv4l:libv4l2 pulseaudio:libpulse
569 - # decoders
570 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
571 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
572 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
573 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
574 - zvbi:libzvbi
575 - # libavfilter options
576 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
577 - libass truetype:libfreetype
578 - # libswresample options
579 - libsoxr
580 - # Threads; we only support pthread for now but ffmpeg supports more
581 - +threads:pthreads
582 -)
583 -
584 -# Same as above but for encoders, i.e. they do something only with USE=encode.
585 -FFMPEG_ENCODER_FLAG_MAP=(
586 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
587 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
588 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
589 - xvid:libxvid
590 -)
591 -
592 -IUSE="
593 - alsa +encode examples jack oss pic static-libs test v4l
594 - ${FFMPEG_FLAG_MAP[@]%:*}
595 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
596 -"
597 -
598 -# Strings for CPU features in the useflag[:configure_option] form
599 -# if :configure_option isn't set, it will use 'useflag' as configure option
600 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
601 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
602 -PPC_CPU_FEATURES=( altivec )
603 -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 )
604 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
605 -X86_CPU_REQUIRED_USE="
606 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
607 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
608 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
609 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
610 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
611 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
612 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
613 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
614 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
615 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
616 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
617 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
618 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
619 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
620 -"
621 -
622 -IUSE="${IUSE}
623 - ${ARM_CPU_FEATURES[@]%:*}
624 - ${MIPS_CPU_FEATURES[@]%:*}
625 - ${PPC_CPU_FEATURES[@]%:*}
626 - ${X86_CPU_FEATURES[@]%:*}
627 -"
628 -
629 -CPU_REQUIRED_USE="
630 - ${X86_CPU_REQUIRED_USE}
631 -"
632 -
633 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
634 -# $(tc-arch).
635 -CPU_FEATURES_MAP="
636 - arm:ARM
637 - arm64:ARM
638 - mips:MIPS
639 - ppc:PPC
640 - ppc64:PPC
641 - x86:X86
642 - amd64:X86
643 -"
644 -
645 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
646 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
647 -
648 -RDEPEND="
649 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
650 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
651 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
652 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
653 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
654 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
655 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
656 - encode? (
657 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
658 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
659 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
660 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
661 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
662 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
663 - theora? (
664 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
665 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
666 - )
667 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
668 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
669 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
670 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
671 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
672 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
673 - )
674 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
675 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
676 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
677 - frei0r? ( media-plugins/frei0r-plugins )
678 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
679 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
680 - gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
681 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
682 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
683 - iec61883? (
684 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
685 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
686 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
687 - )
688 - ieee1394? (
689 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
690 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
691 - )
692 - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
693 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
694 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
695 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
696 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
697 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
698 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
699 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
700 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
701 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
702 - openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
703 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
704 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
705 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
706 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
707 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
708 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
709 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
710 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
711 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
712 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
713 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
714 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
715 - vorbis? (
716 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
717 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
718 - )
719 - vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] )
720 - X? (
721 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
722 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
723 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
724 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
725 - )
726 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
727 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
728 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
729 - !media-video/qt-faststart
730 - postproc? ( !media-libs/libpostproc )
731 -"
732 -
733 -DEPEND="${RDEPEND}
734 - >=sys-devel/make-3.81
735 - doc? ( app-text/texi2html )
736 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
737 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
738 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
739 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
740 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
741 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
742 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
743 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
744 - test? ( net-misc/wget sys-devel/bc )
745 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
746 - v4l? ( sys-kernel/linux-headers )
747 -"
748 -
749 -RDEPEND="${RDEPEND}
750 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
751 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
752 -
753 -# Code requiring FFmpeg to be built under gpl license
754 -GPL_REQUIRED_USE="
755 - postproc? ( gpl )
756 - frei0r? ( gpl )
757 - cdio? ( gpl )
758 - samba? ( gpl )
759 - zvbi? ( gpl )
760 - encode? (
761 - x264? ( gpl )
762 - x265? ( gpl )
763 - xvid? ( gpl )
764 - X? ( !xcb? ( gpl ) )
765 - )
766 -"
767 -REQUIRED_USE="
768 - libv4l? ( v4l )
769 - fftools_cws2fws? ( zlib )
770 - test? ( encode )
771 - ${GPL_REQUIRED_USE}
772 - ${CPU_REQUIRED_USE}"
773 -RESTRICT="
774 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
775 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
776 -"
777 -
778 -S=${WORKDIR}/${P/_/-}
779 -
780 -MULTILIB_WRAPPED_HEADERS=(
781 - /usr/include/libavutil/avconfig.h
782 -)
783 -
784 -src_prepare() {
785 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
786 - export revision=git-N-${FFMPEG_REVISION}
787 - fi
788 - epatch_user
789 -}
790 -
791 -multilib_src_configure() {
792 - local myconf=( ${EXTRA_FFMPEG_CONF} )
793 -
794 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
795 - use openssl && use gpl && myconf+=( --enable-nonfree )
796 - use samba && myconf+=( --enable-version3 )
797 -
798 - # Encoders
799 - if use encode ; then
800 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
801 -
802 - # Licensing.
803 - if use aac || use amrenc ; then
804 - myconf+=( --enable-version3 )
805 - fi
806 - if use aacplus || use faac ; then
807 - myconf+=( --enable-nonfree )
808 - fi
809 - else
810 - myconf+=( --disable-encoders )
811 - fi
812 -
813 - # Indevs
814 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
815 - for i in alsa oss jack ; do
816 - use ${i} || myconf+=( --disable-indev=${i} )
817 - done
818 - use xcb || ffuse+=( X:x11grab )
819 -
820 - # Outdevs
821 - for i in alsa oss sdl ; do
822 - use ${i} || myconf+=( --disable-outdev=${i} )
823 - done
824 -
825 - # Decoders
826 - use amr && myconf+=( --enable-version3 )
827 - use fdk && use gpl && myconf+=( --enable-nonfree )
828 -
829 - for i in "${ffuse[@]#+}" ; do
830 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
831 - done
832 -
833 - # (temporarily) disable non-multilib deps
834 - if ! multilib_is_native_abi; then
835 - for i in frei0r ; do
836 - myconf+=( --disable-${i} )
837 - done
838 - fi
839 -
840 - # CPU features
841 - for i in ${CPU_FEATURES_MAP} ; do
842 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
843 - local var="${i#*:}_CPU_FEATURES[@]"
844 - for j in ${!var} ; do
845 - use ${j%:*} || myconf+=( --disable-${j#*:} )
846 - done
847 - fi
848 - done
849 -
850 - if use pic ; then
851 - myconf+=( --enable-pic )
852 - # disable asm code if PIC is required
853 - # as the provided asm decidedly is not PIC for x86.
854 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
855 - fi
856 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
857 -
858 - # Try to get cpu type based on CFLAGS.
859 - # Bug #172723
860 - # We need to do this so that features of that CPU will be better used
861 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
862 - # will just ignore it.
863 - for i in $(get-flag mcpu) $(get-flag march) $(get-flag mtune) ; do
864 - [[ ${i} = native ]] && i="host" # bug #273421
865 - myconf+=( --cpu=${i} )
866 - break
867 - done
868 -
869 - # Mandatory configuration
870 - myconf=(
871 - --enable-avfilter
872 - --enable-avresample
873 - --disable-stripping
874 - "${myconf[@]}"
875 - )
876 -
877 - # cross compile support
878 - if tc-is-cross-compiler ; then
879 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
880 - case ${CHOST} in
881 - *freebsd*)
882 - myconf+=( --target-os=freebsd )
883 - ;;
884 - mingw32*)
885 - myconf+=( --target-os=mingw32 )
886 - ;;
887 - *linux*)
888 - myconf+=( --target-os=linux )
889 - ;;
890 - esac
891 - fi
892 -
893 - set -- "${S}/configure" \
894 - --prefix="${EPREFIX}/usr" \
895 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
896 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
897 - --mandir="${EPREFIX}/usr/share/man" \
898 - --enable-shared \
899 - --cc="$(tc-getCC)" \
900 - --cxx="$(tc-getCXX)" \
901 - --ar="$(tc-getAR)" \
902 - --optflags=" " \
903 - $(use_enable static-libs static) \
904 - "${myconf[@]}"
905 - echo "${@}"
906 - "${@}" || die
907 -}
908 -
909 -multilib_src_compile() {
910 - emake V=1
911 -
912 - if multilib_is_native_abi; then
913 - for i in "${FFTOOLS[@]}" ; do
914 - if use fftools_${i} ; then
915 - emake V=1 tools/${i}
916 - fi
917 - done
918 - fi
919 -}
920 -
921 -multilib_src_install() {
922 - emake V=1 DESTDIR="${D}" install install-man
923 -
924 - if multilib_is_native_abi; then
925 - for i in "${FFTOOLS[@]}" ; do
926 - if use fftools_${i} ; then
927 - dobin tools/${i}
928 - fi
929 - done
930 - fi
931 -}
932 -
933 -multilib_src_install_all() {
934 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
935 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
936 - use doc && dohtml -r doc/*
937 - if use examples ; then
938 - dodoc -r doc/examples
939 - docompress -x /usr/share/doc/${PF}/examples
940 - fi
941 -}
942 -
943 -multilib_src_test() {
944 - 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" \
945 - emake V=1 fate
946 -}