1 |
commit: bbef43a06aa93bf7a6bd3cfd4c5694e51183724e |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 13 15:08:13 2019 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 13 15:18:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbef43a0 |
7 |
|
8 |
media-video/ffmpeg: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
media-video/ffmpeg/Manifest | 3 - |
14 |
media-video/ffmpeg/ffmpeg-4.0.2.ebuild | 522 -------------------- |
15 |
media-video/ffmpeg/ffmpeg-4.0.3.ebuild | 523 -------------------- |
16 |
media-video/ffmpeg/ffmpeg-4.1.ebuild | 528 --------------------- |
17 |
.../ffmpeg/files/ffmpeg-4.1-vaapi-tools.patch | 27 -- |
18 |
5 files changed, 1603 deletions(-) |
19 |
|
20 |
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest |
21 |
index ea1b277291f..dac93f02dbb 100644 |
22 |
--- a/media-video/ffmpeg/Manifest |
23 |
+++ b/media-video/ffmpeg/Manifest |
24 |
@@ -4,7 +4,4 @@ DIST ffmpeg-3.3.4.tar.bz2 9944256 BLAKE2B 72d42a16396882b30641fb057bb597f8e98ecf |
25 |
DIST ffmpeg-3.3.6.tar.bz2 9943322 BLAKE2B 2526fdf9580045131426e554a9bf44fdc6567c12213ea4d5b78aa27f14513f14e07f38b8380183686fa1a62440fe4108eaecddca96f4dec3c74c410b1f90ee03 SHA512 1305760fa981bcb43c8fcb5dd1bf7dd8d3f405a124975f062062b741d49e12386e4d3eec3de6a032fc93cd7f6086d939275a669a9997ffa400f70c20f7eb3d23 |
26 |
DIST ffmpeg-3.3.8.tar.bz2 9953307 BLAKE2B edd3c2ce9730494455a05ec9d81b6c2ceb0ebf526124f95a530214cdb113ffe91aa13b80a66501aefa4f571c5b8f2eedb97f8086370d08e3b4e2a98d517eb92b SHA512 a793f6d0a06ff5244a580d9e54e1252d3ac88e2513dad4d137081103327ae4440ebe9b0d60a13f93536cb6b35097982ea76acc4056bfa31683063eef5c211ede |
27 |
DIST ffmpeg-3.4.5.tar.bz2 10183082 BLAKE2B f72157baefcd6a0ca8f389309bbe947ad21996e0f2eb3c46c6bfc90f1ebbb14bfd007d001e46ea51efef5db5f9fcee24b1a90b6862136aeebecdc95bb61b23a5 SHA512 e12707d47404a9ce02790b77d2852fc1a1573c8108e980c7355fa48ba891d1649464d4fe4d08394ecd6d871f651ac4388486b7654cb54a7aaeedaf05c55513ec |
28 |
-DIST ffmpeg-4.0.2.tar.bz2 10424065 BLAKE2B 0d3e072fa31bfae37722d8113f9c9cfd2071067b2a29ed5c7332ae49b388b91e8646b6bc8a816517bcebcdcc8d923d1e8b5a080dbdc63ea2a153aea8ecfb2af9 SHA512 92a3bedcd070df72b26dbe3ebf4a3faea0a02289fbefdb6a6c73d65801cf60a7e11cd832d29ab46b7749a1ffd0a31505cf75bb46bd01ea06423b454ca04e9b7b |
29 |
-DIST ffmpeg-4.0.3.tar.bz2 10425117 BLAKE2B 1517d66d5a0c931b866df5206ae660a01daf49d375f7750a7b027ce62ab7dc8131fc02b8a6320e5ff7295b9bccdafbbaf25e206c55fad420ea206c1b9638e777 SHA512 8d600adf55f2fc1574a7013700129766a4a3db83bb33ec32fe07759310f1d8804c00e74b58fd1fcbdd91efec214764e4b2fadf7b01c948dc2ccdcd1b4d56e303 |
30 |
DIST ffmpeg-4.1.1.tar.bz2 10686360 BLAKE2B 47f4716d7e184d7318eb1a99ab1cdc188009464e973162e583f7ca4ae79fa3b103f9d5329c8993b72d20667e42e5a749123709a4640f07762568300b5c3c897f SHA512 0241c44e1dffd0d890a3d30a1b2387ea167d578bb39ba0c804fb417e132d343a9e43da9247b205e18b893d8cf75d8528e9971569be67ac380b88618ef0a75ed4 |
31 |
-DIST ffmpeg-4.1.tar.bz2 10687291 BLAKE2B 07293af1b13c6c6cad72e368207db21bdbc4b991931166c24ff40b00c3b3c8e1242be1876af8e3f154cc840fcd90d87b762fe77faccf06936dd096478d5d074b SHA512 ccf6d07268dc47e08ca619eb182a003face2a8ee73ec1a28157330dd7de1df88939def1fc1c7e6b6ac7b59752cdad84657d589b2fafb73e14e5ef03fb6e33417 |
32 |
|
33 |
diff --git a/media-video/ffmpeg/ffmpeg-4.0.2.ebuild b/media-video/ffmpeg/ffmpeg-4.0.2.ebuild |
34 |
deleted file mode 100644 |
35 |
index 4cb26fd9047..00000000000 |
36 |
--- a/media-video/ffmpeg/ffmpeg-4.0.2.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,522 +0,0 @@ |
39 |
-# Copyright 1999-2018 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=6 |
43 |
- |
44 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
45 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
46 |
-# Most consumers will use those three libraries, if a "less used" library |
47 |
-# changes its soname, consumers will have to be rebuilt the old way |
48 |
-# (preserve-libs). |
49 |
-# If, for example, a package does not link to libavformat and only libavformat |
50 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
51 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
52 |
-# doing so since such a case is unlikely. |
53 |
-FFMPEG_SUBSLOT=56.58.58 |
54 |
- |
55 |
-SCM="" |
56 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
57 |
- SCM="git-r3" |
58 |
- EGIT_MIN_CLONE_TYPE="single" |
59 |
- EGIT_REPO_URI="https://git.ffmpeg.org/ffmpeg.git" |
60 |
-fi |
61 |
- |
62 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
63 |
- |
64 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
65 |
-HOMEPAGE="http://ffmpeg.org/" |
66 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
67 |
- SRC_URI="" |
68 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
69 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
70 |
-else # Release |
71 |
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
72 |
-fi |
73 |
-FFMPEG_REVISION="${PV#*_p}" |
74 |
- |
75 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
76 |
-LICENSE=" |
77 |
- !gpl? ( LGPL-2.1 ) |
78 |
- gpl? ( GPL-2 ) |
79 |
- amr? ( |
80 |
- gpl? ( GPL-3 ) |
81 |
- !gpl? ( LGPL-3 ) |
82 |
- ) |
83 |
- gmp? ( |
84 |
- gpl? ( GPL-3 ) |
85 |
- !gpl? ( LGPL-3 ) |
86 |
- ) |
87 |
- encode? ( |
88 |
- amrenc? ( |
89 |
- gpl? ( GPL-3 ) |
90 |
- !gpl? ( LGPL-3 ) |
91 |
- ) |
92 |
- ) |
93 |
- samba? ( GPL-3 ) |
94 |
-" |
95 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
96 |
- KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
97 |
-fi |
98 |
- |
99 |
-# Options to use as use_enable in the foo[:bar] form. |
100 |
-# This will feed configure with $(use_enable foo bar) |
101 |
-# or $(use_enable foo foo) if no :bar is set. |
102 |
-# foo is added to IUSE. |
103 |
-FFMPEG_FLAG_MAP=( |
104 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
105 |
- +gpl +hardcoded-tables +iconv libressl:libtls lzma +network opencl |
106 |
- openssl +postproc samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau |
107 |
- X:xlib xcb:libxcb xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
108 |
- # libavdevice options |
109 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
110 |
- opengl |
111 |
- # indevs |
112 |
- libv4l:libv4l2 pulseaudio:libpulse libdrm |
113 |
- # decoders |
114 |
- amr:libopencore-amrwb amr:libopencore-amrnb codec2:libcodec2 fdk:libfdk-aac |
115 |
- jpeg2k:libopenjpeg bluray:libbluray gme:libgme gsm:libgsm |
116 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
117 |
- speex:libspeex svg:librsvg video_cards_nvidia:ffnvcodec |
118 |
- vorbis:libvorbis vpx:libvpx zvbi:libzvbi |
119 |
- # libavfilter options |
120 |
- appkit |
121 |
- bs2b:libbs2b chromaprint flite:libflite frei0r |
122 |
- fribidi:libfribidi fontconfig ladspa libass lv2 truetype:libfreetype |
123 |
- rubberband:librubberband zeromq:libzmq zimg:libzimg |
124 |
- # libswresample options |
125 |
- libsoxr |
126 |
- # Threads; we only support pthread for now but ffmpeg supports more |
127 |
- +threads:pthreads |
128 |
-) |
129 |
- |
130 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
131 |
-FFMPEG_ENCODER_FLAG_MAP=( |
132 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
133 |
- kvazaar:libkvazaar libaom |
134 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
135 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
136 |
-) |
137 |
- |
138 |
-IUSE=" |
139 |
- alsa chromium doc +encode jack oss pic static-libs test v4l |
140 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
141 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
142 |
-" |
143 |
- |
144 |
-# Strings for CPU features in the useflag[:configure_option] form |
145 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
146 |
-ARM_CPU_FEATURES=( |
147 |
- cpu_flags_arm_thumb:armv5te |
148 |
- cpu_flags_arm_v6:armv6 |
149 |
- cpu_flags_arm_thumb2:armv6t2 |
150 |
- cpu_flags_arm_neon:neon |
151 |
- cpu_flags_arm_vfp:vfp |
152 |
- cpu_flags_arm_vfpv3:vfpv3 |
153 |
- cpu_flags_arm_v8:armv8 |
154 |
-) |
155 |
-ARM_CPU_REQUIRED_USE=" |
156 |
- arm64? ( cpu_flags_arm_v8 ) |
157 |
- cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3 cpu_flags_arm_neon ) |
158 |
- cpu_flags_arm_neon? ( cpu_flags_arm_thumb2 cpu_flags_arm_vfp ) |
159 |
- cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp ) |
160 |
- cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) |
161 |
- cpu_flags_arm_v6? ( cpu_flags_arm_thumb ) |
162 |
-" |
163 |
-MIPS_CPU_FEATURES=( mipsdspr1:mipsdsp mipsdspr2 mipsfpu ) |
164 |
-PPC_CPU_FEATURES=( altivec ) |
165 |
-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 ) |
166 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
167 |
-X86_CPU_REQUIRED_USE=" |
168 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
169 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
170 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
171 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
172 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
173 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
174 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
175 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
176 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
177 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
178 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
179 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
180 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
181 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
182 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
183 |
-" |
184 |
- |
185 |
-CPU_FEATURES_MAP=( |
186 |
- ${ARM_CPU_FEATURES[@]} |
187 |
- ${MIPS_CPU_FEATURES[@]} |
188 |
- ${PPC_CPU_FEATURES[@]} |
189 |
- ${X86_CPU_FEATURES[@]} |
190 |
-) |
191 |
-IUSE="${IUSE} |
192 |
- ${CPU_FEATURES_MAP[@]%:*}" |
193 |
- |
194 |
-CPU_REQUIRED_USE=" |
195 |
- ${ARM_CPU_REQUIRED_USE} |
196 |
- ${X86_CPU_REQUIRED_USE} |
197 |
-" |
198 |
- |
199 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
200 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
201 |
- |
202 |
-RDEPEND=" |
203 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
204 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
205 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] ) |
206 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
207 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
208 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
209 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
210 |
- codec2? ( media-libs/codec2[${MULTILIB_USEDEP}] ) |
211 |
- encode? ( |
212 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
213 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
214 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
215 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
216 |
- snappy? ( >=app-arch/snappy-1.1.2-r1:=[${MULTILIB_USEDEP}] ) |
217 |
- theora? ( |
218 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
219 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
220 |
- ) |
221 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
222 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
223 |
- webp? ( >=media-libs/libwebp-0.3.0:=[${MULTILIB_USEDEP}] ) |
224 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
225 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
226 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
227 |
- ) |
228 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
229 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
230 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
231 |
- frei0r? ( media-plugins/frei0r-plugins ) |
232 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
233 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
234 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
235 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
236 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
237 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
238 |
- iec61883? ( |
239 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
240 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
241 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
242 |
- ) |
243 |
- ieee1394? ( |
244 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
245 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
246 |
- ) |
247 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
248 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
249 |
- libaom? ( media-libs/libaom[${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 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
255 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
256 |
- lv2? ( media-libs/lv2[${MULTILIB_USEDEP}] media-libs/lilv[${MULTILIB_USEDEP}] ) |
257 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
258 |
- mmal? ( media-libs/raspberrypi-userland ) |
259 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
260 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
261 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
262 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
263 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
264 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
265 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
266 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
267 |
- samba? ( >=net-fs/samba-3.6.23-r1[client,${MULTILIB_USEDEP}] ) |
268 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
269 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
270 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
271 |
- svg? ( gnome-base/librsvg:2=[${MULTILIB_USEDEP}] ) |
272 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
273 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
274 |
- video_cards_nvidia? ( media-libs/nv-codec-headers[${MULTILIB_USEDEP}] ) |
275 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
276 |
- vorbis? ( |
277 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
278 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
279 |
- ) |
280 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
281 |
- X? ( |
282 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
283 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
284 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
285 |
- ) |
286 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
287 |
- zeromq? ( >=net-libs/zeromq-4.1.6 ) |
288 |
- zimg? ( >=media-libs/zimg-2.7.4:=[${MULTILIB_USEDEP}] ) |
289 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
290 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
291 |
- !media-video/qt-faststart |
292 |
- postproc? ( !media-libs/libpostproc ) |
293 |
-" |
294 |
- |
295 |
-# Crypto & co provider magic |
296 |
-# - libressl is a useflag meaning it should always favor libressl over openssl |
297 |
-# - libressl and openssl provide more features to ffmpeg than gnutls |
298 |
-# |
299 |
-# The ordering is thus: libressl > openssl > gnutls |
300 |
-RDEPEND="${RDEPEND} |
301 |
- libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
302 |
- !libressl? ( |
303 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
304 |
- !openssl? ( gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) ) |
305 |
- ) |
306 |
-" |
307 |
- |
308 |
-DEPEND="${RDEPEND} |
309 |
- >=sys-devel/make-3.81 |
310 |
- doc? ( sys-apps/texinfo ) |
311 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
312 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
313 |
- cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) |
314 |
- test? ( net-misc/wget sys-devel/bc ) |
315 |
- v4l? ( sys-kernel/linux-headers ) |
316 |
-" |
317 |
- |
318 |
-# Code requiring FFmpeg to be built under gpl license |
319 |
-GPL_REQUIRED_USE=" |
320 |
- postproc? ( gpl ) |
321 |
- frei0r? ( gpl ) |
322 |
- cdio? ( gpl ) |
323 |
- samba? ( gpl ) |
324 |
- encode? ( |
325 |
- x264? ( gpl ) |
326 |
- x265? ( gpl ) |
327 |
- xvid? ( gpl ) |
328 |
- X? ( !xcb? ( gpl ) ) |
329 |
- ) |
330 |
-" |
331 |
-REQUIRED_USE=" |
332 |
- libv4l? ( v4l ) |
333 |
- fftools_cws2fws? ( zlib ) |
334 |
- test? ( encode ) |
335 |
- ${GPL_REQUIRED_USE} |
336 |
- ${CPU_REQUIRED_USE}" |
337 |
-RESTRICT=" |
338 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) libressl? ( bindist ) ) |
339 |
-" |
340 |
- |
341 |
-S=${WORKDIR}/${P/_/-} |
342 |
- |
343 |
-PATCHES=( |
344 |
- "${FILESDIR}"/chromium-r1.patch |
345 |
-) |
346 |
- |
347 |
-MULTILIB_WRAPPED_HEADERS=( |
348 |
- /usr/include/libavutil/avconfig.h |
349 |
-) |
350 |
- |
351 |
-build_separate_libffmpeg() { |
352 |
- use opencl |
353 |
-} |
354 |
- |
355 |
-src_prepare() { |
356 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
357 |
- export revision=git-N-${FFMPEG_REVISION} |
358 |
- fi |
359 |
- default |
360 |
- echo 'include $(SRC_PATH)/ffbuild/libffmpeg.mak' >> Makefile || die |
361 |
-} |
362 |
- |
363 |
-multilib_src_configure() { |
364 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
365 |
- |
366 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
367 |
- use openssl || use libressl && use gpl && myconf+=( --enable-nonfree ) |
368 |
- use samba && myconf+=( --enable-version3 ) |
369 |
- |
370 |
- # Encoders |
371 |
- if use encode ; then |
372 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
373 |
- |
374 |
- # Licensing. |
375 |
- if use amrenc ; then |
376 |
- myconf+=( --enable-version3 ) |
377 |
- fi |
378 |
- else |
379 |
- myconf+=( --disable-encoders ) |
380 |
- fi |
381 |
- |
382 |
- # Indevs |
383 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
384 |
- for i in alsa oss jack ; do |
385 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
386 |
- done |
387 |
- |
388 |
- # Outdevs |
389 |
- for i in alsa oss sdl ; do |
390 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
391 |
- done |
392 |
- |
393 |
- # Decoders |
394 |
- use amr && myconf+=( --enable-version3 ) |
395 |
- use gmp && myconf+=( --enable-version3 ) |
396 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
397 |
- |
398 |
- for i in "${ffuse[@]#+}" ; do |
399 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
400 |
- done |
401 |
- |
402 |
- # Incompatible features: openssl or libressl and gnutls |
403 |
- if use libressl ; then |
404 |
- myconf+=( --disable-gnutls --disable-openssl ) |
405 |
- elif use openssl ; then |
406 |
- myconf+=( --disable-gnutls ) |
407 |
- fi |
408 |
- |
409 |
- # (temporarily) disable non-multilib deps |
410 |
- if ! multilib_is_native_abi; then |
411 |
- for i in frei0r libzmq ; do |
412 |
- myconf+=( --disable-${i} ) |
413 |
- done |
414 |
- fi |
415 |
- |
416 |
- # CPU features |
417 |
- for i in "${CPU_FEATURES_MAP[@]}" ; do |
418 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
419 |
- done |
420 |
- |
421 |
- if use pic ; then |
422 |
- myconf+=( --enable-pic ) |
423 |
- # disable asm code if PIC is required |
424 |
- # as the provided asm decidedly is not PIC for x86. |
425 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
426 |
- fi |
427 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
428 |
- |
429 |
- # Try to get cpu type based on CFLAGS. |
430 |
- # Bug #172723 |
431 |
- # We need to do this so that features of that CPU will be better used |
432 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
433 |
- # will just ignore it. |
434 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
435 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
436 |
- myconf+=( --cpu=${i} ) |
437 |
- break |
438 |
- done |
439 |
- |
440 |
- # LTO support, bug #566282 |
441 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
442 |
- |
443 |
- # Mandatory configuration |
444 |
- myconf=( |
445 |
- --enable-avfilter |
446 |
- --enable-avresample |
447 |
- --disable-stripping |
448 |
- --disable-libcelt # bug #664158 |
449 |
- "${myconf[@]}" |
450 |
- ) |
451 |
- |
452 |
- # cross compile support |
453 |
- if tc-is-cross-compiler ; then |
454 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) |
455 |
- case ${CHOST} in |
456 |
- *freebsd*) |
457 |
- myconf+=( --target-os=freebsd ) |
458 |
- ;; |
459 |
- *mingw32*) |
460 |
- myconf+=( --target-os=mingw32 ) |
461 |
- ;; |
462 |
- *linux*) |
463 |
- myconf+=( --target-os=linux ) |
464 |
- ;; |
465 |
- esac |
466 |
- fi |
467 |
- |
468 |
- # doc |
469 |
- myconf+=( |
470 |
- $(multilib_native_use_enable doc) |
471 |
- $(multilib_native_use_enable doc htmlpages) |
472 |
- $(multilib_native_enable manpages) |
473 |
- ) |
474 |
- |
475 |
- set -- "${S}/configure" \ |
476 |
- --prefix="${EPREFIX}/usr" \ |
477 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
478 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
479 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
480 |
- --mandir="${EPREFIX}/usr/share/man" \ |
481 |
- --enable-shared \ |
482 |
- --cc="$(tc-getCC)" \ |
483 |
- --cxx="$(tc-getCXX)" \ |
484 |
- --ar="$(tc-getAR)" \ |
485 |
- --optflags="${CFLAGS}" \ |
486 |
- $(use_enable static-libs static) \ |
487 |
- "${myconf[@]}" |
488 |
- echo "${@}" |
489 |
- "${@}" || die |
490 |
- |
491 |
- if multilib_is_native_abi && use chromium && build_separate_libffmpeg; then |
492 |
- einfo "Configuring for Chromium" |
493 |
- mkdir -p ../chromium || die |
494 |
- pushd ../chromium >/dev/null || die |
495 |
- set -- "${@}" \ |
496 |
- --disable-shared \ |
497 |
- --enable-static \ |
498 |
- --enable-pic \ |
499 |
- --disable-opencl |
500 |
- echo "${@}" |
501 |
- "${@}" || die |
502 |
- popd >/dev/null || die |
503 |
- fi |
504 |
-} |
505 |
- |
506 |
-multilib_src_compile() { |
507 |
- emake V=1 |
508 |
- |
509 |
- if multilib_is_native_abi; then |
510 |
- for i in "${FFTOOLS[@]}" ; do |
511 |
- if use fftools_${i} ; then |
512 |
- emake V=1 tools/${i}$(get_exeext) |
513 |
- fi |
514 |
- done |
515 |
- |
516 |
- if use chromium; then |
517 |
- if build_separate_libffmpeg; then |
518 |
- einfo "Compiling for Chromium" |
519 |
- pushd ../chromium >/dev/null || die |
520 |
- emake V=1 libffmpeg |
521 |
- popd >/dev/null || die |
522 |
- else |
523 |
- emake V=1 libffmpeg |
524 |
- fi |
525 |
- fi |
526 |
- fi |
527 |
-} |
528 |
- |
529 |
-multilib_src_install() { |
530 |
- emake V=1 DESTDIR="${D}" install install-doc |
531 |
- |
532 |
- if multilib_is_native_abi; then |
533 |
- for i in "${FFTOOLS[@]}" ; do |
534 |
- if use fftools_${i} ; then |
535 |
- dobin tools/${i}$(get_exeext) |
536 |
- fi |
537 |
- done |
538 |
- |
539 |
- if use chromium; then |
540 |
- if build_separate_libffmpeg; then |
541 |
- einfo "Installing for Chromium" |
542 |
- pushd ../chromium >/dev/null || die |
543 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
544 |
- popd >/dev/null || die |
545 |
- else |
546 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
547 |
- fi |
548 |
- fi |
549 |
- fi |
550 |
-} |
551 |
- |
552 |
-multilib_src_install_all() { |
553 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
554 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
555 |
-} |
556 |
- |
557 |
-multilib_src_test() { |
558 |
- 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" \ |
559 |
- emake V=1 fate |
560 |
-} |
561 |
|
562 |
diff --git a/media-video/ffmpeg/ffmpeg-4.0.3.ebuild b/media-video/ffmpeg/ffmpeg-4.0.3.ebuild |
563 |
deleted file mode 100644 |
564 |
index 8e011cb6e0b..00000000000 |
565 |
--- a/media-video/ffmpeg/ffmpeg-4.0.3.ebuild |
566 |
+++ /dev/null |
567 |
@@ -1,523 +0,0 @@ |
568 |
-# Copyright 1999-2018 Gentoo Authors |
569 |
-# Distributed under the terms of the GNU General Public License v2 |
570 |
- |
571 |
-EAPI=6 |
572 |
- |
573 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
574 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
575 |
-# Most consumers will use those three libraries, if a "less used" library |
576 |
-# changes its soname, consumers will have to be rebuilt the old way |
577 |
-# (preserve-libs). |
578 |
-# If, for example, a package does not link to libavformat and only libavformat |
579 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
580 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
581 |
-# doing so since such a case is unlikely. |
582 |
-FFMPEG_SUBSLOT=56.58.58 |
583 |
- |
584 |
-SCM="" |
585 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
586 |
- SCM="git-r3" |
587 |
- EGIT_MIN_CLONE_TYPE="single" |
588 |
- EGIT_REPO_URI="https://git.ffmpeg.org/ffmpeg.git" |
589 |
-fi |
590 |
- |
591 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
592 |
- |
593 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
594 |
-HOMEPAGE="https://ffmpeg.org/" |
595 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
596 |
- SRC_URI="" |
597 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
598 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
599 |
-else # Release |
600 |
- SRC_URI="https://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
601 |
-fi |
602 |
-FFMPEG_REVISION="${PV#*_p}" |
603 |
- |
604 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
605 |
-LICENSE=" |
606 |
- !gpl? ( LGPL-2.1 ) |
607 |
- gpl? ( GPL-2 ) |
608 |
- amr? ( |
609 |
- gpl? ( GPL-3 ) |
610 |
- !gpl? ( LGPL-3 ) |
611 |
- ) |
612 |
- gmp? ( |
613 |
- gpl? ( GPL-3 ) |
614 |
- !gpl? ( LGPL-3 ) |
615 |
- ) |
616 |
- encode? ( |
617 |
- amrenc? ( |
618 |
- gpl? ( GPL-3 ) |
619 |
- !gpl? ( LGPL-3 ) |
620 |
- ) |
621 |
- ) |
622 |
- samba? ( GPL-3 ) |
623 |
-" |
624 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
625 |
- KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
626 |
-fi |
627 |
- |
628 |
-# Options to use as use_enable in the foo[:bar] form. |
629 |
-# This will feed configure with $(use_enable foo bar) |
630 |
-# or $(use_enable foo foo) if no :bar is set. |
631 |
-# foo is added to IUSE. |
632 |
-FFMPEG_FLAG_MAP=( |
633 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
634 |
- +gpl +hardcoded-tables +iconv libressl:libtls lzma +network opencl |
635 |
- openssl +postproc samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau |
636 |
- X:xlib xcb:libxcb xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
637 |
- # libavdevice options |
638 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
639 |
- opengl |
640 |
- # indevs |
641 |
- libv4l:libv4l2 pulseaudio:libpulse libdrm jack:libjack |
642 |
- # decoders |
643 |
- amr:libopencore-amrwb amr:libopencore-amrnb codec2:libcodec2 fdk:libfdk-aac |
644 |
- jpeg2k:libopenjpeg bluray:libbluray gme:libgme gsm:libgsm |
645 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
646 |
- speex:libspeex srt:libsrt svg:librsvg video_cards_nvidia:ffnvcodec |
647 |
- vorbis:libvorbis vpx:libvpx zvbi:libzvbi |
648 |
- # libavfilter options |
649 |
- appkit |
650 |
- bs2b:libbs2b chromaprint flite:libflite frei0r |
651 |
- fribidi:libfribidi fontconfig ladspa libass lv2 truetype:libfreetype |
652 |
- rubberband:librubberband zeromq:libzmq zimg:libzimg |
653 |
- # libswresample options |
654 |
- libsoxr |
655 |
- # Threads; we only support pthread for now but ffmpeg supports more |
656 |
- +threads:pthreads |
657 |
-) |
658 |
- |
659 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
660 |
-FFMPEG_ENCODER_FLAG_MAP=( |
661 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
662 |
- kvazaar:libkvazaar libaom |
663 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
664 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
665 |
-) |
666 |
- |
667 |
-IUSE=" |
668 |
- alsa chromium doc +encode oss pic static-libs test v4l |
669 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
670 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
671 |
-" |
672 |
- |
673 |
-# Strings for CPU features in the useflag[:configure_option] form |
674 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
675 |
-ARM_CPU_FEATURES=( |
676 |
- cpu_flags_arm_thumb:armv5te |
677 |
- cpu_flags_arm_v6:armv6 |
678 |
- cpu_flags_arm_thumb2:armv6t2 |
679 |
- cpu_flags_arm_neon:neon |
680 |
- cpu_flags_arm_vfp:vfp |
681 |
- cpu_flags_arm_vfpv3:vfpv3 |
682 |
- cpu_flags_arm_v8:armv8 |
683 |
-) |
684 |
-ARM_CPU_REQUIRED_USE=" |
685 |
- arm64? ( cpu_flags_arm_v8 ) |
686 |
- cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3 cpu_flags_arm_neon ) |
687 |
- cpu_flags_arm_neon? ( cpu_flags_arm_thumb2 cpu_flags_arm_vfp ) |
688 |
- cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp ) |
689 |
- cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) |
690 |
- cpu_flags_arm_v6? ( cpu_flags_arm_thumb ) |
691 |
-" |
692 |
-MIPS_CPU_FEATURES=( mipsdspr1:mipsdsp mipsdspr2 mipsfpu ) |
693 |
-PPC_CPU_FEATURES=( altivec ) |
694 |
-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 ) |
695 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
696 |
-X86_CPU_REQUIRED_USE=" |
697 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
698 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
699 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
700 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
701 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
702 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
703 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
704 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
705 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
706 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
707 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
708 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
709 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
710 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
711 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
712 |
-" |
713 |
- |
714 |
-CPU_FEATURES_MAP=( |
715 |
- ${ARM_CPU_FEATURES[@]} |
716 |
- ${MIPS_CPU_FEATURES[@]} |
717 |
- ${PPC_CPU_FEATURES[@]} |
718 |
- ${X86_CPU_FEATURES[@]} |
719 |
-) |
720 |
-IUSE="${IUSE} |
721 |
- ${CPU_FEATURES_MAP[@]%:*}" |
722 |
- |
723 |
-CPU_REQUIRED_USE=" |
724 |
- ${ARM_CPU_REQUIRED_USE} |
725 |
- ${X86_CPU_REQUIRED_USE} |
726 |
-" |
727 |
- |
728 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
729 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
730 |
- |
731 |
-RDEPEND=" |
732 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
733 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
734 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] ) |
735 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
736 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
737 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
738 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
739 |
- codec2? ( media-libs/codec2[${MULTILIB_USEDEP}] ) |
740 |
- encode? ( |
741 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
742 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
743 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
744 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
745 |
- snappy? ( >=app-arch/snappy-1.1.2-r1:=[${MULTILIB_USEDEP}] ) |
746 |
- theora? ( |
747 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
748 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
749 |
- ) |
750 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
751 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
752 |
- webp? ( >=media-libs/libwebp-0.3.0:=[${MULTILIB_USEDEP}] ) |
753 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
754 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
755 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
756 |
- ) |
757 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
758 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
759 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
760 |
- frei0r? ( media-plugins/frei0r-plugins ) |
761 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
762 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
763 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
764 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
765 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
766 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
767 |
- iec61883? ( |
768 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
769 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
770 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
771 |
- ) |
772 |
- ieee1394? ( |
773 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
774 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
775 |
- ) |
776 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
777 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
778 |
- libaom? ( media-libs/libaom[${MULTILIB_USEDEP}] ) |
779 |
- libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) |
780 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
781 |
- libdrm? ( x11-libs/libdrm[${MULTILIB_USEDEP}] ) |
782 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
783 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
784 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
785 |
- lv2? ( media-libs/lv2[${MULTILIB_USEDEP}] media-libs/lilv[${MULTILIB_USEDEP}] ) |
786 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
787 |
- mmal? ( media-libs/raspberrypi-userland ) |
788 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
789 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
790 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
791 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
792 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
793 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
794 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
795 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
796 |
- samba? ( >=net-fs/samba-3.6.23-r1[client,${MULTILIB_USEDEP}] ) |
797 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
798 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
799 |
- srt? ( net-libs/srt[${MULTILIB_USEDEP}] ) |
800 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
801 |
- svg? ( gnome-base/librsvg:2=[${MULTILIB_USEDEP}] ) |
802 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
803 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
804 |
- video_cards_nvidia? ( >=media-libs/nv-codec-headers-8.1.24.2[${MULTILIB_USEDEP}] ) |
805 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
806 |
- vorbis? ( |
807 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
808 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
809 |
- ) |
810 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
811 |
- X? ( |
812 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
813 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
814 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
815 |
- ) |
816 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
817 |
- zeromq? ( >=net-libs/zeromq-4.1.6 ) |
818 |
- zimg? ( >=media-libs/zimg-2.7.4:=[${MULTILIB_USEDEP}] ) |
819 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
820 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
821 |
- !media-video/qt-faststart |
822 |
- postproc? ( !media-libs/libpostproc ) |
823 |
-" |
824 |
- |
825 |
-# Crypto & co provider magic |
826 |
-# - libressl is a useflag meaning it should always favor libressl over openssl |
827 |
-# - libressl and openssl provide more features to ffmpeg than gnutls |
828 |
-# |
829 |
-# The ordering is thus: libressl > openssl > gnutls |
830 |
-RDEPEND="${RDEPEND} |
831 |
- libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
832 |
- !libressl? ( |
833 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
834 |
- !openssl? ( gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) ) |
835 |
- ) |
836 |
-" |
837 |
- |
838 |
-DEPEND="${RDEPEND} |
839 |
- >=sys-devel/make-3.81 |
840 |
- doc? ( sys-apps/texinfo ) |
841 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
842 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
843 |
- cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) |
844 |
- test? ( net-misc/wget sys-devel/bc ) |
845 |
- v4l? ( sys-kernel/linux-headers ) |
846 |
-" |
847 |
- |
848 |
-# Code requiring FFmpeg to be built under gpl license |
849 |
-GPL_REQUIRED_USE=" |
850 |
- postproc? ( gpl ) |
851 |
- frei0r? ( gpl ) |
852 |
- cdio? ( gpl ) |
853 |
- samba? ( gpl ) |
854 |
- encode? ( |
855 |
- x264? ( gpl ) |
856 |
- x265? ( gpl ) |
857 |
- xvid? ( gpl ) |
858 |
- X? ( !xcb? ( gpl ) ) |
859 |
- ) |
860 |
-" |
861 |
-REQUIRED_USE=" |
862 |
- libv4l? ( v4l ) |
863 |
- fftools_cws2fws? ( zlib ) |
864 |
- test? ( encode ) |
865 |
- ${GPL_REQUIRED_USE} |
866 |
- ${CPU_REQUIRED_USE}" |
867 |
-RESTRICT=" |
868 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) libressl? ( bindist ) ) |
869 |
-" |
870 |
- |
871 |
-S=${WORKDIR}/${P/_/-} |
872 |
- |
873 |
-PATCHES=( |
874 |
- "${FILESDIR}"/chromium-r1.patch |
875 |
-) |
876 |
- |
877 |
-MULTILIB_WRAPPED_HEADERS=( |
878 |
- /usr/include/libavutil/avconfig.h |
879 |
-) |
880 |
- |
881 |
-build_separate_libffmpeg() { |
882 |
- use opencl |
883 |
-} |
884 |
- |
885 |
-src_prepare() { |
886 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
887 |
- export revision=git-N-${FFMPEG_REVISION} |
888 |
- fi |
889 |
- default |
890 |
- echo 'include $(SRC_PATH)/ffbuild/libffmpeg.mak' >> Makefile || die |
891 |
-} |
892 |
- |
893 |
-multilib_src_configure() { |
894 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
895 |
- |
896 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
897 |
- use openssl || use libressl && use gpl && myconf+=( --enable-nonfree ) |
898 |
- use samba && myconf+=( --enable-version3 ) |
899 |
- |
900 |
- # Encoders |
901 |
- if use encode ; then |
902 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
903 |
- |
904 |
- # Licensing. |
905 |
- if use amrenc ; then |
906 |
- myconf+=( --enable-version3 ) |
907 |
- fi |
908 |
- else |
909 |
- myconf+=( --disable-encoders ) |
910 |
- fi |
911 |
- |
912 |
- # Indevs |
913 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
914 |
- for i in alsa oss jack ; do |
915 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
916 |
- done |
917 |
- |
918 |
- # Outdevs |
919 |
- for i in alsa oss sdl ; do |
920 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
921 |
- done |
922 |
- |
923 |
- # Decoders |
924 |
- use amr && myconf+=( --enable-version3 ) |
925 |
- use gmp && myconf+=( --enable-version3 ) |
926 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
927 |
- |
928 |
- for i in "${ffuse[@]#+}" ; do |
929 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
930 |
- done |
931 |
- |
932 |
- # Incompatible features: openssl or libressl and gnutls |
933 |
- if use libressl ; then |
934 |
- myconf+=( --disable-gnutls --disable-openssl ) |
935 |
- elif use openssl ; then |
936 |
- myconf+=( --disable-gnutls ) |
937 |
- fi |
938 |
- |
939 |
- # (temporarily) disable non-multilib deps |
940 |
- if ! multilib_is_native_abi; then |
941 |
- for i in frei0r libzmq ; do |
942 |
- myconf+=( --disable-${i} ) |
943 |
- done |
944 |
- fi |
945 |
- |
946 |
- # CPU features |
947 |
- for i in "${CPU_FEATURES_MAP[@]}" ; do |
948 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
949 |
- done |
950 |
- |
951 |
- if use pic ; then |
952 |
- myconf+=( --enable-pic ) |
953 |
- # disable asm code if PIC is required |
954 |
- # as the provided asm decidedly is not PIC for x86. |
955 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
956 |
- fi |
957 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
958 |
- |
959 |
- # Try to get cpu type based on CFLAGS. |
960 |
- # Bug #172723 |
961 |
- # We need to do this so that features of that CPU will be better used |
962 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
963 |
- # will just ignore it. |
964 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
965 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
966 |
- myconf+=( --cpu=${i} ) |
967 |
- break |
968 |
- done |
969 |
- |
970 |
- # LTO support, bug #566282 |
971 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
972 |
- |
973 |
- # Mandatory configuration |
974 |
- myconf=( |
975 |
- --enable-avfilter |
976 |
- --enable-avresample |
977 |
- --disable-stripping |
978 |
- --disable-libcelt # bug #664158 |
979 |
- "${myconf[@]}" |
980 |
- ) |
981 |
- |
982 |
- # cross compile support |
983 |
- if tc-is-cross-compiler ; then |
984 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) |
985 |
- case ${CHOST} in |
986 |
- *freebsd*) |
987 |
- myconf+=( --target-os=freebsd ) |
988 |
- ;; |
989 |
- *mingw32*) |
990 |
- myconf+=( --target-os=mingw32 ) |
991 |
- ;; |
992 |
- *linux*) |
993 |
- myconf+=( --target-os=linux ) |
994 |
- ;; |
995 |
- esac |
996 |
- fi |
997 |
- |
998 |
- # doc |
999 |
- myconf+=( |
1000 |
- $(multilib_native_use_enable doc) |
1001 |
- $(multilib_native_use_enable doc htmlpages) |
1002 |
- $(multilib_native_enable manpages) |
1003 |
- ) |
1004 |
- |
1005 |
- set -- "${S}/configure" \ |
1006 |
- --prefix="${EPREFIX}/usr" \ |
1007 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
1008 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1009 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
1010 |
- --mandir="${EPREFIX}/usr/share/man" \ |
1011 |
- --enable-shared \ |
1012 |
- --cc="$(tc-getCC)" \ |
1013 |
- --cxx="$(tc-getCXX)" \ |
1014 |
- --ar="$(tc-getAR)" \ |
1015 |
- --optflags="${CFLAGS}" \ |
1016 |
- $(use_enable static-libs static) \ |
1017 |
- "${myconf[@]}" |
1018 |
- echo "${@}" |
1019 |
- "${@}" || die |
1020 |
- |
1021 |
- if multilib_is_native_abi && use chromium && build_separate_libffmpeg; then |
1022 |
- einfo "Configuring for Chromium" |
1023 |
- mkdir -p ../chromium || die |
1024 |
- pushd ../chromium >/dev/null || die |
1025 |
- set -- "${@}" \ |
1026 |
- --disable-shared \ |
1027 |
- --enable-static \ |
1028 |
- --enable-pic \ |
1029 |
- --disable-opencl |
1030 |
- echo "${@}" |
1031 |
- "${@}" || die |
1032 |
- popd >/dev/null || die |
1033 |
- fi |
1034 |
-} |
1035 |
- |
1036 |
-multilib_src_compile() { |
1037 |
- emake V=1 |
1038 |
- |
1039 |
- if multilib_is_native_abi; then |
1040 |
- for i in "${FFTOOLS[@]}" ; do |
1041 |
- if use fftools_${i} ; then |
1042 |
- emake V=1 tools/${i}$(get_exeext) |
1043 |
- fi |
1044 |
- done |
1045 |
- |
1046 |
- if use chromium; then |
1047 |
- if build_separate_libffmpeg; then |
1048 |
- einfo "Compiling for Chromium" |
1049 |
- pushd ../chromium >/dev/null || die |
1050 |
- emake V=1 libffmpeg |
1051 |
- popd >/dev/null || die |
1052 |
- else |
1053 |
- emake V=1 libffmpeg |
1054 |
- fi |
1055 |
- fi |
1056 |
- fi |
1057 |
-} |
1058 |
- |
1059 |
-multilib_src_install() { |
1060 |
- emake V=1 DESTDIR="${D}" install install-doc |
1061 |
- |
1062 |
- if multilib_is_native_abi; then |
1063 |
- for i in "${FFTOOLS[@]}" ; do |
1064 |
- if use fftools_${i} ; then |
1065 |
- dobin tools/${i}$(get_exeext) |
1066 |
- fi |
1067 |
- done |
1068 |
- |
1069 |
- if use chromium; then |
1070 |
- if build_separate_libffmpeg; then |
1071 |
- einfo "Installing for Chromium" |
1072 |
- pushd ../chromium >/dev/null || die |
1073 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
1074 |
- popd >/dev/null || die |
1075 |
- else |
1076 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
1077 |
- fi |
1078 |
- fi |
1079 |
- fi |
1080 |
-} |
1081 |
- |
1082 |
-multilib_src_install_all() { |
1083 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
1084 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
1085 |
-} |
1086 |
- |
1087 |
-multilib_src_test() { |
1088 |
- 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" \ |
1089 |
- emake V=1 fate |
1090 |
-} |
1091 |
|
1092 |
diff --git a/media-video/ffmpeg/ffmpeg-4.1.ebuild b/media-video/ffmpeg/ffmpeg-4.1.ebuild |
1093 |
deleted file mode 100644 |
1094 |
index 7502a685b96..00000000000 |
1095 |
--- a/media-video/ffmpeg/ffmpeg-4.1.ebuild |
1096 |
+++ /dev/null |
1097 |
@@ -1,528 +0,0 @@ |
1098 |
-# Copyright 1999-2018 Gentoo Authors |
1099 |
-# Distributed under the terms of the GNU General Public License v2 |
1100 |
- |
1101 |
-EAPI=6 |
1102 |
- |
1103 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
1104 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
1105 |
-# Most consumers will use those three libraries, if a "less used" library |
1106 |
-# changes its soname, consumers will have to be rebuilt the old way |
1107 |
-# (preserve-libs). |
1108 |
-# If, for example, a package does not link to libavformat and only libavformat |
1109 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
1110 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
1111 |
-# doing so since such a case is unlikely. |
1112 |
-FFMPEG_SUBSLOT=56.58.58 |
1113 |
- |
1114 |
-SCM="" |
1115 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
1116 |
- SCM="git-r3" |
1117 |
- EGIT_MIN_CLONE_TYPE="single" |
1118 |
- EGIT_REPO_URI="https://git.ffmpeg.org/ffmpeg.git" |
1119 |
-fi |
1120 |
- |
1121 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
1122 |
- |
1123 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
1124 |
-HOMEPAGE="https://ffmpeg.org/" |
1125 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
1126 |
- SRC_URI="" |
1127 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
1128 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
1129 |
-else # Release |
1130 |
- SRC_URI="https://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
1131 |
-fi |
1132 |
-FFMPEG_REVISION="${PV#*_p}" |
1133 |
- |
1134 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
1135 |
-LICENSE=" |
1136 |
- !gpl? ( LGPL-2.1 ) |
1137 |
- gpl? ( GPL-2 ) |
1138 |
- amr? ( |
1139 |
- gpl? ( GPL-3 ) |
1140 |
- !gpl? ( LGPL-3 ) |
1141 |
- ) |
1142 |
- gmp? ( |
1143 |
- gpl? ( GPL-3 ) |
1144 |
- !gpl? ( LGPL-3 ) |
1145 |
- ) |
1146 |
- encode? ( |
1147 |
- amrenc? ( |
1148 |
- gpl? ( GPL-3 ) |
1149 |
- !gpl? ( LGPL-3 ) |
1150 |
- ) |
1151 |
- ) |
1152 |
- samba? ( GPL-3 ) |
1153 |
-" |
1154 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
1155 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
1156 |
-fi |
1157 |
- |
1158 |
-# Options to use as use_enable in the foo[:bar] form. |
1159 |
-# This will feed configure with $(use_enable foo bar) |
1160 |
-# or $(use_enable foo foo) if no :bar is set. |
1161 |
-# foo is added to IUSE. |
1162 |
-FFMPEG_FLAG_MAP=( |
1163 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
1164 |
- +gpl +hardcoded-tables +iconv libressl:libtls lzma +network opencl |
1165 |
- openssl +postproc samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau |
1166 |
- X:xlib xcb:libxcb xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
1167 |
- # libavdevice options |
1168 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
1169 |
- opengl |
1170 |
- # indevs |
1171 |
- libv4l:libv4l2 pulseaudio:libpulse libdrm jack:libjack |
1172 |
- # decoders |
1173 |
- amr:libopencore-amrwb amr:libopencore-amrnb codec2:libcodec2 fdk:libfdk-aac |
1174 |
- jpeg2k:libopenjpeg bluray:libbluray gme:libgme gsm:libgsm |
1175 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
1176 |
- speex:libspeex srt:libsrt svg:librsvg video_cards_nvidia:ffnvcodec |
1177 |
- vorbis:libvorbis vpx:libvpx zvbi:libzvbi |
1178 |
- # libavfilter options |
1179 |
- appkit |
1180 |
- bs2b:libbs2b chromaprint flite:libflite frei0r |
1181 |
- fribidi:libfribidi fontconfig ladspa libass lv2 truetype:libfreetype |
1182 |
- rubberband:librubberband zeromq:libzmq zimg:libzimg |
1183 |
- # libswresample options |
1184 |
- libsoxr |
1185 |
- # Threads; we only support pthread for now but ffmpeg supports more |
1186 |
- +threads:pthreads |
1187 |
-) |
1188 |
- |
1189 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
1190 |
-FFMPEG_ENCODER_FLAG_MAP=( |
1191 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
1192 |
- kvazaar:libkvazaar libaom |
1193 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
1194 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
1195 |
-) |
1196 |
- |
1197 |
-IUSE=" |
1198 |
- alsa chromium doc +encode oss pic static-libs test v4l |
1199 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
1200 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
1201 |
-" |
1202 |
- |
1203 |
-# Strings for CPU features in the useflag[:configure_option] form |
1204 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
1205 |
-ARM_CPU_FEATURES=( |
1206 |
- cpu_flags_arm_thumb:armv5te |
1207 |
- cpu_flags_arm_v6:armv6 |
1208 |
- cpu_flags_arm_thumb2:armv6t2 |
1209 |
- cpu_flags_arm_neon:neon |
1210 |
- cpu_flags_arm_vfp:vfp |
1211 |
- cpu_flags_arm_vfpv3:vfpv3 |
1212 |
- cpu_flags_arm_v8:armv8 |
1213 |
-) |
1214 |
-ARM_CPU_REQUIRED_USE=" |
1215 |
- arm64? ( cpu_flags_arm_v8 ) |
1216 |
- cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3 cpu_flags_arm_neon ) |
1217 |
- cpu_flags_arm_neon? ( cpu_flags_arm_thumb2 cpu_flags_arm_vfp ) |
1218 |
- cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp ) |
1219 |
- cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) |
1220 |
- cpu_flags_arm_v6? ( cpu_flags_arm_thumb ) |
1221 |
-" |
1222 |
-MIPS_CPU_FEATURES=( mipsdspr1:mipsdsp mipsdspr2 mipsfpu ) |
1223 |
-PPC_CPU_FEATURES=( altivec ) |
1224 |
-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 ) |
1225 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
1226 |
-X86_CPU_REQUIRED_USE=" |
1227 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
1228 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
1229 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
1230 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
1231 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
1232 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
1233 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
1234 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
1235 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
1236 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
1237 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
1238 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
1239 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
1240 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
1241 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
1242 |
-" |
1243 |
- |
1244 |
-CPU_FEATURES_MAP=( |
1245 |
- ${ARM_CPU_FEATURES[@]} |
1246 |
- ${MIPS_CPU_FEATURES[@]} |
1247 |
- ${PPC_CPU_FEATURES[@]} |
1248 |
- ${X86_CPU_FEATURES[@]} |
1249 |
-) |
1250 |
-IUSE="${IUSE} |
1251 |
- ${CPU_FEATURES_MAP[@]%:*}" |
1252 |
- |
1253 |
-CPU_REQUIRED_USE=" |
1254 |
- ${ARM_CPU_REQUIRED_USE} |
1255 |
- ${X86_CPU_REQUIRED_USE} |
1256 |
-" |
1257 |
- |
1258 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
1259 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
1260 |
- |
1261 |
-RDEPEND=" |
1262 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
1263 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
1264 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] ) |
1265 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
1266 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
1267 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
1268 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
1269 |
- codec2? ( media-libs/codec2[${MULTILIB_USEDEP}] ) |
1270 |
- encode? ( |
1271 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
1272 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
1273 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
1274 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
1275 |
- snappy? ( >=app-arch/snappy-1.1.2-r1:=[${MULTILIB_USEDEP}] ) |
1276 |
- theora? ( |
1277 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
1278 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1279 |
- ) |
1280 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
1281 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
1282 |
- webp? ( >=media-libs/libwebp-0.3.0:=[${MULTILIB_USEDEP}] ) |
1283 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
1284 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
1285 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
1286 |
- ) |
1287 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
1288 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
1289 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
1290 |
- frei0r? ( media-plugins/frei0r-plugins ) |
1291 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
1292 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
1293 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
1294 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
1295 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
1296 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
1297 |
- iec61883? ( |
1298 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
1299 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1300 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
1301 |
- ) |
1302 |
- ieee1394? ( |
1303 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
1304 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1305 |
- ) |
1306 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
1307 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
1308 |
- libaom? ( media-libs/libaom[${MULTILIB_USEDEP}] ) |
1309 |
- libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) |
1310 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
1311 |
- libdrm? ( x11-libs/libdrm[${MULTILIB_USEDEP}] ) |
1312 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
1313 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
1314 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
1315 |
- lv2? ( media-libs/lv2[${MULTILIB_USEDEP}] media-libs/lilv[${MULTILIB_USEDEP}] ) |
1316 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
1317 |
- mmal? ( media-libs/raspberrypi-userland ) |
1318 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
1319 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
1320 |
- opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
1321 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
1322 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
1323 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
1324 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
1325 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
1326 |
- samba? ( >=net-fs/samba-3.6.23-r1[client,${MULTILIB_USEDEP}] ) |
1327 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
1328 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
1329 |
- srt? ( >=net-libs/srt-1.3.0[${MULTILIB_USEDEP}] ) |
1330 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
1331 |
- svg? ( gnome-base/librsvg:2=[${MULTILIB_USEDEP}] ) |
1332 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
1333 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
1334 |
- video_cards_nvidia? ( >=media-libs/nv-codec-headers-8.1.24.2[${MULTILIB_USEDEP}] ) |
1335 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
1336 |
- vorbis? ( |
1337 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
1338 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1339 |
- ) |
1340 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
1341 |
- X? ( |
1342 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
1343 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
1344 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
1345 |
- ) |
1346 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
1347 |
- zeromq? ( >=net-libs/zeromq-4.1.6 ) |
1348 |
- zimg? ( >=media-libs/zimg-2.7.4:=[${MULTILIB_USEDEP}] ) |
1349 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
1350 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
1351 |
- !media-video/qt-faststart |
1352 |
- postproc? ( !media-libs/libpostproc ) |
1353 |
-" |
1354 |
- |
1355 |
-# Crypto & co provider magic |
1356 |
-# - libressl is a useflag meaning it should always favor libressl over openssl |
1357 |
-# - libressl and openssl provide more features to ffmpeg than gnutls |
1358 |
-# |
1359 |
-# The ordering is thus: libressl > openssl > gnutls |
1360 |
-RDEPEND="${RDEPEND} |
1361 |
- libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
1362 |
- !libressl? ( |
1363 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
1364 |
- !openssl? ( gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) ) |
1365 |
- ) |
1366 |
-" |
1367 |
- |
1368 |
-DEPEND="${RDEPEND} |
1369 |
- >=sys-devel/make-3.81 |
1370 |
- doc? ( sys-apps/texinfo ) |
1371 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
1372 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
1373 |
- cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) |
1374 |
- test? ( net-misc/wget sys-devel/bc ) |
1375 |
- v4l? ( sys-kernel/linux-headers ) |
1376 |
-" |
1377 |
- |
1378 |
-# Code requiring FFmpeg to be built under gpl license |
1379 |
-GPL_REQUIRED_USE=" |
1380 |
- postproc? ( gpl ) |
1381 |
- frei0r? ( gpl ) |
1382 |
- cdio? ( gpl ) |
1383 |
- samba? ( gpl ) |
1384 |
- encode? ( |
1385 |
- x264? ( gpl ) |
1386 |
- x265? ( gpl ) |
1387 |
- xvid? ( gpl ) |
1388 |
- X? ( !xcb? ( gpl ) ) |
1389 |
- ) |
1390 |
-" |
1391 |
-REQUIRED_USE=" |
1392 |
- libv4l? ( v4l ) |
1393 |
- fftools_cws2fws? ( zlib ) |
1394 |
- test? ( encode ) |
1395 |
- ${GPL_REQUIRED_USE} |
1396 |
- ${CPU_REQUIRED_USE}" |
1397 |
-RESTRICT=" |
1398 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) libressl? ( bindist ) ) |
1399 |
-" |
1400 |
- |
1401 |
-S=${WORKDIR}/${P/_/-} |
1402 |
- |
1403 |
-PATCHES=( |
1404 |
- "${FILESDIR}"/chromium-r1.patch |
1405 |
- "${FILESDIR}/${P}-vaapi-tools.patch" |
1406 |
-) |
1407 |
- |
1408 |
-MULTILIB_WRAPPED_HEADERS=( |
1409 |
- /usr/include/libavutil/avconfig.h |
1410 |
-) |
1411 |
- |
1412 |
-build_separate_libffmpeg() { |
1413 |
- use opencl |
1414 |
-} |
1415 |
- |
1416 |
-src_prepare() { |
1417 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
1418 |
- export revision=git-N-${FFMPEG_REVISION} |
1419 |
- fi |
1420 |
- default |
1421 |
- echo 'include $(SRC_PATH)/ffbuild/libffmpeg.mak' >> Makefile || die |
1422 |
-} |
1423 |
- |
1424 |
-multilib_src_configure() { |
1425 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
1426 |
- |
1427 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
1428 |
- use openssl || use libressl && use gpl && myconf+=( --enable-nonfree ) |
1429 |
- use samba && myconf+=( --enable-version3 ) |
1430 |
- |
1431 |
- # Encoders |
1432 |
- if use encode ; then |
1433 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
1434 |
- |
1435 |
- # Licensing. |
1436 |
- if use amrenc ; then |
1437 |
- myconf+=( --enable-version3 ) |
1438 |
- fi |
1439 |
- else |
1440 |
- myconf+=( --disable-encoders ) |
1441 |
- fi |
1442 |
- |
1443 |
- # Indevs |
1444 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
1445 |
- for i in alsa oss jack ; do |
1446 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
1447 |
- done |
1448 |
- |
1449 |
- # Outdevs |
1450 |
- for i in alsa oss sdl ; do |
1451 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
1452 |
- done |
1453 |
- |
1454 |
- # Decoders |
1455 |
- use amr && myconf+=( --enable-version3 ) |
1456 |
- use gmp && myconf+=( --enable-version3 ) |
1457 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
1458 |
- |
1459 |
- for i in "${ffuse[@]#+}" ; do |
1460 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
1461 |
- done |
1462 |
- |
1463 |
- # Incompatible features: openssl or libressl and gnutls |
1464 |
- if use libressl ; then |
1465 |
- myconf+=( --disable-gnutls --disable-openssl ) |
1466 |
- elif use openssl ; then |
1467 |
- myconf+=( --disable-gnutls ) |
1468 |
- fi |
1469 |
- |
1470 |
- # (temporarily) disable non-multilib deps |
1471 |
- if ! multilib_is_native_abi; then |
1472 |
- for i in frei0r libzmq ; do |
1473 |
- myconf+=( --disable-${i} ) |
1474 |
- done |
1475 |
- fi |
1476 |
- |
1477 |
- # CPU features |
1478 |
- for i in "${CPU_FEATURES_MAP[@]}" ; do |
1479 |
- use ${i%:*} || myconf+=( --disable-${i#*:} ) |
1480 |
- done |
1481 |
- |
1482 |
- if use pic ; then |
1483 |
- myconf+=( --enable-pic ) |
1484 |
- # disable asm code if PIC is required |
1485 |
- # as the provided asm decidedly is not PIC for x86. |
1486 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
1487 |
- fi |
1488 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
1489 |
- |
1490 |
- # Try to get cpu type based on CFLAGS. |
1491 |
- # Bug #172723 |
1492 |
- # We need to do this so that features of that CPU will be better used |
1493 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
1494 |
- # will just ignore it. |
1495 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
1496 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
1497 |
- myconf+=( --cpu=${i} ) |
1498 |
- break |
1499 |
- done |
1500 |
- |
1501 |
- # LTO support, bug #566282 |
1502 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
1503 |
- |
1504 |
- # Mandatory configuration |
1505 |
- myconf=( |
1506 |
- --enable-avfilter |
1507 |
- --enable-avresample |
1508 |
- --disable-stripping |
1509 |
- # This is only for hardcoded cflags; those are used in configure checks that may |
1510 |
- # interfere with proper detections, bug #671746 and bug #645778 |
1511 |
- # We use optflags, so that overrides them anyway. |
1512 |
- --disable-optimizations |
1513 |
- --disable-libcelt # bug #664158 |
1514 |
- "${myconf[@]}" |
1515 |
- ) |
1516 |
- |
1517 |
- # cross compile support |
1518 |
- if tc-is-cross-compiler ; then |
1519 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) |
1520 |
- case ${CHOST} in |
1521 |
- *freebsd*) |
1522 |
- myconf+=( --target-os=freebsd ) |
1523 |
- ;; |
1524 |
- *mingw32*) |
1525 |
- myconf+=( --target-os=mingw32 ) |
1526 |
- ;; |
1527 |
- *linux*) |
1528 |
- myconf+=( --target-os=linux ) |
1529 |
- ;; |
1530 |
- esac |
1531 |
- fi |
1532 |
- |
1533 |
- # doc |
1534 |
- myconf+=( |
1535 |
- $(multilib_native_use_enable doc) |
1536 |
- $(multilib_native_use_enable doc htmlpages) |
1537 |
- $(multilib_native_enable manpages) |
1538 |
- ) |
1539 |
- |
1540 |
- set -- "${S}/configure" \ |
1541 |
- --prefix="${EPREFIX}/usr" \ |
1542 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
1543 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1544 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
1545 |
- --mandir="${EPREFIX}/usr/share/man" \ |
1546 |
- --enable-shared \ |
1547 |
- --cc="$(tc-getCC)" \ |
1548 |
- --cxx="$(tc-getCXX)" \ |
1549 |
- --ar="$(tc-getAR)" \ |
1550 |
- --optflags="${CFLAGS}" \ |
1551 |
- $(use_enable static-libs static) \ |
1552 |
- "${myconf[@]}" |
1553 |
- echo "${@}" |
1554 |
- "${@}" || die |
1555 |
- |
1556 |
- if multilib_is_native_abi && use chromium && build_separate_libffmpeg; then |
1557 |
- einfo "Configuring for Chromium" |
1558 |
- mkdir -p ../chromium || die |
1559 |
- pushd ../chromium >/dev/null || die |
1560 |
- set -- "${@}" \ |
1561 |
- --disable-shared \ |
1562 |
- --enable-static \ |
1563 |
- --enable-pic \ |
1564 |
- --disable-opencl |
1565 |
- echo "${@}" |
1566 |
- "${@}" || die |
1567 |
- popd >/dev/null || die |
1568 |
- fi |
1569 |
-} |
1570 |
- |
1571 |
-multilib_src_compile() { |
1572 |
- emake V=1 |
1573 |
- |
1574 |
- if multilib_is_native_abi; then |
1575 |
- for i in "${FFTOOLS[@]}" ; do |
1576 |
- if use fftools_${i} ; then |
1577 |
- emake V=1 tools/${i}$(get_exeext) |
1578 |
- fi |
1579 |
- done |
1580 |
- |
1581 |
- if use chromium; then |
1582 |
- if build_separate_libffmpeg; then |
1583 |
- einfo "Compiling for Chromium" |
1584 |
- pushd ../chromium >/dev/null || die |
1585 |
- emake V=1 libffmpeg |
1586 |
- popd >/dev/null || die |
1587 |
- else |
1588 |
- emake V=1 libffmpeg |
1589 |
- fi |
1590 |
- fi |
1591 |
- fi |
1592 |
-} |
1593 |
- |
1594 |
-multilib_src_install() { |
1595 |
- emake V=1 DESTDIR="${D}" install install-doc |
1596 |
- |
1597 |
- if multilib_is_native_abi; then |
1598 |
- for i in "${FFTOOLS[@]}" ; do |
1599 |
- if use fftools_${i} ; then |
1600 |
- dobin tools/${i}$(get_exeext) |
1601 |
- fi |
1602 |
- done |
1603 |
- |
1604 |
- if use chromium; then |
1605 |
- if build_separate_libffmpeg; then |
1606 |
- einfo "Installing for Chromium" |
1607 |
- pushd ../chromium >/dev/null || die |
1608 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
1609 |
- popd >/dev/null || die |
1610 |
- else |
1611 |
- emake V=1 DESTDIR="${D}" install-libffmpeg |
1612 |
- fi |
1613 |
- fi |
1614 |
- fi |
1615 |
-} |
1616 |
- |
1617 |
-multilib_src_install_all() { |
1618 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
1619 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
1620 |
-} |
1621 |
- |
1622 |
-multilib_src_test() { |
1623 |
- 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" \ |
1624 |
- emake V=1 fate |
1625 |
-} |
1626 |
|
1627 |
diff --git a/media-video/ffmpeg/files/ffmpeg-4.1-vaapi-tools.patch b/media-video/ffmpeg/files/ffmpeg-4.1-vaapi-tools.patch |
1628 |
deleted file mode 100644 |
1629 |
index e55917471fb..00000000000 |
1630 |
--- a/media-video/ffmpeg/files/ffmpeg-4.1-vaapi-tools.patch |
1631 |
+++ /dev/null |
1632 |
@@ -1,27 +0,0 @@ |
1633 |
-From 4f1e07090a9f6064078cac694f1d7148f86176c3 Mon Sep 17 00:00:00 2001 |
1634 |
-From: Mark Thompson <sw@×××××.net> |
1635 |
-Date: Wed, 14 Nov 2018 22:56:18 +0000 |
1636 |
-Subject: [PATCH] configure: Add missing xlib dependency for VAAPI X11 code |
1637 |
- |
1638 |
-Fixes #7538. |
1639 |
- |
1640 |
-(cherry picked from commit 2ce3a48f30fe3cec7153aa3f18a1012a366aca3a) |
1641 |
---- |
1642 |
- configure | 1 + |
1643 |
- 1 file changed, 1 insertion(+) |
1644 |
- |
1645 |
-diff --git a/configure b/configure |
1646 |
-index e79dae896c..a70c5f9e9e 100755 |
1647 |
---- a/configure |
1648 |
-+++ b/configure |
1649 |
-@@ -2812,6 +2812,7 @@ d3d11va_deps="dxva_h ID3D11VideoDecoder ID3D11VideoContext" |
1650 |
- dxva2_deps="dxva2api_h DXVA2_ConfigPictureDecode ole32 user32" |
1651 |
- ffnvcodec_deps_any="libdl LoadLibrary" |
1652 |
- nvdec_deps="ffnvcodec" |
1653 |
-+vaapi_x11_deps="xlib" |
1654 |
- videotoolbox_hwaccel_deps="videotoolbox pthreads" |
1655 |
- videotoolbox_hwaccel_extralibs="-framework QuartzCore" |
1656 |
- xvmc_deps="X11_extensions_XvMClib_h" |
1657 |
--- |
1658 |
-2.11.0 |
1659 |
- |