1 |
commit: 8521ab42866802f1fa69122e97950ceae511635c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 7 17:06:24 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 7 17:07:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8521ab42 |
7 |
|
8 |
media-video/ffmpeg: cleanup old |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-video/ffmpeg/Manifest | 1 - |
14 |
media-video/ffmpeg/ffmpeg-4.3.ebuild | 557 ----------------------------------- |
15 |
2 files changed, 558 deletions(-) |
16 |
|
17 |
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest |
18 |
index a6066b59fb8..22616f7c4ca 100644 |
19 |
--- a/media-video/ffmpeg/Manifest |
20 |
+++ b/media-video/ffmpeg/Manifest |
21 |
@@ -2,4 +2,3 @@ DIST ffmpeg-4.2.2-ppc64-altivec.patch.gz 7171 BLAKE2B 6676dadb22d2ab4b0f5c19b418 |
22 |
DIST ffmpeg-4.2.2-ppc64-gcc.patch.gz 750 BLAKE2B 3a9cc7f0135e077c77179a7ca3da917bca3995d99d53b58221b23181a075f330132f83ea90a6110e89f90c7c3b5b2a7837559c5df414d9bd52dbb3ec166b1545 SHA512 701b0635e0819484a31de2062ba52d95ee03883ab56547cd75c3646a9b32bf3ecc7f719690b93f29202cfed0fdeecd26b51b9f3c66e72a999a3e8d9e97389275 |
23 |
DIST ffmpeg-4.2.4.tar.bz2 10959430 BLAKE2B 932bc0046edab5587063bbc04d6ef0149876bd1001ad185384fcabb3d0ae196c9ba591e680823b3c7b6e0ef9a0a9e9575a8b08439fdd89ef0e4dabb9d4a7f4e6 SHA512 5c74e3fe77ddf8ffede0e4692d574858dd0626e542380a819ab79c0f669c6c1329ffbccb872502f60306e561f10aa8bc1e61d09b2bea829870fe4a48b76460c6 |
24 |
DIST ffmpeg-4.3.1.tar.bz2 11301038 BLAKE2B 3b0eb332459921435b60e72f5c572034abf65d4ab79ef4cfae94fe594048eaa37eec47724d119863102a7211c2178f5a2382a6d4016b792818079b8241bde084 SHA512 831a187d8b8f2715a9f11c93c8d3ec126ff579d470797da452d3395178877de113af7ae90ed27fca0b223791ad257972570481e6dbb8361d2b7f3b010924bee8 |
25 |
-DIST ffmpeg-4.3.tar.bz2 11297005 BLAKE2B 41b4752aa2c1a937e4e82ec76ca38f48c1dcca633cb77f100aeb6c56f0acc218a39621d8b1046d38f65b3fa5b0871fea7ace16348266ca1244dd889620bc73ab SHA512 fdccd281407d5bed0f673ad01ddc9134cd9a31f040b55e30f3b27913b877732b9d19c6ceeda96afb360e1ff49f4930f6c320747b240cf38d541df81a8ef4272f |
26 |
|
27 |
diff --git a/media-video/ffmpeg/ffmpeg-4.3.ebuild b/media-video/ffmpeg/ffmpeg-4.3.ebuild |
28 |
deleted file mode 100644 |
29 |
index 8abd6793bed..00000000000 |
30 |
--- a/media-video/ffmpeg/ffmpeg-4.3.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,557 +0,0 @@ |
33 |
-# Copyright 1999-2020 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/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 ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
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 vulkan |
105 |
- X:xlib X:libxcb X:libxcb-shm X: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 libtesseract 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=( cpu_flags_ppc_altivec:altivec cpu_flags_ppc_vsx:vsx cpu_flags_ppc_vsx2:power8 ) |
163 |
-PPC_CPU_REQUIRED_USE=" |
164 |
- cpu_flags_ppc_vsx? ( cpu_flags_ppc_altivec ) |
165 |
- cpu_flags_ppc_vsx2? ( cpu_flags_ppc_vsx ) |
166 |
-" |
167 |
-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 ) |
168 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
169 |
-X86_CPU_REQUIRED_USE=" |
170 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
171 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
172 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
173 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
174 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
175 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
176 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
177 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
178 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
179 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
180 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
181 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
182 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
183 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
184 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
185 |
-" |
186 |
- |
187 |
-CPU_FEATURES_MAP=( |
188 |
- ${ARM_CPU_FEATURES[@]} |
189 |
- ${MIPS_CPU_FEATURES[@]} |
190 |
- ${PPC_CPU_FEATURES[@]} |
191 |
- ${X86_CPU_FEATURES[@]} |
192 |
-) |
193 |
-IUSE="${IUSE} |
194 |
- ${CPU_FEATURES_MAP[@]%:*}" |
195 |
- |
196 |
-CPU_REQUIRED_USE=" |
197 |
- ${ARM_CPU_REQUIRED_USE} |
198 |
- ${PPC_CPU_REQUIRED_USE} |
199 |
- ${X86_CPU_REQUIRED_USE} |
200 |
-" |
201 |
- |
202 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
203 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
204 |
- |
205 |
-RDEPEND=" |
206 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
207 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
208 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] ) |
209 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
210 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
211 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
212 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
213 |
- codec2? ( media-libs/codec2[${MULTILIB_USEDEP}] ) |
214 |
- dav1d? ( >=media-libs/dav1d-0.4.0:0=[${MULTILIB_USEDEP}] ) |
215 |
- encode? ( |
216 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
217 |
- kvazaar? ( >=media-libs/kvazaar-1.2.0[${MULTILIB_USEDEP}] ) |
218 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
219 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
220 |
- snappy? ( >=app-arch/snappy-1.1.2-r1:=[${MULTILIB_USEDEP}] ) |
221 |
- theora? ( |
222 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
223 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
224 |
- ) |
225 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
226 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
227 |
- webp? ( >=media-libs/libwebp-0.3.0:=[${MULTILIB_USEDEP}] ) |
228 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
229 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
230 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
231 |
- ) |
232 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
233 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
234 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
235 |
- frei0r? ( media-plugins/frei0r-plugins ) |
236 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
237 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
238 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
239 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
240 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
241 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
242 |
- iec61883? ( |
243 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
244 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
245 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
246 |
- ) |
247 |
- ieee1394? ( |
248 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
249 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
250 |
- ) |
251 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
252 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
253 |
- libaom? ( >=media-libs/libaom-1.0.0-r1:=[${MULTILIB_USEDEP}] ) |
254 |
- libaribb24? ( >=media-libs/aribb24-1.0.3-r2[${MULTILIB_USEDEP}] ) |
255 |
- libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) |
256 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
257 |
- libdrm? ( x11-libs/libdrm[${MULTILIB_USEDEP}] ) |
258 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
259 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
260 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
261 |
- libtesseract? ( >=app-text/tesseract-4.1.0-r1[${MULTILIB_USEDEP}] ) |
262 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
263 |
- libxml2? ( dev-libs/libxml2:=[${MULTILIB_USEDEP}] ) |
264 |
- lv2? ( media-libs/lv2[${MULTILIB_USEDEP}] media-libs/lilv[${MULTILIB_USEDEP}] ) |
265 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
266 |
- mmal? ( media-libs/raspberrypi-userland ) |
267 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
268 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
269 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
270 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
271 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
272 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
273 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
274 |
- samba? ( >=net-fs/samba-3.6.23-r1[client,${MULTILIB_USEDEP}] ) |
275 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
276 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
277 |
- srt? ( >=net-libs/srt-1.3.0[${MULTILIB_USEDEP}] ) |
278 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
279 |
- svg? ( gnome-base/librsvg:2=[${MULTILIB_USEDEP}] ) |
280 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
281 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1:0=[${MULTILIB_USEDEP}] ) |
282 |
- video_cards_nvidia? ( >=media-libs/nv-codec-headers-9.1.23.1[${MULTILIB_USEDEP}] ) |
283 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
284 |
- vidstab? ( >=media-libs/vidstab-1.1.0[${MULTILIB_USEDEP}] ) |
285 |
- vorbis? ( |
286 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
287 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
288 |
- ) |
289 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
290 |
- vulkan? ( >=media-libs/vulkan-loader-1.1.97:=[${MULTILIB_USEDEP}] ) |
291 |
- X? ( |
292 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
293 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
294 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
295 |
- >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] |
296 |
- ) |
297 |
- zeromq? ( >=net-libs/zeromq-4.1.6 ) |
298 |
- zimg? ( >=media-libs/zimg-2.7.4:=[${MULTILIB_USEDEP}] ) |
299 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
300 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
301 |
- postproc? ( !media-libs/libpostproc ) |
302 |
-" |
303 |
- |
304 |
-# Crypto & co provider magic |
305 |
-# - libressl is a useflag meaning it should always favor libressl over openssl |
306 |
-# - libressl and openssl provide more features to ffmpeg than gnutls |
307 |
-# |
308 |
-# The ordering is thus: libressl > openssl > gnutls |
309 |
-RDEPEND="${RDEPEND} |
310 |
- libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
311 |
- !libressl? ( |
312 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
313 |
- !openssl? ( gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) ) |
314 |
- ) |
315 |
-" |
316 |
- |
317 |
-DEPEND="${RDEPEND} |
318 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
319 |
- v4l? ( sys-kernel/linux-headers ) |
320 |
-" |
321 |
-BDEPEND=" |
322 |
- >=sys-devel/make-3.81 |
323 |
- virtual/pkgconfig |
324 |
- cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) |
325 |
- cuda? ( >=sys-devel/clang-7[llvm_targets_NVPTX] ) |
326 |
- doc? ( sys-apps/texinfo ) |
327 |
- test? ( net-misc/wget sys-devel/bc ) |
328 |
-" |
329 |
- |
330 |
-# Code requiring FFmpeg to be built under gpl license |
331 |
-GPL_REQUIRED_USE=" |
332 |
- postproc? ( gpl ) |
333 |
- frei0r? ( gpl ) |
334 |
- cdio? ( gpl ) |
335 |
- rubberband? ( gpl ) |
336 |
- vidstab? ( gpl ) |
337 |
- samba? ( gpl ) |
338 |
- encode? ( |
339 |
- x264? ( gpl ) |
340 |
- x265? ( gpl ) |
341 |
- xvid? ( gpl ) |
342 |
- ) |
343 |
-" |
344 |
-REQUIRED_USE=" |
345 |
- cuda? ( video_cards_nvidia ) |
346 |
- libv4l? ( v4l ) |
347 |
- fftools_cws2fws? ( zlib ) |
348 |
- test? ( encode ) |
349 |
- ${GPL_REQUIRED_USE} |
350 |
- ${CPU_REQUIRED_USE}" |
351 |
-RESTRICT=" |
352 |
- !test? ( test ) |
353 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) libressl? ( bindist ) ) |
354 |
-" |
355 |
- |
356 |
-S=${WORKDIR}/${P/_/-} |
357 |
- |
358 |
-PATCHES=( |
359 |
- "${FILESDIR}"/chromium-r1.patch |
360 |
- "${FILESDIR}"/${PN}-4.3-fix-build-without-SSSE3.patch |
361 |
-) |
362 |
- |
363 |
-MULTILIB_WRAPPED_HEADERS=( |
364 |
- /usr/include/libavutil/avconfig.h |
365 |
-) |
366 |
- |
367 |
-build_separate_libffmpeg() { |
368 |
- use opencl |
369 |
-} |
370 |
- |
371 |
-src_prepare() { |
372 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
373 |
- export revision=git-N-${FFMPEG_REVISION} |
374 |
- fi |
375 |
- default |
376 |
- echo 'include $(SRC_PATH)/ffbuild/libffmpeg.mak' >> Makefile || die |
377 |
-} |
378 |
- |
379 |
-multilib_src_configure() { |
380 |
- local myconf=( ) |
381 |
- |
382 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
383 |
- use openssl || use libressl && use gpl && myconf+=( --enable-nonfree ) |
384 |
- use samba && myconf+=( --enable-version3 ) |
385 |
- |
386 |
- # Encoders |
387 |
- if use encode ; then |
388 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
389 |
- |
390 |
- # Licensing. |
391 |
- if use amrenc ; then |
392 |
- myconf+=( --enable-version3 ) |
393 |
- fi |
394 |
- else |
395 |
- myconf+=( --disable-encoders ) |
396 |
- fi |
397 |
- |
398 |
- # Indevs |
399 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
400 |
- for i in alsa oss jack ; do |
401 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
402 |
- done |
403 |
- |
404 |
- # Outdevs |
405 |
- for i in alsa oss ; do |
406 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
407 |
- done |
408 |
- |
409 |
- # Decoders |
410 |
- use amr && myconf+=( --enable-version3 ) |
411 |
- use gmp && myconf+=( --enable-version3 ) |
412 |
- use libaribb24 && myconf+=( --enable-version3 ) |
413 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
414 |
- |
415 |
- for i in "${ffuse[@]#+}" ; do |
416 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
417 |
- done |
418 |
- |
419 |
- # Incompatible features: openssl or libressl and gnutls |
420 |
- if use libressl ; then |
421 |
- myconf+=( --disable-gnutls --disable-openssl ) |
422 |
- elif use openssl ; then |
423 |
- myconf+=( --disable-gnutls ) |
424 |
- fi |
425 |
- |
426 |
- # (temporarily) disable non-multilib deps |
427 |
- if ! multilib_is_native_abi; then |
428 |
- for i in frei0r libzmq ; do |
429 |
- myconf+=( --disable-${i} ) |
430 |
- done |
431 |
- fi |
432 |
- |
433 |
- # CPU features |
434 |
- for i in "${CPU_FEATURES_MAP[@]}" ; do |
435 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
436 |
- done |
437 |
- |
438 |
- if use pic ; then |
439 |
- myconf+=( --enable-pic ) |
440 |
- # disable asm code if PIC is required |
441 |
- # as the provided asm decidedly is not PIC for x86. |
442 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
443 |
- fi |
444 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
445 |
- |
446 |
- # Try to get cpu type based on CFLAGS. |
447 |
- # Bug #172723 |
448 |
- # We need to do this so that features of that CPU will be better used |
449 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
450 |
- # will just ignore it. |
451 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
452 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
453 |
- myconf+=( --cpu=${i} ) |
454 |
- break |
455 |
- done |
456 |
- |
457 |
- # LTO support, bug #566282 |
458 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
459 |
- |
460 |
- # Mandatory configuration |
461 |
- myconf=( |
462 |
- --enable-avfilter |
463 |
- --enable-avresample |
464 |
- --disable-stripping |
465 |
- # This is only for hardcoded cflags; those are used in configure checks that may |
466 |
- # interfere with proper detections, bug #671746 and bug #645778 |
467 |
- # We use optflags, so that overrides them anyway. |
468 |
- --disable-optimizations |
469 |
- --disable-libcelt # bug #664158 |
470 |
- "${myconf[@]}" |
471 |
- ) |
472 |
- |
473 |
- # cross compile support |
474 |
- if tc-is-cross-compiler ; then |
475 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) |
476 |
- case ${CHOST} in |
477 |
- *freebsd*) |
478 |
- myconf+=( --target-os=freebsd ) |
479 |
- ;; |
480 |
- *mingw32*) |
481 |
- myconf+=( --target-os=mingw32 ) |
482 |
- ;; |
483 |
- *linux*) |
484 |
- myconf+=( --target-os=linux ) |
485 |
- ;; |
486 |
- esac |
487 |
- fi |
488 |
- |
489 |
- # doc |
490 |
- myconf+=( |
491 |
- $(multilib_native_use_enable doc) |
492 |
- $(multilib_native_use_enable doc htmlpages) |
493 |
- $(multilib_native_enable manpages) |
494 |
- ) |
495 |
- |
496 |
- set -- "${S}/configure" \ |
497 |
- --prefix="${EPREFIX}/usr" \ |
498 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
499 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
500 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
501 |
- --mandir="${EPREFIX}/usr/share/man" \ |
502 |
- --enable-shared \ |
503 |
- --cc="$(tc-getCC)" \ |
504 |
- --cxx="$(tc-getCXX)" \ |
505 |
- --ar="$(tc-getAR)" \ |
506 |
- --nm="$(tc-getNM)" \ |
507 |
- --ranlib="$(tc-getRANLIB)" \ |
508 |
- --pkg-config="$(tc-getPKG_CONFIG)" \ |
509 |
- --optflags="${CFLAGS}" \ |
510 |
- $(use_enable static-libs static) \ |
511 |
- "${myconf[@]}" \ |
512 |
- ${EXTRA_FFMPEG_CONF} |
513 |
- echo "${@}" |
514 |
- "${@}" || die |
515 |
- |
516 |
- if multilib_is_native_abi && use chromium && build_separate_libffmpeg; then |
517 |
- einfo "Configuring for Chromium" |
518 |
- mkdir -p ../chromium || die |
519 |
- pushd ../chromium >/dev/null || die |
520 |
- set -- "${@}" \ |
521 |
- --disable-shared \ |
522 |
- --enable-static \ |
523 |
- --enable-pic \ |
524 |
- --disable-opencl |
525 |
- echo "${@}" |
526 |
- "${@}" || die |
527 |
- popd >/dev/null || die |
528 |
- fi |
529 |
-} |
530 |
- |
531 |
-multilib_src_compile() { |
532 |
- emake V=1 |
533 |
- |
534 |
- if multilib_is_native_abi; then |
535 |
- for i in "${FFTOOLS[@]}" ; do |
536 |
- if use fftools_${i} ; then |
537 |
- emake V=1 tools/${i}$(get_exeext) |
538 |
- fi |
539 |
- done |
540 |
- |
541 |
- if use chromium; then |
542 |
- if build_separate_libffmpeg; then |
543 |
- einfo "Compiling for Chromium" |
544 |
- pushd ../chromium >/dev/null || die |
545 |
- emake V=1 libffmpeg |
546 |
- popd >/dev/null || die |
547 |
- else |
548 |
- emake V=1 libffmpeg |
549 |
- fi |
550 |
- fi |
551 |
- fi |
552 |
-} |
553 |
- |
554 |
-multilib_src_install() { |
555 |
- emake V=1 DESTDIR="${D}" install install-doc |
556 |
- |
557 |
- if multilib_is_native_abi; then |
558 |
- for i in "${FFTOOLS[@]}" ; do |
559 |
- if use fftools_${i} ; then |
560 |
- dobin tools/${i}$(get_exeext) |
561 |
- fi |
562 |
- done |
563 |
- |
564 |
- if use chromium; then |
565 |
- if build_separate_libffmpeg; then |
566 |
- einfo "Installing for Chromium" |
567 |
- pushd ../chromium >/dev/null || die |
568 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
569 |
- popd >/dev/null || die |
570 |
- else |
571 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
572 |
- |
573 |
- # When not built separately, libffmpeg has no code of |
574 |
- # its own so this QA check raises a false positive. |
575 |
- QA_FLAGS_IGNORED+=" usr/$(get_libdir)/chromium/.*" |
576 |
- fi |
577 |
- fi |
578 |
- fi |
579 |
-} |
580 |
- |
581 |
-multilib_src_install_all() { |
582 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
583 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
584 |
-} |
585 |
- |
586 |
-multilib_src_test() { |
587 |
- 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" \ |
588 |
- emake V=1 fate |
589 |
-} |