1 |
commit: 263a8b0a8d99a3e8750ad2036925622923a754fd |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 15 10:20:32 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 15 10:25:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=263a8b0a |
7 |
|
8 |
media-video/ffmpeg: remove old |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
media-video/ffmpeg/Manifest | 1 - |
13 |
media-video/ffmpeg/ffmpeg-3.1.3.ebuild | 463 --------------------------------- |
14 |
2 files changed, 464 deletions(-) |
15 |
|
16 |
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest |
17 |
index 289d5f1..1d23526 100644 |
18 |
--- a/media-video/ffmpeg/Manifest |
19 |
+++ b/media-video/ffmpeg/Manifest |
20 |
@@ -1,5 +1,4 @@ |
21 |
DIST ffmpeg-2.8.6.tar.bz2 8582420 SHA256 40611e329bc354592c6f8f1deb033c31b91f80e91f5707ca4f9afceca78d8e62 SHA512 68fb41884b95953025b9c56496b17e13062196800ff9834dac43a12e9a0048d4a763f50a2256418c91cc850b63713e1debbf9170737f29621f48946adef152dc WHIRLPOOL 20a4b12b5a03f187b753cca43c65bd75b49cc21c9ffabad31b8ac0ab47fc8e017931ad5076b701c303bb594b20acb403d3ec2dabdf647fd262c070c8dabf1eea |
22 |
DIST ffmpeg-2.8.7.tar.bz2 8581128 SHA256 8777ce4a335640fdd13680ba423ef6da330ff5071bfbe27cdbb452379167efe5 SHA512 26c7e50b76c89c606f4a3894c7c42bf1dc70b1778df879ba66723b0b29bfb7a206004bd3e9da29a27f57cf870ce395eb8b7ff1d53d7ba7b3c620d956b1c4cb06 WHIRLPOOL 361a3ef9c664b3b5f489b871071a1ce581cfef089a6a1014988e6c7463d45533d3a8af9b3e49ddb7e2257cef06205771d8e584a090d65e3c645421e963346a35 |
23 |
DIST ffmpeg-2.8.8.tar.bz2 8583641 SHA256 b70848958feadca180315d17b1131a1b519527971590e6ee8363a4c568ed06a6 SHA512 26fc2f9da8b0c62fb3147632476d328dff096f07efc83112dd3cf3a1da6b42edab053ef8f05d2035c5f824d9336020b3b4a99501243f83ec66255f082278bfb3 WHIRLPOOL 9ba67f08dcfbed0c3519767d9fea35f24a3652290ad095d01d928cf9f54e9e99afa410889c6afb84f22cd9882b5a7d44f304d602b41510973962517228f5f32f |
24 |
-DIST ffmpeg-3.1.3.tar.bz2 9333069 SHA256 58bc89c65dd114d874efbf76f76368d03b5e407f0a3f42d5b40801c280968a38 SHA512 2c17414b11ea54bc5360e54651daa1c21c4138da86a13900214c5f0209305c6315f9ee81deedffae90f61b2684295e9050a87b3c64d34193ee1695f5ae1a7d96 WHIRLPOOL b60f3a7d97a63ce201e744a9213437621dbcff6a216dc09ff9b863f0a2ca672b177f9d61a809f84393af711cd1cfe91c08b9d14b2d2a6c36b32294351b3bace8 |
25 |
DIST ffmpeg-3.1.4.tar.bz2 9334429 SHA256 7c99df75a4dc12d22c0f1ed11d0acf98cac1f8b5fe7a7434344b167f810bcbfa SHA512 5ec8c525dcea153316ab5fb84337d29f920d81a3c3ca0f0cd10fcb60482e7e08bc9d9e73d7ea5d5dac32838ac45fed47fb41d1e73551e654ce55cc04071ec18e WHIRLPOOL fc752ec261411c38003970199d98b0dc61eb380b83156754d3fc8246113d0431c35079e954a9b4bdf93c6bd39a97b0f20c921397ab0ff510ca9d3d0473316615 |
26 |
|
27 |
diff --git a/media-video/ffmpeg/ffmpeg-3.1.3.ebuild b/media-video/ffmpeg/ffmpeg-3.1.3.ebuild |
28 |
deleted file mode 100644 |
29 |
index 03b2cf4..00000000 |
30 |
--- a/media-video/ffmpeg/ffmpeg-3.1.3.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,463 +0,0 @@ |
33 |
-# Copyright 1999-2016 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
-# $Id$ |
36 |
- |
37 |
-EAPI=6 |
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=55.57.57 |
49 |
- |
50 |
-SCM="" |
51 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
52 |
- SCM="git-r3" |
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 |
- gmp? ( |
78 |
- gpl? ( GPL-3 ) |
79 |
- !gpl? ( LGPL-3 ) |
80 |
- ) |
81 |
- encode? ( |
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 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~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 gcrypt gnutls gmp |
99 |
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc |
100 |
- samba:libsmbclient sdl:ffplay sdl 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 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
111 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
112 |
- zvbi:libzvbi |
113 |
- # libavfilter options |
114 |
- bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r |
115 |
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype |
116 |
- rubberband:librubberband zimg:libzimg |
117 |
- # libswresample options |
118 |
- libsoxr |
119 |
- # Threads; we only support pthread for now but ffmpeg supports more |
120 |
- +threads:pthreads |
121 |
-) |
122 |
- |
123 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
124 |
-FFMPEG_ENCODER_FLAG_MAP=( |
125 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
126 |
- faac:libfaac kvazaar:libkvazaar nvenc:nvenc |
127 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
128 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
129 |
-) |
130 |
- |
131 |
-IUSE=" |
132 |
- alsa doc +encode jack oss pic static-libs test v4l |
133 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
134 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
135 |
-" |
136 |
- |
137 |
-# Strings for CPU features in the useflag[:configure_option] form |
138 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
139 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
140 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
141 |
-PPC_CPU_FEATURES=( altivec ) |
142 |
-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 ) |
143 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
144 |
-X86_CPU_REQUIRED_USE=" |
145 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
146 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
147 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
148 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
149 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
150 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
151 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
152 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
153 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
154 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
155 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
156 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
157 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
158 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
159 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
160 |
-" |
161 |
- |
162 |
-IUSE="${IUSE} |
163 |
- ${ARM_CPU_FEATURES[@]%:*} |
164 |
- ${MIPS_CPU_FEATURES[@]%:*} |
165 |
- ${PPC_CPU_FEATURES[@]%:*} |
166 |
- ${X86_CPU_FEATURES[@]%:*} |
167 |
-" |
168 |
- |
169 |
-CPU_REQUIRED_USE=" |
170 |
- ${X86_CPU_REQUIRED_USE} |
171 |
-" |
172 |
- |
173 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
174 |
-# $(tc-arch). |
175 |
-CPU_FEATURES_MAP=" |
176 |
- arm:ARM |
177 |
- arm64:ARM |
178 |
- mips:MIPS |
179 |
- ppc:PPC |
180 |
- ppc64:PPC |
181 |
- x86:X86 |
182 |
- amd64:X86 |
183 |
-" |
184 |
- |
185 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
186 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
187 |
- |
188 |
-RDEPEND=" |
189 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
190 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
191 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
192 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
193 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
194 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
195 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
196 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
197 |
- ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] ) |
198 |
- encode? ( |
199 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
200 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
201 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
202 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
203 |
- nvenc? ( media-video/nvidia_video_sdk ) |
204 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
205 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
206 |
- theora? ( |
207 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
208 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
209 |
- ) |
210 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
211 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
212 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
213 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
214 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
215 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
216 |
- ) |
217 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
218 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
219 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
220 |
- frei0r? ( media-plugins/frei0r-plugins ) |
221 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
222 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
223 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
224 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
225 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
226 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
227 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
228 |
- iec61883? ( |
229 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
230 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
231 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
232 |
- ) |
233 |
- ieee1394? ( |
234 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
235 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
236 |
- ) |
237 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
238 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
239 |
- libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
240 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
241 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
242 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
243 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
244 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
245 |
- mmal? ( media-libs/raspberrypi-userland ) |
246 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
247 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
248 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
249 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
250 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
251 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
252 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
253 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
254 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
255 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
256 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
257 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
258 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
259 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
260 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
261 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
262 |
- vorbis? ( |
263 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
264 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
265 |
- ) |
266 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
267 |
- X? ( |
268 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
269 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
270 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
271 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
272 |
- ) |
273 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
274 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
275 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
276 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
277 |
- !media-video/qt-faststart |
278 |
- postproc? ( !media-libs/libpostproc ) |
279 |
-" |
280 |
- |
281 |
-DEPEND="${RDEPEND} |
282 |
- >=sys-devel/make-3.81 |
283 |
- doc? ( sys-apps/texinfo ) |
284 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
285 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
286 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
287 |
- test? ( net-misc/wget sys-devel/bc ) |
288 |
- v4l? ( sys-kernel/linux-headers ) |
289 |
-" |
290 |
- |
291 |
-RDEPEND="${RDEPEND} |
292 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
293 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
294 |
- |
295 |
-# Code requiring FFmpeg to be built under gpl license |
296 |
-GPL_REQUIRED_USE=" |
297 |
- postproc? ( gpl ) |
298 |
- frei0r? ( gpl ) |
299 |
- cdio? ( gpl ) |
300 |
- samba? ( 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 ) ) |
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 "${FILESDIR}/openjpeg2.patch" #595318 |
330 |
- default |
331 |
-} |
332 |
- |
333 |
-multilib_src_configure() { |
334 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
335 |
- |
336 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
337 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
338 |
- use samba && myconf+=( --enable-version3 ) |
339 |
- |
340 |
- # Encoders |
341 |
- if use encode ; then |
342 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
343 |
- |
344 |
- # Licensing. |
345 |
- if use amrenc ; then |
346 |
- myconf+=( --enable-version3 ) |
347 |
- fi |
348 |
- if use faac ; then |
349 |
- myconf+=( --enable-nonfree ) |
350 |
- fi |
351 |
- else |
352 |
- myconf+=( --disable-encoders ) |
353 |
- fi |
354 |
- |
355 |
- # Indevs |
356 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
357 |
- for i in alsa oss jack ; do |
358 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
359 |
- done |
360 |
- use xcb || ffuse+=( X:x11grab ) |
361 |
- |
362 |
- # Outdevs |
363 |
- for i in alsa oss sdl ; do |
364 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
365 |
- done |
366 |
- |
367 |
- # Decoders |
368 |
- use amr && myconf+=( --enable-version3 ) |
369 |
- use gmp && myconf+=( --enable-version3 ) |
370 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
371 |
- |
372 |
- for i in "${ffuse[@]#+}" ; do |
373 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
374 |
- done |
375 |
- |
376 |
- # (temporarily) disable non-multilib deps |
377 |
- if ! multilib_is_native_abi; then |
378 |
- for i in frei0r ; do |
379 |
- myconf+=( --disable-${i} ) |
380 |
- done |
381 |
- fi |
382 |
- |
383 |
- # CPU features |
384 |
- for i in ${CPU_FEATURES_MAP} ; do |
385 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
386 |
- local var="${i#*:}_CPU_FEATURES[@]" |
387 |
- for j in ${!var} ; do |
388 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
389 |
- done |
390 |
- fi |
391 |
- done |
392 |
- |
393 |
- if use pic ; then |
394 |
- myconf+=( --enable-pic ) |
395 |
- # disable asm code if PIC is required |
396 |
- # as the provided asm decidedly is not PIC for x86. |
397 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
398 |
- fi |
399 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
400 |
- |
401 |
- # Try to get cpu type based on CFLAGS. |
402 |
- # Bug #172723 |
403 |
- # We need to do this so that features of that CPU will be better used |
404 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
405 |
- # will just ignore it. |
406 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
407 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
408 |
- myconf+=( --cpu=${i} ) |
409 |
- break |
410 |
- done |
411 |
- |
412 |
- # LTO support, bug #566282 |
413 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
414 |
- |
415 |
- # Mandatory configuration |
416 |
- myconf=( |
417 |
- --enable-avfilter |
418 |
- --enable-avresample |
419 |
- --disable-stripping |
420 |
- "${myconf[@]}" |
421 |
- ) |
422 |
- |
423 |
- # cross compile support |
424 |
- if tc-is-cross-compiler ; then |
425 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
426 |
- case ${CHOST} in |
427 |
- *freebsd*) |
428 |
- myconf+=( --target-os=freebsd ) |
429 |
- ;; |
430 |
- *mingw32*) |
431 |
- myconf+=( --target-os=mingw32 ) |
432 |
- ;; |
433 |
- *linux*) |
434 |
- myconf+=( --target-os=linux ) |
435 |
- ;; |
436 |
- esac |
437 |
- fi |
438 |
- |
439 |
- # doc |
440 |
- myconf+=( |
441 |
- $(multilib_native_use_enable doc) |
442 |
- $(multilib_native_use_enable doc htmlpages) |
443 |
- $(multilib_native_enable manpages) |
444 |
- ) |
445 |
- |
446 |
- set -- "${S}/configure" \ |
447 |
- --prefix="${EPREFIX}/usr" \ |
448 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
449 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
450 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
451 |
- --mandir="${EPREFIX}/usr/share/man" \ |
452 |
- --enable-shared \ |
453 |
- --cc="$(tc-getCC)" \ |
454 |
- --cxx="$(tc-getCXX)" \ |
455 |
- --ar="$(tc-getAR)" \ |
456 |
- --optflags="${CFLAGS}" \ |
457 |
- $(use_enable static-libs static) \ |
458 |
- "${myconf[@]}" |
459 |
- echo "${@}" |
460 |
- "${@}" || die |
461 |
-} |
462 |
- |
463 |
-multilib_src_compile() { |
464 |
- emake V=1 |
465 |
- |
466 |
- if multilib_is_native_abi; then |
467 |
- for i in "${FFTOOLS[@]}" ; do |
468 |
- if use fftools_${i} ; then |
469 |
- emake V=1 tools/${i} |
470 |
- fi |
471 |
- done |
472 |
- fi |
473 |
-} |
474 |
- |
475 |
-multilib_src_install() { |
476 |
- emake V=1 DESTDIR="${D}" install install-doc |
477 |
- |
478 |
- if multilib_is_native_abi; then |
479 |
- for i in "${FFTOOLS[@]}" ; do |
480 |
- if use fftools_${i} ; then |
481 |
- dobin tools/${i} |
482 |
- fi |
483 |
- done |
484 |
- fi |
485 |
-} |
486 |
- |
487 |
-multilib_src_install_all() { |
488 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
489 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
490 |
-} |
491 |
- |
492 |
-multilib_src_test() { |
493 |
- 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" \ |
494 |
- emake V=1 fate |
495 |
-} |