1 |
commit: bdb73ac4e8534da59b137e2a0478716caf279101 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 28 12:09:13 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 13:28:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdb73ac4 |
7 |
|
8 |
media-video/ffmpeg: remove old |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
media-video/ffmpeg/Manifest | 3 - |
13 |
media-video/ffmpeg/ffmpeg-2.8.7.ebuild | 458 -------------------------------- |
14 |
media-video/ffmpeg/ffmpeg-3.1.5.ebuild | 462 --------------------------------- |
15 |
media-video/ffmpeg/ffmpeg-3.2.ebuild | 457 -------------------------------- |
16 |
4 files changed, 1380 deletions(-) |
17 |
|
18 |
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest |
19 |
index 59e9076..846737f 100644 |
20 |
--- a/media-video/ffmpeg/Manifest |
21 |
+++ b/media-video/ffmpeg/Manifest |
22 |
@@ -1,6 +1,3 @@ |
23 |
DIST ffmpeg-2.8.6.tar.bz2 8582420 SHA256 40611e329bc354592c6f8f1deb033c31b91f80e91f5707ca4f9afceca78d8e62 SHA512 68fb41884b95953025b9c56496b17e13062196800ff9834dac43a12e9a0048d4a763f50a2256418c91cc850b63713e1debbf9170737f29621f48946adef152dc WHIRLPOOL 20a4b12b5a03f187b753cca43c65bd75b49cc21c9ffabad31b8ac0ab47fc8e017931ad5076b701c303bb594b20acb403d3ec2dabdf647fd262c070c8dabf1eea |
24 |
-DIST ffmpeg-2.8.7.tar.bz2 8581128 SHA256 8777ce4a335640fdd13680ba423ef6da330ff5071bfbe27cdbb452379167efe5 SHA512 26c7e50b76c89c606f4a3894c7c42bf1dc70b1778df879ba66723b0b29bfb7a206004bd3e9da29a27f57cf870ce395eb8b7ff1d53d7ba7b3c620d956b1c4cb06 WHIRLPOOL 361a3ef9c664b3b5f489b871071a1ce581cfef089a6a1014988e6c7463d45533d3a8af9b3e49ddb7e2257cef06205771d8e584a090d65e3c645421e963346a35 |
25 |
DIST ffmpeg-2.8.8.tar.bz2 8583641 SHA256 b70848958feadca180315d17b1131a1b519527971590e6ee8363a4c568ed06a6 SHA512 26fc2f9da8b0c62fb3147632476d328dff096f07efc83112dd3cf3a1da6b42edab053ef8f05d2035c5f824d9336020b3b4a99501243f83ec66255f082278bfb3 WHIRLPOOL 9ba67f08dcfbed0c3519767d9fea35f24a3652290ad095d01d928cf9f54e9e99afa410889c6afb84f22cd9882b5a7d44f304d602b41510973962517228f5f32f |
26 |
-DIST ffmpeg-3.1.5.tar.bz2 9334190 SHA256 2400882a2c7795c74f0abebc28d267f2796510fb69ba324b0e9f16cc8dbb0d2b SHA512 9d22d48318cf6d44ce3a4d2ee57fa51d04c685a1c72e9668f5ad4443d246a33108f66f1dc9106e1c4db52b6c2c267b6682b9b7c3d267e4c37e4460f4169b97d1 WHIRLPOOL fda0698359383dda01ba8b96e3004d64fb8c32534771c6eb21d1daeca32596d2a2de566eb991170a259de31b5f029fb1a6d99ab8f100bf464058a71ee6438a42 |
27 |
DIST ffmpeg-3.2.1.tar.bz2 9613356 SHA256 72abc55bea5ff5397ac82320fa5c4843a05f527d0d7912d66784c92fdfbd12fb SHA512 bdadad5a3879d9492c152541db39d96707ca2989d4663ef6b09a19169c67813da329ec99b274519ef119eaaa01a0dd4aee4a5841469068d7c73b27f8dafcd377 WHIRLPOOL d85fd6a10b9e721cba60e5cf88c98148daa99499cd51caeb2796dd9a86a4117cc3c6df9ceef0bd980cad100d33113292323f211861cfc4e8236b5cc0a34d6d55 |
28 |
-DIST ffmpeg-3.2.tar.bz2 9605348 SHA256 76d6cd9f5e64463a5b9940736da8a515c990bcbbe506a722e2040916cb366d74 SHA512 025caee069709e4d5281033c95c5dcb1a8d8928da98f5a5e55734577852f960668d9a1df2a059e9b800ad2bf2b53c7d1ea6655ccdc0e14281fbcc45f2ae7a1bb WHIRLPOOL 206f6a7ced6f73c143cf3c67d35d6d12e477622895018c96da17c6a59ba382c3f0878e5ef8b6f0f295cc11b6910e46baabee8f0fc0f3f65677890f2072ad443a |
29 |
|
30 |
diff --git a/media-video/ffmpeg/ffmpeg-2.8.7.ebuild b/media-video/ffmpeg/ffmpeg-2.8.7.ebuild |
31 |
deleted file mode 100644 |
32 |
index e28564c..00000000 |
33 |
--- a/media-video/ffmpeg/ffmpeg-2.8.7.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,458 +0,0 @@ |
36 |
-# Copyright 1999-2015 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-3.1.5.ebuild b/media-video/ffmpeg/ffmpeg-3.1.5.ebuild |
496 |
deleted file mode 100644 |
497 |
index e15449a..00000000 |
498 |
--- a/media-video/ffmpeg/ffmpeg-3.1.5.ebuild |
499 |
+++ /dev/null |
500 |
@@ -1,462 +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=6 |
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=55.57.57 |
517 |
- |
518 |
-SCM="" |
519 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
520 |
- SCM="git-r3" |
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 |
- gmp? ( |
546 |
- gpl? ( GPL-3 ) |
547 |
- !gpl? ( LGPL-3 ) |
548 |
- ) |
549 |
- encode? ( |
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="~amd64 ~mips ~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 gcrypt gnutls gmp |
567 |
- +gpl +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 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
579 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
580 |
- zvbi:libzvbi |
581 |
- # libavfilter options |
582 |
- bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r |
583 |
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype |
584 |
- rubberband:librubberband zimg:libzimg |
585 |
- # libswresample options |
586 |
- libsoxr |
587 |
- # Threads; we only support pthread for now but ffmpeg supports more |
588 |
- +threads:pthreads |
589 |
-) |
590 |
- |
591 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
592 |
-FFMPEG_ENCODER_FLAG_MAP=( |
593 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
594 |
- faac:libfaac kvazaar:libkvazaar nvenc:nvenc |
595 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
596 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
597 |
-) |
598 |
- |
599 |
-IUSE=" |
600 |
- alsa doc +encode jack oss pic static-libs test v4l |
601 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
602 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
603 |
-" |
604 |
- |
605 |
-# Strings for CPU features in the useflag[:configure_option] form |
606 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
607 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
608 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
609 |
-PPC_CPU_FEATURES=( altivec ) |
610 |
-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 ) |
611 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
612 |
-X86_CPU_REQUIRED_USE=" |
613 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
614 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
615 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
616 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
617 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
618 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
619 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
620 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
621 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
622 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
623 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
624 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
625 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
626 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
627 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
628 |
-" |
629 |
- |
630 |
-IUSE="${IUSE} |
631 |
- ${ARM_CPU_FEATURES[@]%:*} |
632 |
- ${MIPS_CPU_FEATURES[@]%:*} |
633 |
- ${PPC_CPU_FEATURES[@]%:*} |
634 |
- ${X86_CPU_FEATURES[@]%:*} |
635 |
-" |
636 |
- |
637 |
-CPU_REQUIRED_USE=" |
638 |
- ${X86_CPU_REQUIRED_USE} |
639 |
-" |
640 |
- |
641 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
642 |
-# $(tc-arch). |
643 |
-CPU_FEATURES_MAP=" |
644 |
- arm:ARM |
645 |
- arm64:ARM |
646 |
- mips:MIPS |
647 |
- ppc:PPC |
648 |
- ppc64:PPC |
649 |
- x86:X86 |
650 |
- amd64:X86 |
651 |
-" |
652 |
- |
653 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
654 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
655 |
- |
656 |
-RDEPEND=" |
657 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
658 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
659 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
660 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
661 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
662 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
663 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
664 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
665 |
- ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] ) |
666 |
- encode? ( |
667 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
668 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
669 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
670 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
671 |
- nvenc? ( media-video/nvidia_video_sdk ) |
672 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
673 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
674 |
- theora? ( |
675 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
676 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
677 |
- ) |
678 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
679 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
680 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
681 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
682 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
683 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
684 |
- ) |
685 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
686 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
687 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
688 |
- frei0r? ( media-plugins/frei0r-plugins ) |
689 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
690 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
691 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
692 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
693 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
694 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
695 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
696 |
- iec61883? ( |
697 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
698 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
699 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
700 |
- ) |
701 |
- ieee1394? ( |
702 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
703 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
704 |
- ) |
705 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
706 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
707 |
- libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
708 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
709 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
710 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
711 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
712 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
713 |
- mmal? ( media-libs/raspberrypi-userland ) |
714 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
715 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
716 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
717 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
718 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
719 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
720 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
721 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
722 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
723 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
724 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
725 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
726 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
727 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
728 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
729 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
730 |
- vorbis? ( |
731 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
732 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
733 |
- ) |
734 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
735 |
- X? ( |
736 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
737 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
738 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
739 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
740 |
- ) |
741 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
742 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
743 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
744 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
745 |
- !media-video/qt-faststart |
746 |
- postproc? ( !media-libs/libpostproc ) |
747 |
-" |
748 |
- |
749 |
-DEPEND="${RDEPEND} |
750 |
- >=sys-devel/make-3.81 |
751 |
- doc? ( sys-apps/texinfo ) |
752 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
753 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
754 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
755 |
- test? ( net-misc/wget sys-devel/bc ) |
756 |
- v4l? ( sys-kernel/linux-headers ) |
757 |
-" |
758 |
- |
759 |
-RDEPEND="${RDEPEND} |
760 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
761 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
762 |
- |
763 |
-# Code requiring FFmpeg to be built under gpl license |
764 |
-GPL_REQUIRED_USE=" |
765 |
- postproc? ( gpl ) |
766 |
- frei0r? ( gpl ) |
767 |
- cdio? ( gpl ) |
768 |
- samba? ( 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 ) ) |
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 |
- default |
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 amrenc ; then |
813 |
- myconf+=( --enable-version3 ) |
814 |
- fi |
815 |
- if 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 gmp && myconf+=( --enable-version3 ) |
837 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
838 |
- |
839 |
- for i in "${ffuse[@]#+}" ; do |
840 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
841 |
- done |
842 |
- |
843 |
- # (temporarily) disable non-multilib deps |
844 |
- if ! multilib_is_native_abi; then |
845 |
- for i in frei0r ; do |
846 |
- myconf+=( --disable-${i} ) |
847 |
- done |
848 |
- fi |
849 |
- |
850 |
- # CPU features |
851 |
- for i in ${CPU_FEATURES_MAP} ; do |
852 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
853 |
- local var="${i#*:}_CPU_FEATURES[@]" |
854 |
- for j in ${!var} ; do |
855 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
856 |
- done |
857 |
- fi |
858 |
- done |
859 |
- |
860 |
- if use pic ; then |
861 |
- myconf+=( --enable-pic ) |
862 |
- # disable asm code if PIC is required |
863 |
- # as the provided asm decidedly is not PIC for x86. |
864 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
865 |
- fi |
866 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
867 |
- |
868 |
- # Try to get cpu type based on CFLAGS. |
869 |
- # Bug #172723 |
870 |
- # We need to do this so that features of that CPU will be better used |
871 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
872 |
- # will just ignore it. |
873 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
874 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
875 |
- myconf+=( --cpu=${i} ) |
876 |
- break |
877 |
- done |
878 |
- |
879 |
- # LTO support, bug #566282 |
880 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
881 |
- |
882 |
- # Mandatory configuration |
883 |
- myconf=( |
884 |
- --enable-avfilter |
885 |
- --enable-avresample |
886 |
- --disable-stripping |
887 |
- "${myconf[@]}" |
888 |
- ) |
889 |
- |
890 |
- # cross compile support |
891 |
- if tc-is-cross-compiler ; then |
892 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
893 |
- case ${CHOST} in |
894 |
- *freebsd*) |
895 |
- myconf+=( --target-os=freebsd ) |
896 |
- ;; |
897 |
- *mingw32*) |
898 |
- myconf+=( --target-os=mingw32 ) |
899 |
- ;; |
900 |
- *linux*) |
901 |
- myconf+=( --target-os=linux ) |
902 |
- ;; |
903 |
- esac |
904 |
- fi |
905 |
- |
906 |
- # doc |
907 |
- myconf+=( |
908 |
- $(multilib_native_use_enable doc) |
909 |
- $(multilib_native_use_enable doc htmlpages) |
910 |
- $(multilib_native_enable manpages) |
911 |
- ) |
912 |
- |
913 |
- set -- "${S}/configure" \ |
914 |
- --prefix="${EPREFIX}/usr" \ |
915 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
916 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
917 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
918 |
- --mandir="${EPREFIX}/usr/share/man" \ |
919 |
- --enable-shared \ |
920 |
- --cc="$(tc-getCC)" \ |
921 |
- --cxx="$(tc-getCXX)" \ |
922 |
- --ar="$(tc-getAR)" \ |
923 |
- --optflags="${CFLAGS}" \ |
924 |
- $(use_enable static-libs static) \ |
925 |
- "${myconf[@]}" |
926 |
- echo "${@}" |
927 |
- "${@}" || die |
928 |
-} |
929 |
- |
930 |
-multilib_src_compile() { |
931 |
- emake V=1 |
932 |
- |
933 |
- if multilib_is_native_abi; then |
934 |
- for i in "${FFTOOLS[@]}" ; do |
935 |
- if use fftools_${i} ; then |
936 |
- emake V=1 tools/${i} |
937 |
- fi |
938 |
- done |
939 |
- fi |
940 |
-} |
941 |
- |
942 |
-multilib_src_install() { |
943 |
- emake V=1 DESTDIR="${D}" install install-doc |
944 |
- |
945 |
- if multilib_is_native_abi; then |
946 |
- for i in "${FFTOOLS[@]}" ; do |
947 |
- if use fftools_${i} ; then |
948 |
- dobin tools/${i} |
949 |
- fi |
950 |
- done |
951 |
- fi |
952 |
-} |
953 |
- |
954 |
-multilib_src_install_all() { |
955 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
956 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
957 |
-} |
958 |
- |
959 |
-multilib_src_test() { |
960 |
- 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" \ |
961 |
- emake V=1 fate |
962 |
-} |
963 |
|
964 |
diff --git a/media-video/ffmpeg/ffmpeg-3.2.ebuild b/media-video/ffmpeg/ffmpeg-3.2.ebuild |
965 |
deleted file mode 100644 |
966 |
index 02accca..00000000 |
967 |
--- a/media-video/ffmpeg/ffmpeg-3.2.ebuild |
968 |
+++ /dev/null |
969 |
@@ -1,457 +0,0 @@ |
970 |
-# Copyright 1999-2016 Gentoo Foundation |
971 |
-# Distributed under the terms of the GNU General Public License v2 |
972 |
-# $Id$ |
973 |
- |
974 |
-EAPI=6 |
975 |
- |
976 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
977 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
978 |
-# Most consumers will use those three libraries, if a "less used" library |
979 |
-# changes its soname, consumers will have to be rebuilt the old way |
980 |
-# (preserve-libs). |
981 |
-# If, for example, a package does not link to libavformat and only libavformat |
982 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
983 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
984 |
-# doing so since such a case is unlikely. |
985 |
-FFMPEG_SUBSLOT=55.57.57 |
986 |
- |
987 |
-SCM="" |
988 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
989 |
- SCM="git-r3" |
990 |
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
991 |
-fi |
992 |
- |
993 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
994 |
- |
995 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
996 |
-HOMEPAGE="http://ffmpeg.org/" |
997 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
998 |
- SRC_URI="" |
999 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
1000 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
1001 |
-else # Release |
1002 |
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
1003 |
-fi |
1004 |
-FFMPEG_REVISION="${PV#*_p}" |
1005 |
- |
1006 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
1007 |
-LICENSE=" |
1008 |
- !gpl? ( LGPL-2.1 ) |
1009 |
- gpl? ( GPL-2 ) |
1010 |
- amr? ( |
1011 |
- gpl? ( GPL-3 ) |
1012 |
- !gpl? ( LGPL-3 ) |
1013 |
- ) |
1014 |
- gmp? ( |
1015 |
- gpl? ( GPL-3 ) |
1016 |
- !gpl? ( LGPL-3 ) |
1017 |
- ) |
1018 |
- encode? ( |
1019 |
- amrenc? ( |
1020 |
- gpl? ( GPL-3 ) |
1021 |
- !gpl? ( LGPL-3 ) |
1022 |
- ) |
1023 |
- ) |
1024 |
- samba? ( GPL-3 ) |
1025 |
-" |
1026 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
1027 |
- KEYWORDS="~amd64 ~mips ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
1028 |
-fi |
1029 |
- |
1030 |
-# Options to use as use_enable in the foo[:bar] form. |
1031 |
-# This will feed configure with $(use_enable foo bar) |
1032 |
-# or $(use_enable foo foo) if no :bar is set. |
1033 |
-# foo is added to IUSE. |
1034 |
-FFMPEG_FLAG_MAP=( |
1035 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
1036 |
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc |
1037 |
- samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau X:xlib xcb:libxcb |
1038 |
- xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
1039 |
- # libavdevice options |
1040 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
1041 |
- opengl |
1042 |
- # indevs |
1043 |
- libv4l:libv4l2 pulseaudio:libpulse |
1044 |
- # decoders |
1045 |
- amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac |
1046 |
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
1047 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
1048 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
1049 |
- zvbi:libzvbi |
1050 |
- # libavfilter options |
1051 |
- bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r |
1052 |
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype |
1053 |
- rubberband:librubberband zimg:libzimg |
1054 |
- # libswresample options |
1055 |
- libsoxr |
1056 |
- # Threads; we only support pthread for now but ffmpeg supports more |
1057 |
- +threads:pthreads |
1058 |
-) |
1059 |
- |
1060 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
1061 |
-FFMPEG_ENCODER_FLAG_MAP=( |
1062 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
1063 |
- kvazaar:libkvazaar nvenc:nvenc |
1064 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
1065 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
1066 |
-) |
1067 |
- |
1068 |
-IUSE=" |
1069 |
- alsa doc +encode jack oss pic static-libs test v4l |
1070 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
1071 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
1072 |
-" |
1073 |
- |
1074 |
-# Strings for CPU features in the useflag[:configure_option] form |
1075 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
1076 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
1077 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
1078 |
-PPC_CPU_FEATURES=( altivec ) |
1079 |
-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 ) |
1080 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
1081 |
-X86_CPU_REQUIRED_USE=" |
1082 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
1083 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
1084 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
1085 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
1086 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
1087 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
1088 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
1089 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
1090 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
1091 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
1092 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
1093 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
1094 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
1095 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
1096 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
1097 |
-" |
1098 |
- |
1099 |
-IUSE="${IUSE} |
1100 |
- ${ARM_CPU_FEATURES[@]%:*} |
1101 |
- ${MIPS_CPU_FEATURES[@]%:*} |
1102 |
- ${PPC_CPU_FEATURES[@]%:*} |
1103 |
- ${X86_CPU_FEATURES[@]%:*} |
1104 |
-" |
1105 |
- |
1106 |
-CPU_REQUIRED_USE=" |
1107 |
- ${X86_CPU_REQUIRED_USE} |
1108 |
-" |
1109 |
- |
1110 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
1111 |
-# $(tc-arch). |
1112 |
-CPU_FEATURES_MAP=" |
1113 |
- arm:ARM |
1114 |
- arm64:ARM |
1115 |
- mips:MIPS |
1116 |
- ppc:PPC |
1117 |
- ppc64:PPC |
1118 |
- x86:X86 |
1119 |
- amd64:X86 |
1120 |
-" |
1121 |
- |
1122 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
1123 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
1124 |
- |
1125 |
-RDEPEND=" |
1126 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
1127 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
1128 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
1129 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
1130 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
1131 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
1132 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
1133 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
1134 |
- ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] ) |
1135 |
- encode? ( |
1136 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
1137 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
1138 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
1139 |
- nvenc? ( media-video/nvidia_video_sdk ) |
1140 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
1141 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
1142 |
- theora? ( |
1143 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
1144 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1145 |
- ) |
1146 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
1147 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
1148 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
1149 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
1150 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
1151 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
1152 |
- ) |
1153 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
1154 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
1155 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
1156 |
- frei0r? ( media-plugins/frei0r-plugins ) |
1157 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
1158 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
1159 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
1160 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
1161 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
1162 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
1163 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
1164 |
- iec61883? ( |
1165 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
1166 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1167 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
1168 |
- ) |
1169 |
- ieee1394? ( |
1170 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
1171 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1172 |
- ) |
1173 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
1174 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
1175 |
- libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
1176 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
1177 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
1178 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
1179 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
1180 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
1181 |
- mmal? ( media-libs/raspberrypi-userland ) |
1182 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
1183 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
1184 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
1185 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
1186 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
1187 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
1188 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
1189 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
1190 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
1191 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
1192 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
1193 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
1194 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
1195 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
1196 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
1197 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
1198 |
- vorbis? ( |
1199 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
1200 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1201 |
- ) |
1202 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
1203 |
- X? ( |
1204 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
1205 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
1206 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
1207 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
1208 |
- ) |
1209 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
1210 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
1211 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
1212 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
1213 |
- !media-video/qt-faststart |
1214 |
- postproc? ( !media-libs/libpostproc ) |
1215 |
-" |
1216 |
- |
1217 |
-DEPEND="${RDEPEND} |
1218 |
- >=sys-devel/make-3.81 |
1219 |
- doc? ( sys-apps/texinfo ) |
1220 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
1221 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
1222 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
1223 |
- test? ( net-misc/wget sys-devel/bc ) |
1224 |
- v4l? ( sys-kernel/linux-headers ) |
1225 |
-" |
1226 |
- |
1227 |
-RDEPEND="${RDEPEND} |
1228 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
1229 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
1230 |
- |
1231 |
-# Code requiring FFmpeg to be built under gpl license |
1232 |
-GPL_REQUIRED_USE=" |
1233 |
- postproc? ( gpl ) |
1234 |
- frei0r? ( gpl ) |
1235 |
- cdio? ( gpl ) |
1236 |
- samba? ( gpl ) |
1237 |
- encode? ( |
1238 |
- x264? ( gpl ) |
1239 |
- x265? ( gpl ) |
1240 |
- xvid? ( gpl ) |
1241 |
- X? ( !xcb? ( gpl ) ) |
1242 |
- ) |
1243 |
-" |
1244 |
-REQUIRED_USE=" |
1245 |
- libv4l? ( v4l ) |
1246 |
- fftools_cws2fws? ( zlib ) |
1247 |
- test? ( encode ) |
1248 |
- ${GPL_REQUIRED_USE} |
1249 |
- ${CPU_REQUIRED_USE}" |
1250 |
-RESTRICT=" |
1251 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
1252 |
-" |
1253 |
- |
1254 |
-S=${WORKDIR}/${P/_/-} |
1255 |
- |
1256 |
-MULTILIB_WRAPPED_HEADERS=( |
1257 |
- /usr/include/libavutil/avconfig.h |
1258 |
-) |
1259 |
- |
1260 |
-src_prepare() { |
1261 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
1262 |
- export revision=git-N-${FFMPEG_REVISION} |
1263 |
- fi |
1264 |
- default |
1265 |
-} |
1266 |
- |
1267 |
-multilib_src_configure() { |
1268 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
1269 |
- |
1270 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
1271 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
1272 |
- use samba && myconf+=( --enable-version3 ) |
1273 |
- |
1274 |
- # Encoders |
1275 |
- if use encode ; then |
1276 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
1277 |
- |
1278 |
- # Licensing. |
1279 |
- if use amrenc ; then |
1280 |
- myconf+=( --enable-version3 ) |
1281 |
- fi |
1282 |
- else |
1283 |
- myconf+=( --disable-encoders ) |
1284 |
- fi |
1285 |
- |
1286 |
- # Indevs |
1287 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
1288 |
- for i in alsa oss jack ; do |
1289 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
1290 |
- done |
1291 |
- use xcb || ffuse+=( X:x11grab ) |
1292 |
- |
1293 |
- # Outdevs |
1294 |
- for i in alsa oss sdl ; do |
1295 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
1296 |
- done |
1297 |
- |
1298 |
- # Decoders |
1299 |
- use amr && myconf+=( --enable-version3 ) |
1300 |
- use gmp && myconf+=( --enable-version3 ) |
1301 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
1302 |
- |
1303 |
- for i in "${ffuse[@]#+}" ; do |
1304 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
1305 |
- done |
1306 |
- |
1307 |
- # (temporarily) disable non-multilib deps |
1308 |
- if ! multilib_is_native_abi; then |
1309 |
- for i in frei0r ; do |
1310 |
- myconf+=( --disable-${i} ) |
1311 |
- done |
1312 |
- fi |
1313 |
- |
1314 |
- # CPU features |
1315 |
- for i in ${CPU_FEATURES_MAP} ; do |
1316 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
1317 |
- local var="${i#*:}_CPU_FEATURES[@]" |
1318 |
- for j in ${!var} ; do |
1319 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
1320 |
- done |
1321 |
- fi |
1322 |
- done |
1323 |
- |
1324 |
- if use pic ; then |
1325 |
- myconf+=( --enable-pic ) |
1326 |
- # disable asm code if PIC is required |
1327 |
- # as the provided asm decidedly is not PIC for x86. |
1328 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
1329 |
- fi |
1330 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
1331 |
- |
1332 |
- # Try to get cpu type based on CFLAGS. |
1333 |
- # Bug #172723 |
1334 |
- # We need to do this so that features of that CPU will be better used |
1335 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
1336 |
- # will just ignore it. |
1337 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
1338 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
1339 |
- myconf+=( --cpu=${i} ) |
1340 |
- break |
1341 |
- done |
1342 |
- |
1343 |
- # LTO support, bug #566282 |
1344 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
1345 |
- |
1346 |
- # Mandatory configuration |
1347 |
- myconf=( |
1348 |
- --enable-avfilter |
1349 |
- --enable-avresample |
1350 |
- --disable-stripping |
1351 |
- "${myconf[@]}" |
1352 |
- ) |
1353 |
- |
1354 |
- # cross compile support |
1355 |
- if tc-is-cross-compiler ; then |
1356 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
1357 |
- case ${CHOST} in |
1358 |
- *freebsd*) |
1359 |
- myconf+=( --target-os=freebsd ) |
1360 |
- ;; |
1361 |
- *mingw32*) |
1362 |
- myconf+=( --target-os=mingw32 ) |
1363 |
- ;; |
1364 |
- *linux*) |
1365 |
- myconf+=( --target-os=linux ) |
1366 |
- ;; |
1367 |
- esac |
1368 |
- fi |
1369 |
- |
1370 |
- # doc |
1371 |
- myconf+=( |
1372 |
- $(multilib_native_use_enable doc) |
1373 |
- $(multilib_native_use_enable doc htmlpages) |
1374 |
- $(multilib_native_enable manpages) |
1375 |
- ) |
1376 |
- |
1377 |
- set -- "${S}/configure" \ |
1378 |
- --prefix="${EPREFIX}/usr" \ |
1379 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
1380 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1381 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
1382 |
- --mandir="${EPREFIX}/usr/share/man" \ |
1383 |
- --enable-shared \ |
1384 |
- --cc="$(tc-getCC)" \ |
1385 |
- --cxx="$(tc-getCXX)" \ |
1386 |
- --ar="$(tc-getAR)" \ |
1387 |
- --optflags="${CFLAGS}" \ |
1388 |
- $(use_enable static-libs static) \ |
1389 |
- "${myconf[@]}" |
1390 |
- echo "${@}" |
1391 |
- "${@}" || die |
1392 |
-} |
1393 |
- |
1394 |
-multilib_src_compile() { |
1395 |
- emake V=1 |
1396 |
- |
1397 |
- if multilib_is_native_abi; then |
1398 |
- for i in "${FFTOOLS[@]}" ; do |
1399 |
- if use fftools_${i} ; then |
1400 |
- emake V=1 tools/${i} |
1401 |
- fi |
1402 |
- done |
1403 |
- fi |
1404 |
-} |
1405 |
- |
1406 |
-multilib_src_install() { |
1407 |
- emake V=1 DESTDIR="${D}" install install-doc |
1408 |
- |
1409 |
- if multilib_is_native_abi; then |
1410 |
- for i in "${FFTOOLS[@]}" ; do |
1411 |
- if use fftools_${i} ; then |
1412 |
- dobin tools/${i} |
1413 |
- fi |
1414 |
- done |
1415 |
- fi |
1416 |
-} |
1417 |
- |
1418 |
-multilib_src_install_all() { |
1419 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
1420 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
1421 |
-} |
1422 |
- |
1423 |
-multilib_src_test() { |
1424 |
- 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" \ |
1425 |
- emake V=1 fate |
1426 |
-} |