1 |
commit: 10129b053703a506637e41d845bd9e79a67a5b0e |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 2 10:19:37 2019 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 2 11:51:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10129b05 |
7 |
|
8 |
media-video/ffmpeg: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
media-video/ffmpeg/Manifest | 1 - |
14 |
media-video/ffmpeg/ffmpeg-4.2.ebuild | 545 ----------------------------------- |
15 |
2 files changed, 546 deletions(-) |
16 |
|
17 |
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest |
18 |
index 6b45dcb3d51..0de5b627003 100644 |
19 |
--- a/media-video/ffmpeg/Manifest |
20 |
+++ b/media-video/ffmpeg/Manifest |
21 |
@@ -2,4 +2,3 @@ DIST ffmpeg-3.4.6.tar.bz2 10190001 BLAKE2B 4c7842900171cf871f8524f08f435797b1a16 |
22 |
DIST ffmpeg-4.1.3.tar.bz2 10689073 BLAKE2B 8486e21c8df116af802bb7f9208e702ec1feaa4f292f14021e0b6bfb3957b13ddacfa87db361e677ae0583cc2bd1d402a66b0c8507cbed79a001c9b8462100bf SHA512 d0f8b3ee7b55e67b1c7ad9610a7b19a15acfc35dc843683502e536ebcc2e8678b55325532c0039b764cc978e95f83afb48bd24304abaee26f26d3247a8310bfe |
23 |
DIST ffmpeg-4.1.4.tar.bz2 10691784 BLAKE2B 5f1f0b3c78cdd913e44bef448ff4d26fc5ea01e1a002baf98461fe0d8870bc2b0f29a1770377df8ff4f0c45febd532d6436c6627f5d1fb97125e92d9929f9284 SHA512 0c2d5bf4873b2bf12aff8c8b576d58dc3c5984ca727f48e1247293cbebda382e9070e8b7fac99870ec2ae0cef3be0a187d5ec5d58ee3e861cd673cae961b5947 |
24 |
DIST ffmpeg-4.2.1.tar.bz2 10953293 BLAKE2B efc60a7e4a185d48a9ae7a5737fa930dea35ca19f1e2505fc4355815a8216f365134a018fb7a5eb7be8709989d27c2c0a56f7783e3f27eb12795e005fd6dc28d SHA512 5bd556546716ccb5292289c3092c11f216e573d0b09a015fdb568dee7544878d057d922a63758867f0343a09262d7b51023e862b70cefc529875f2319e716de4 |
25 |
-DIST ffmpeg-4.2.tar.bz2 10954171 BLAKE2B 1c2dfeb000a0cc85ca23d255163336db132b5f16cb184a0f3363f68108f5bde0220050b351f9c50273ef6642f86f1a43832f4b831928d95dd991a908c7c25e2e SHA512 74d06a420af61e05d9e076f4f433e8316590c3b850ada96e74c1df39431db1595f74315bdef624153edb160b8bef8683a4e9f35d69714cde4b5ec72aeb1d28e1 |
26 |
|
27 |
diff --git a/media-video/ffmpeg/ffmpeg-4.2.ebuild b/media-video/ffmpeg/ffmpeg-4.2.ebuild |
28 |
deleted file mode 100644 |
29 |
index e614ce5a206..00000000000 |
30 |
--- a/media-video/ffmpeg/ffmpeg-4.2.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,545 +0,0 @@ |
33 |
-# Copyright 1999-2019 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
39 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
40 |
-# Most consumers will use those three libraries, if a "less used" library |
41 |
-# changes its soname, consumers will have to be rebuilt the old way |
42 |
-# (preserve-libs). |
43 |
-# If, for example, a package does not link to libavformat and only libavformat |
44 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
45 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
46 |
-# doing so since such a case is unlikely. |
47 |
-FFMPEG_SUBSLOT=56.58.58 |
48 |
- |
49 |
-SCM="" |
50 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
51 |
- SCM="git-r3" |
52 |
- EGIT_MIN_CLONE_TYPE="single" |
53 |
- EGIT_REPO_URI="https://git.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="https://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="https://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 |
- libaribb24? ( |
82 |
- gpl? ( GPL-3 ) |
83 |
- !gpl? ( LGPL-3 ) |
84 |
- ) |
85 |
- encode? ( |
86 |
- amrenc? ( |
87 |
- gpl? ( GPL-3 ) |
88 |
- !gpl? ( LGPL-3 ) |
89 |
- ) |
90 |
- ) |
91 |
- samba? ( GPL-3 ) |
92 |
-" |
93 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
94 |
- KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
95 |
-fi |
96 |
- |
97 |
-# Options to use as use_enable in the foo[:bar] form. |
98 |
-# This will feed configure with $(use_enable foo bar) |
99 |
-# or $(use_enable foo foo) if no :bar is set. |
100 |
-# foo is added to IUSE. |
101 |
-FFMPEG_FLAG_MAP=( |
102 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
103 |
- +gpl hardcoded-tables +iconv libressl:libtls libxml2 lzma +network opencl |
104 |
- openssl +postproc samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau |
105 |
- X:xlib xcb:libxcb xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
106 |
- # libavdevice options |
107 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
108 |
- opengl |
109 |
- # indevs |
110 |
- libv4l:libv4l2 pulseaudio:libpulse libdrm jack:libjack |
111 |
- # decoders |
112 |
- amr:libopencore-amrwb amr:libopencore-amrnb codec2:libcodec2 dav1d:libdav1d fdk:libfdk-aac |
113 |
- jpeg2k:libopenjpeg bluray:libbluray gme:libgme gsm:libgsm |
114 |
- libaribb24 mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
115 |
- speex:libspeex srt:libsrt svg:librsvg video_cards_nvidia:ffnvcodec |
116 |
- vorbis:libvorbis vpx:libvpx zvbi:libzvbi |
117 |
- # libavfilter options |
118 |
- appkit |
119 |
- bs2b:libbs2b chromaprint cuda:cuda-llvm flite:libflite frei0r |
120 |
- fribidi:libfribidi fontconfig ladspa libass lv2 truetype:libfreetype vidstab:libvidstab |
121 |
- rubberband:librubberband zeromq:libzmq zimg:libzimg |
122 |
- # libswresample options |
123 |
- libsoxr |
124 |
- # Threads; we only support pthread for now but ffmpeg supports more |
125 |
- +threads:pthreads |
126 |
-) |
127 |
- |
128 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
129 |
-FFMPEG_ENCODER_FLAG_MAP=( |
130 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
131 |
- kvazaar:libkvazaar libaom |
132 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
133 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
134 |
-) |
135 |
- |
136 |
-IUSE=" |
137 |
- alsa chromium doc +encode oss pic static-libs test v4l |
138 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
139 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
140 |
-" |
141 |
- |
142 |
-# Strings for CPU features in the useflag[:configure_option] form |
143 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
144 |
-ARM_CPU_FEATURES=( |
145 |
- cpu_flags_arm_thumb:armv5te |
146 |
- cpu_flags_arm_v6:armv6 |
147 |
- cpu_flags_arm_thumb2:armv6t2 |
148 |
- cpu_flags_arm_neon:neon |
149 |
- cpu_flags_arm_vfp:vfp |
150 |
- cpu_flags_arm_vfpv3:vfpv3 |
151 |
- cpu_flags_arm_v8:armv8 |
152 |
-) |
153 |
-ARM_CPU_REQUIRED_USE=" |
154 |
- arm64? ( cpu_flags_arm_v8 ) |
155 |
- cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3 cpu_flags_arm_neon ) |
156 |
- cpu_flags_arm_neon? ( cpu_flags_arm_thumb2 cpu_flags_arm_vfp ) |
157 |
- cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp ) |
158 |
- cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) |
159 |
- cpu_flags_arm_v6? ( cpu_flags_arm_thumb ) |
160 |
-" |
161 |
-MIPS_CPU_FEATURES=( mipsdspr1:mipsdsp mipsdspr2 mipsfpu ) |
162 |
-PPC_CPU_FEATURES=( altivec ) |
163 |
-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 ) |
164 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
165 |
-X86_CPU_REQUIRED_USE=" |
166 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
167 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
168 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
169 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
170 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
171 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
172 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
173 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
174 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
175 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
176 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
177 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
178 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
179 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
180 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
181 |
-" |
182 |
- |
183 |
-CPU_FEATURES_MAP=( |
184 |
- ${ARM_CPU_FEATURES[@]} |
185 |
- ${MIPS_CPU_FEATURES[@]} |
186 |
- ${PPC_CPU_FEATURES[@]} |
187 |
- ${X86_CPU_FEATURES[@]} |
188 |
-) |
189 |
-IUSE="${IUSE} |
190 |
- ${CPU_FEATURES_MAP[@]%:*}" |
191 |
- |
192 |
-CPU_REQUIRED_USE=" |
193 |
- ${ARM_CPU_REQUIRED_USE} |
194 |
- ${X86_CPU_REQUIRED_USE} |
195 |
-" |
196 |
- |
197 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
198 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
199 |
- |
200 |
-RDEPEND=" |
201 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
202 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
203 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] ) |
204 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
205 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
206 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
207 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
208 |
- codec2? ( media-libs/codec2[${MULTILIB_USEDEP}] ) |
209 |
- dav1d? ( >=media-libs/dav1d-0.4.0:0=[${MULTILIB_USEDEP}] ) |
210 |
- encode? ( |
211 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
212 |
- kvazaar? ( >=media-libs/kvazaar-1.2.0[${MULTILIB_USEDEP}] ) |
213 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
214 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
215 |
- snappy? ( >=app-arch/snappy-1.1.2-r1:=[${MULTILIB_USEDEP}] ) |
216 |
- theora? ( |
217 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
218 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
219 |
- ) |
220 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
221 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
222 |
- webp? ( >=media-libs/libwebp-0.3.0:=[${MULTILIB_USEDEP}] ) |
223 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
224 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
225 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
226 |
- ) |
227 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
228 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
229 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
230 |
- frei0r? ( media-plugins/frei0r-plugins ) |
231 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
232 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
233 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
234 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
235 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
236 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
237 |
- iec61883? ( |
238 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
239 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
240 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
241 |
- ) |
242 |
- ieee1394? ( |
243 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
244 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
245 |
- ) |
246 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
247 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
248 |
- libaom? ( >=media-libs/libaom-1.0.0-r1[${MULTILIB_USEDEP}] ) |
249 |
- libaribb24? ( >=media-libs/aribb24-1.0.3-r2[${MULTILIB_USEDEP}] ) |
250 |
- libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) |
251 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
252 |
- libdrm? ( x11-libs/libdrm[${MULTILIB_USEDEP}] ) |
253 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
254 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
255 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
256 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
257 |
- libxml2? ( dev-libs/libxml2:=[${MULTILIB_USEDEP}] ) |
258 |
- lv2? ( media-libs/lv2[${MULTILIB_USEDEP}] media-libs/lilv[${MULTILIB_USEDEP}] ) |
259 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
260 |
- mmal? ( media-libs/raspberrypi-userland ) |
261 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
262 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
263 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
264 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
265 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
266 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
267 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
268 |
- samba? ( >=net-fs/samba-3.6.23-r1[client,${MULTILIB_USEDEP}] ) |
269 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
270 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
271 |
- srt? ( >=net-libs/srt-1.3.0[${MULTILIB_USEDEP}] ) |
272 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
273 |
- svg? ( gnome-base/librsvg:2=[${MULTILIB_USEDEP}] ) |
274 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
275 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
276 |
- video_cards_nvidia? ( >=media-libs/nv-codec-headers-9.0.18.0[${MULTILIB_USEDEP}] ) |
277 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
278 |
- vidstab? ( >=media-libs/vidstab-1.1.0[${MULTILIB_USEDEP}] ) |
279 |
- vorbis? ( |
280 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
281 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
282 |
- ) |
283 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
284 |
- X? ( |
285 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
286 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
287 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
288 |
- ) |
289 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
290 |
- zeromq? ( >=net-libs/zeromq-4.1.6 ) |
291 |
- zimg? ( >=media-libs/zimg-2.7.4:=[${MULTILIB_USEDEP}] ) |
292 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
293 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
294 |
- !media-video/qt-faststart |
295 |
- postproc? ( !media-libs/libpostproc ) |
296 |
-" |
297 |
- |
298 |
-# Crypto & co provider magic |
299 |
-# - libressl is a useflag meaning it should always favor libressl over openssl |
300 |
-# - libressl and openssl provide more features to ffmpeg than gnutls |
301 |
-# |
302 |
-# The ordering is thus: libressl > openssl > gnutls |
303 |
-RDEPEND="${RDEPEND} |
304 |
- libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
305 |
- !libressl? ( |
306 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
307 |
- !openssl? ( gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) ) |
308 |
- ) |
309 |
-" |
310 |
- |
311 |
-DEPEND="${RDEPEND} |
312 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
313 |
- v4l? ( sys-kernel/linux-headers ) |
314 |
-" |
315 |
-BDEPEND=" |
316 |
- >=sys-devel/make-3.81 |
317 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
318 |
- cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) |
319 |
- cuda? ( >=sys-devel/clang-7[llvm_targets_NVPTX] ) |
320 |
- doc? ( sys-apps/texinfo ) |
321 |
- test? ( net-misc/wget sys-devel/bc ) |
322 |
-" |
323 |
- |
324 |
-# Code requiring FFmpeg to be built under gpl license |
325 |
-GPL_REQUIRED_USE=" |
326 |
- postproc? ( gpl ) |
327 |
- frei0r? ( gpl ) |
328 |
- cdio? ( gpl ) |
329 |
- rubberband? ( gpl ) |
330 |
- samba? ( gpl ) |
331 |
- encode? ( |
332 |
- x264? ( gpl ) |
333 |
- x265? ( gpl ) |
334 |
- xvid? ( gpl ) |
335 |
- X? ( !xcb? ( gpl ) ) |
336 |
- ) |
337 |
-" |
338 |
-REQUIRED_USE=" |
339 |
- cuda? ( video_cards_nvidia ) |
340 |
- libv4l? ( v4l ) |
341 |
- fftools_cws2fws? ( zlib ) |
342 |
- test? ( encode ) |
343 |
- ${GPL_REQUIRED_USE} |
344 |
- ${CPU_REQUIRED_USE}" |
345 |
-RESTRICT=" |
346 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) libressl? ( bindist ) ) |
347 |
-" |
348 |
- |
349 |
-S=${WORKDIR}/${P/_/-} |
350 |
- |
351 |
-PATCHES=( |
352 |
- "${FILESDIR}"/chromium-r1.patch |
353 |
-) |
354 |
- |
355 |
-MULTILIB_WRAPPED_HEADERS=( |
356 |
- /usr/include/libavutil/avconfig.h |
357 |
-) |
358 |
- |
359 |
-build_separate_libffmpeg() { |
360 |
- use opencl |
361 |
-} |
362 |
- |
363 |
-src_prepare() { |
364 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
365 |
- export revision=git-N-${FFMPEG_REVISION} |
366 |
- fi |
367 |
- default |
368 |
- echo 'include $(SRC_PATH)/ffbuild/libffmpeg.mak' >> Makefile || die |
369 |
-} |
370 |
- |
371 |
-multilib_src_configure() { |
372 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
373 |
- |
374 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
375 |
- use openssl || use libressl && use gpl && myconf+=( --enable-nonfree ) |
376 |
- use samba && myconf+=( --enable-version3 ) |
377 |
- |
378 |
- # Encoders |
379 |
- if use encode ; then |
380 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
381 |
- |
382 |
- # Licensing. |
383 |
- if use amrenc ; then |
384 |
- myconf+=( --enable-version3 ) |
385 |
- fi |
386 |
- else |
387 |
- myconf+=( --disable-encoders ) |
388 |
- fi |
389 |
- |
390 |
- # Indevs |
391 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
392 |
- for i in alsa oss jack ; do |
393 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
394 |
- done |
395 |
- |
396 |
- # Outdevs |
397 |
- for i in alsa oss ; do |
398 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
399 |
- done |
400 |
- |
401 |
- # Decoders |
402 |
- use amr && myconf+=( --enable-version3 ) |
403 |
- use gmp && myconf+=( --enable-version3 ) |
404 |
- use libaribb24 && myconf+=( --enable-version3 ) |
405 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
406 |
- |
407 |
- for i in "${ffuse[@]#+}" ; do |
408 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
409 |
- done |
410 |
- |
411 |
- # Incompatible features: openssl or libressl and gnutls |
412 |
- if use libressl ; then |
413 |
- myconf+=( --disable-gnutls --disable-openssl ) |
414 |
- elif use openssl ; then |
415 |
- myconf+=( --disable-gnutls ) |
416 |
- fi |
417 |
- |
418 |
- # (temporarily) disable non-multilib deps |
419 |
- if ! multilib_is_native_abi; then |
420 |
- for i in frei0r libzmq ; do |
421 |
- myconf+=( --disable-${i} ) |
422 |
- done |
423 |
- fi |
424 |
- |
425 |
- # CPU features |
426 |
- for i in "${CPU_FEATURES_MAP[@]}" ; do |
427 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
428 |
- done |
429 |
- |
430 |
- if use pic ; then |
431 |
- myconf+=( --enable-pic ) |
432 |
- # disable asm code if PIC is required |
433 |
- # as the provided asm decidedly is not PIC for x86. |
434 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
435 |
- fi |
436 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
437 |
- |
438 |
- # Try to get cpu type based on CFLAGS. |
439 |
- # Bug #172723 |
440 |
- # We need to do this so that features of that CPU will be better used |
441 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
442 |
- # will just ignore it. |
443 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
444 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
445 |
- myconf+=( --cpu=${i} ) |
446 |
- break |
447 |
- done |
448 |
- |
449 |
- # LTO support, bug #566282 |
450 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
451 |
- |
452 |
- # Mandatory configuration |
453 |
- myconf=( |
454 |
- --enable-avfilter |
455 |
- --enable-avresample |
456 |
- --disable-stripping |
457 |
- # This is only for hardcoded cflags; those are used in configure checks that may |
458 |
- # interfere with proper detections, bug #671746 and bug #645778 |
459 |
- # We use optflags, so that overrides them anyway. |
460 |
- --disable-optimizations |
461 |
- --disable-libcelt # bug #664158 |
462 |
- "${myconf[@]}" |
463 |
- ) |
464 |
- |
465 |
- # cross compile support |
466 |
- if tc-is-cross-compiler ; then |
467 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) |
468 |
- case ${CHOST} in |
469 |
- *freebsd*) |
470 |
- myconf+=( --target-os=freebsd ) |
471 |
- ;; |
472 |
- *mingw32*) |
473 |
- myconf+=( --target-os=mingw32 ) |
474 |
- ;; |
475 |
- *linux*) |
476 |
- myconf+=( --target-os=linux ) |
477 |
- ;; |
478 |
- esac |
479 |
- fi |
480 |
- |
481 |
- # doc |
482 |
- myconf+=( |
483 |
- $(multilib_native_use_enable doc) |
484 |
- $(multilib_native_use_enable doc htmlpages) |
485 |
- $(multilib_native_enable manpages) |
486 |
- ) |
487 |
- |
488 |
- set -- "${S}/configure" \ |
489 |
- --prefix="${EPREFIX}/usr" \ |
490 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
491 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
492 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
493 |
- --mandir="${EPREFIX}/usr/share/man" \ |
494 |
- --enable-shared \ |
495 |
- --cc="$(tc-getCC)" \ |
496 |
- --cxx="$(tc-getCXX)" \ |
497 |
- --ar="$(tc-getAR)" \ |
498 |
- --optflags="${CFLAGS}" \ |
499 |
- $(use_enable static-libs static) \ |
500 |
- "${myconf[@]}" |
501 |
- echo "${@}" |
502 |
- "${@}" || die |
503 |
- |
504 |
- if multilib_is_native_abi && use chromium && build_separate_libffmpeg; then |
505 |
- einfo "Configuring for Chromium" |
506 |
- mkdir -p ../chromium || die |
507 |
- pushd ../chromium >/dev/null || die |
508 |
- set -- "${@}" \ |
509 |
- --disable-shared \ |
510 |
- --enable-static \ |
511 |
- --enable-pic \ |
512 |
- --disable-opencl |
513 |
- echo "${@}" |
514 |
- "${@}" || die |
515 |
- popd >/dev/null || die |
516 |
- fi |
517 |
-} |
518 |
- |
519 |
-multilib_src_compile() { |
520 |
- emake V=1 |
521 |
- |
522 |
- if multilib_is_native_abi; then |
523 |
- for i in "${FFTOOLS[@]}" ; do |
524 |
- if use fftools_${i} ; then |
525 |
- emake V=1 tools/${i}$(get_exeext) |
526 |
- fi |
527 |
- done |
528 |
- |
529 |
- if use chromium; then |
530 |
- if build_separate_libffmpeg; then |
531 |
- einfo "Compiling for Chromium" |
532 |
- pushd ../chromium >/dev/null || die |
533 |
- emake V=1 libffmpeg |
534 |
- popd >/dev/null || die |
535 |
- else |
536 |
- emake V=1 libffmpeg |
537 |
- fi |
538 |
- fi |
539 |
- fi |
540 |
-} |
541 |
- |
542 |
-multilib_src_install() { |
543 |
- emake V=1 DESTDIR="${D}" install install-doc |
544 |
- |
545 |
- if multilib_is_native_abi; then |
546 |
- for i in "${FFTOOLS[@]}" ; do |
547 |
- if use fftools_${i} ; then |
548 |
- dobin tools/${i}$(get_exeext) |
549 |
- fi |
550 |
- done |
551 |
- |
552 |
- if use chromium; then |
553 |
- if build_separate_libffmpeg; then |
554 |
- einfo "Installing for Chromium" |
555 |
- pushd ../chromium >/dev/null || die |
556 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
557 |
- popd >/dev/null || die |
558 |
- else |
559 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
560 |
- |
561 |
- # When not built separately, libffmpeg has no code of |
562 |
- # its own so this QA check raises a false positive. |
563 |
- QA_FLAGS_IGNORED+=" usr/$(get_libdir)/chromium/.*" |
564 |
- fi |
565 |
- fi |
566 |
- fi |
567 |
-} |
568 |
- |
569 |
-multilib_src_install_all() { |
570 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
571 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
572 |
-} |
573 |
- |
574 |
-multilib_src_test() { |
575 |
- 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" \ |
576 |
- emake V=1 fate |
577 |
-} |