1 |
commit: 8a945623d881da7bdb3291ff11d40ef8cffa94cf |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 7 20:41:10 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 7 20:41:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a945623 |
7 |
|
8 |
media-video/ffmpeg: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
media-video/ffmpeg/Manifest | 2 - |
13 |
media-video/ffmpeg/ffmpeg-3.2.5.ebuild | 460 ------------------------------- |
14 |
media-video/ffmpeg/ffmpeg-3.3.2.ebuild | 475 --------------------------------- |
15 |
3 files changed, 937 deletions(-) |
16 |
|
17 |
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest |
18 |
index 936466ff29d..ff06e57df3b 100644 |
19 |
--- a/media-video/ffmpeg/Manifest |
20 |
+++ b/media-video/ffmpeg/Manifest |
21 |
@@ -1,8 +1,6 @@ |
22 |
DIST ffmpeg-2.8.10.tar.bz2 8585304 SHA256 d1ce1a73503dce6e2b1e208cb93a2a8a7e89f9c64357ddc3e4da3cab33dea9c9 SHA512 1ca8b0060361c49de201afc463bcd7c9340f09bbd116dff2539653bc36411d60cdf667874d2ec51664e141ee7a7be8bebc94e158687cb97db6bdfa40f00ec193 WHIRLPOOL 4ff9271290c138ad5caa50835da9fd6685fabf5a589cb6c068cfff6698ded948d93e9d40656dca3b516f9e591119d204e6283d57f7d2f0747a4f7ef9b322ebce |
23 |
DIST ffmpeg-2.8.11.tar.bz2 8582471 SHA256 9987e0f6b1f66311390f807a0c18ad9c90652b5097cff17b3dcbeabdd89f8d32 SHA512 60749897dccde1ff2840be9679f6e10118c7313bbeb1b07bb36acf7f311010f484259df9a4a43e60373726de9d6b54675e1961cc7b40646107142f8f42ea1601 WHIRLPOOL 4b71d63a1bbd63ebaa90b3c581f5d2c38e1a74c37044ad80fbf44b857d3d76722d3833da53575aa744779d9dd9a3dc0e41e9706611ba0899ab23c91ad17caa5f |
24 |
DIST ffmpeg-3.2.4.tar.bz2 9612274 SHA256 c0fa3593a2e9e96ace3c1757900094437ad96d1d6ca19f057c378b5f394496a4 SHA512 ba5004d0f2659faa139c7dbf2f0fc6bab1d4e017d919f4ac271a5d2e8e4a3478909176e3a4d1ad33ddf2f62ab28dd9e00ce9be1399efb7cb3276dde79134cdaa WHIRLPOOL e97a19541f990f86b8adbdc3fd20115258e5644b98a5c7f4e075f8f1320881da33fb9be969d8a5e20d79eea4c63b1c9510841b5cf0d5b479408ff231d3ba69cc |
25 |
-DIST ffmpeg-3.2.5.tar.bz2 9619556 SHA256 9ca9f24a442d5a5f0c127106daab5e08e30468e34f97c936cce6be9b114275ae SHA512 304a10c9bafce163d2bfe79fcf989bdd919d6361cb188acf3ebba32094df1ba23e66468a11f789392589e4f1f6c9e9dd7edfaadf999b92ee8540301723fd6501 WHIRLPOOL f0cc3355b2f5d8129221451dce7c2b4dcd9e80ba43c53f97a1931849d6d5eb0b882d70cd3397409f37f103e7237c2f5f04082acbe8d3a2b4827add793fde6d8d |
26 |
DIST ffmpeg-3.2.6.tar.bz2 9623111 SHA256 602b1a8c91bbc87f6e8897c0918d2bf1c7d4820d3888712f0ff0c1198a3f1e8f SHA512 eca75524374003eac78033bd2a744b459a4dc631c59150b6c9291e06a693bdd14e0b11cae9c800446f0648edccc066480c2b869bcb456a74eeabb91ab41f8285 WHIRLPOOL b2b5b78ae0a1ad0c44387e1241825a79cfe87234f1470d9095757b25ed724e04fe42ae96287e3242a80f6f74f380c5167b5388ddc6abf4d6738a1bc4af1ebe4d |
27 |
DIST ffmpeg-3.2.7.tar.bz2 9622391 SHA256 d5a0f891ed7764876e3c2fd541adcab90641eefe9103ab4d8269a346b10ebc8a SHA512 a5b6df77d2d4ede0cc2f398b763d7405f43f43e37c11a596ec1a2a8921714875fd8fa9ffbcff84355854780872ab7313c859a4a19bf419298b4d3bc797ad8ac4 WHIRLPOOL 8c3f36cd1d254ce5ed3917d498124860bb9620a65add1a3461844565fddb6d315914d38cc9760b7e45ebe4e1818e1872eeaebe65a040dd738a5bcc6508233f7d |
28 |
-DIST ffmpeg-3.3.2.tar.bz2 9937466 SHA256 216900d5c0af9017bb8f76b0ad23f0ac53cf7fc618cf04b40d989bd99b088e6a SHA512 673f18b2935d23703e5f325a2c951c69f49b2598acdf1bf3987487eecd246670f792d4363def6832bb17f16cb0e919994cd79141d1d95c8112644c979fb8b796 WHIRLPOOL 92ff3ca83ee4a7479a84dcf3f938a8204c8803d15ee29512a90eb51115ade054ec9044e769a2be6a58dda2cf64bd8d62dfe831244ba43115bf3d4e4f944b8a14 |
29 |
DIST ffmpeg-3.3.3.tar.bz2 9940959 SHA256 1069ac8fc7f52e566bea28b41b9c437246aeb5096f82fb26fa96dc7d5a10a473 SHA512 1cc63bf73356f4e618c0d3572a216bdf5689f10deff56b4262f6d740b0bee5a4b3eac234f45fca3d4d2da77903a507b4fba725b76d2d2070f31b6dae9e7a2dab WHIRLPOOL c90d2cc0d3fa7c3635a00c8039f94ff9e7b8413bd14400ddd6f1cccdc9cbbbfd2254ca2a209cefccd7e6c2f750b4594053d4c664eb2867ee208fe5657e95330b |
30 |
|
31 |
diff --git a/media-video/ffmpeg/ffmpeg-3.2.5.ebuild b/media-video/ffmpeg/ffmpeg-3.2.5.ebuild |
32 |
deleted file mode 100644 |
33 |
index d7e03bf5fdf..00000000000 |
34 |
--- a/media-video/ffmpeg/ffmpeg-3.2.5.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,460 +0,0 @@ |
37 |
-# Copyright 1999-2017 Gentoo Foundation |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
- |
42 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
43 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
44 |
-# Most consumers will use those three libraries, if a "less used" library |
45 |
-# changes its soname, consumers will have to be rebuilt the old way |
46 |
-# (preserve-libs). |
47 |
-# If, for example, a package does not link to libavformat and only libavformat |
48 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
49 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
50 |
-# doing so since such a case is unlikely. |
51 |
-FFMPEG_SUBSLOT=55.57.57 |
52 |
- |
53 |
-SCM="" |
54 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
55 |
- SCM="git-r3" |
56 |
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
57 |
-fi |
58 |
- |
59 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
60 |
- |
61 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
62 |
-HOMEPAGE="http://ffmpeg.org/" |
63 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
64 |
- SRC_URI="" |
65 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
66 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
67 |
-else # Release |
68 |
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
69 |
-fi |
70 |
-FFMPEG_REVISION="${PV#*_p}" |
71 |
- |
72 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
73 |
-LICENSE=" |
74 |
- !gpl? ( LGPL-2.1 ) |
75 |
- gpl? ( GPL-2 ) |
76 |
- amr? ( |
77 |
- gpl? ( GPL-3 ) |
78 |
- !gpl? ( LGPL-3 ) |
79 |
- ) |
80 |
- gmp? ( |
81 |
- gpl? ( GPL-3 ) |
82 |
- !gpl? ( LGPL-3 ) |
83 |
- ) |
84 |
- encode? ( |
85 |
- amrenc? ( |
86 |
- gpl? ( GPL-3 ) |
87 |
- !gpl? ( LGPL-3 ) |
88 |
- ) |
89 |
- ) |
90 |
- samba? ( GPL-3 ) |
91 |
-" |
92 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
93 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
94 |
-fi |
95 |
- |
96 |
-# Options to use as use_enable in the foo[:bar] form. |
97 |
-# This will feed configure with $(use_enable foo bar) |
98 |
-# or $(use_enable foo foo) if no :bar is set. |
99 |
-# foo is added to IUSE. |
100 |
-FFMPEG_FLAG_MAP=( |
101 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
102 |
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc |
103 |
- samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau X:xlib xcb:libxcb |
104 |
- xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
105 |
- # libavdevice options |
106 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
107 |
- opengl |
108 |
- # indevs |
109 |
- libv4l:libv4l2 pulseaudio:libpulse |
110 |
- # decoders |
111 |
- amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac |
112 |
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
113 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
114 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
115 |
- zvbi:libzvbi |
116 |
- # libavfilter options |
117 |
- bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r |
118 |
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype |
119 |
- rubberband:librubberband zimg:libzimg |
120 |
- # libswresample options |
121 |
- libsoxr |
122 |
- # Threads; we only support pthread for now but ffmpeg supports more |
123 |
- +threads:pthreads |
124 |
-) |
125 |
- |
126 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
127 |
-FFMPEG_ENCODER_FLAG_MAP=( |
128 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
129 |
- kvazaar:libkvazaar nvenc:nvenc |
130 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
131 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
132 |
-) |
133 |
- |
134 |
-IUSE=" |
135 |
- alsa doc +encode jack oss pic static-libs test v4l |
136 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
137 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
138 |
-" |
139 |
- |
140 |
-# Strings for CPU features in the useflag[:configure_option] form |
141 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
142 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
143 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
144 |
-PPC_CPU_FEATURES=( altivec ) |
145 |
-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 ) |
146 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
147 |
-X86_CPU_REQUIRED_USE=" |
148 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
149 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
150 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
151 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
152 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
153 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
154 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
155 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
156 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
157 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
158 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
159 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
160 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
161 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
162 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
163 |
-" |
164 |
- |
165 |
-IUSE="${IUSE} |
166 |
- ${ARM_CPU_FEATURES[@]%:*} |
167 |
- ${MIPS_CPU_FEATURES[@]%:*} |
168 |
- ${PPC_CPU_FEATURES[@]%:*} |
169 |
- ${X86_CPU_FEATURES[@]%:*} |
170 |
-" |
171 |
- |
172 |
-CPU_REQUIRED_USE=" |
173 |
- ${X86_CPU_REQUIRED_USE} |
174 |
-" |
175 |
- |
176 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
177 |
-# $(tc-arch). |
178 |
-CPU_FEATURES_MAP=" |
179 |
- arm:ARM |
180 |
- arm64:ARM |
181 |
- mips:MIPS |
182 |
- ppc:PPC |
183 |
- ppc64:PPC |
184 |
- x86:X86 |
185 |
- amd64:X86 |
186 |
-" |
187 |
- |
188 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
189 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
190 |
- |
191 |
-RDEPEND=" |
192 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
193 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
194 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] ) |
195 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
196 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
197 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
198 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
199 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
200 |
- ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] ) |
201 |
- encode? ( |
202 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
203 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
204 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
205 |
- nvenc? ( media-video/nvidia_video_sdk ) |
206 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
207 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
208 |
- theora? ( |
209 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
210 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
211 |
- ) |
212 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
213 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
214 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
215 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
216 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
217 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
218 |
- ) |
219 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
220 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
221 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
222 |
- frei0r? ( media-plugins/frei0r-plugins ) |
223 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
224 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
225 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
226 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
227 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) |
228 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
229 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
230 |
- iec61883? ( |
231 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
232 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
233 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
234 |
- ) |
235 |
- ieee1394? ( |
236 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
237 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
238 |
- ) |
239 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
240 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
241 |
- libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) |
242 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
243 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
244 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
245 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
246 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
247 |
- mmal? ( media-libs/raspberrypi-userland ) |
248 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
249 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
250 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
251 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
252 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
253 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
254 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
255 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
256 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
257 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
258 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
259 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
260 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
261 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
262 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
263 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
264 |
- vorbis? ( |
265 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
266 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
267 |
- ) |
268 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
269 |
- X? ( |
270 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
271 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
272 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
273 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
274 |
- ) |
275 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
276 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
277 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
278 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
279 |
- !media-video/qt-faststart |
280 |
- postproc? ( !media-libs/libpostproc ) |
281 |
-" |
282 |
- |
283 |
-DEPEND="${RDEPEND} |
284 |
- >=sys-devel/make-3.81 |
285 |
- doc? ( sys-apps/texinfo ) |
286 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
287 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
288 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
289 |
- test? ( net-misc/wget sys-devel/bc ) |
290 |
- v4l? ( sys-kernel/linux-headers ) |
291 |
-" |
292 |
- |
293 |
-RDEPEND="${RDEPEND} |
294 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
295 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
296 |
- |
297 |
-# Code requiring FFmpeg to be built under gpl license |
298 |
-GPL_REQUIRED_USE=" |
299 |
- postproc? ( gpl ) |
300 |
- frei0r? ( gpl ) |
301 |
- cdio? ( gpl ) |
302 |
- samba? ( gpl ) |
303 |
- encode? ( |
304 |
- x264? ( gpl ) |
305 |
- x265? ( gpl ) |
306 |
- xvid? ( gpl ) |
307 |
- X? ( !xcb? ( gpl ) ) |
308 |
- ) |
309 |
-" |
310 |
-REQUIRED_USE=" |
311 |
- libv4l? ( v4l ) |
312 |
- fftools_cws2fws? ( zlib ) |
313 |
- test? ( encode ) |
314 |
- ${GPL_REQUIRED_USE} |
315 |
- ${CPU_REQUIRED_USE}" |
316 |
-RESTRICT=" |
317 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
318 |
-" |
319 |
- |
320 |
-S=${WORKDIR}/${P/_/-} |
321 |
- |
322 |
-MULTILIB_WRAPPED_HEADERS=( |
323 |
- /usr/include/libavutil/avconfig.h |
324 |
-) |
325 |
- |
326 |
-src_prepare() { |
327 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
328 |
- export revision=git-N-${FFMPEG_REVISION} |
329 |
- fi |
330 |
- default |
331 |
- |
332 |
- # the version script on Solaris causes invalid symbol version problems |
333 |
- # we don't want their hacky workarounds, we're having a GNU ld |
334 |
- sed -i -e 's/sunos)/sunos) network_extralibs="-lsocket -lnsl"; add_cppflags -D__EXTENSIONS__; enable pic; disable symver ;; no-sunos)/' configure || die |
335 |
-} |
336 |
- |
337 |
-multilib_src_configure() { |
338 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
339 |
- |
340 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
341 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
342 |
- use samba && myconf+=( --enable-version3 ) |
343 |
- |
344 |
- # Encoders |
345 |
- if use encode ; then |
346 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
347 |
- |
348 |
- # Licensing. |
349 |
- if use amrenc ; then |
350 |
- myconf+=( --enable-version3 ) |
351 |
- fi |
352 |
- else |
353 |
- myconf+=( --disable-encoders ) |
354 |
- fi |
355 |
- |
356 |
- # Indevs |
357 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
358 |
- for i in alsa oss jack ; do |
359 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
360 |
- done |
361 |
- use xcb || ffuse+=( X:x11grab ) |
362 |
- |
363 |
- # Outdevs |
364 |
- for i in alsa oss sdl ; do |
365 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
366 |
- done |
367 |
- |
368 |
- # Decoders |
369 |
- use amr && myconf+=( --enable-version3 ) |
370 |
- use gmp && myconf+=( --enable-version3 ) |
371 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
372 |
- |
373 |
- for i in "${ffuse[@]#+}" ; do |
374 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
375 |
- done |
376 |
- |
377 |
- # (temporarily) disable non-multilib deps |
378 |
- if ! multilib_is_native_abi; then |
379 |
- for i in frei0r ; do |
380 |
- myconf+=( --disable-${i} ) |
381 |
- done |
382 |
- fi |
383 |
- |
384 |
- # CPU features |
385 |
- for i in ${CPU_FEATURES_MAP} ; do |
386 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
387 |
- local var="${i#*:}_CPU_FEATURES[@]" |
388 |
- for j in ${!var} ; do |
389 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
390 |
- done |
391 |
- fi |
392 |
- done |
393 |
- |
394 |
- if use pic ; then |
395 |
- myconf+=( --enable-pic ) |
396 |
- # disable asm code if PIC is required |
397 |
- # as the provided asm decidedly is not PIC for x86. |
398 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
399 |
- fi |
400 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
401 |
- |
402 |
- # Try to get cpu type based on CFLAGS. |
403 |
- # Bug #172723 |
404 |
- # We need to do this so that features of that CPU will be better used |
405 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
406 |
- # will just ignore it. |
407 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
408 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
409 |
- myconf+=( --cpu=${i} ) |
410 |
- break |
411 |
- done |
412 |
- |
413 |
- # LTO support, bug #566282 |
414 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
415 |
- |
416 |
- # Mandatory configuration |
417 |
- myconf=( |
418 |
- --enable-avfilter |
419 |
- --enable-avresample |
420 |
- --disable-stripping |
421 |
- "${myconf[@]}" |
422 |
- ) |
423 |
- |
424 |
- # cross compile support |
425 |
- if tc-is-cross-compiler ; then |
426 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
427 |
- case ${CHOST} in |
428 |
- *freebsd*) |
429 |
- myconf+=( --target-os=freebsd ) |
430 |
- ;; |
431 |
- *mingw32*) |
432 |
- myconf+=( --target-os=mingw32 ) |
433 |
- ;; |
434 |
- *linux*) |
435 |
- myconf+=( --target-os=linux ) |
436 |
- ;; |
437 |
- esac |
438 |
- fi |
439 |
- |
440 |
- # doc |
441 |
- myconf+=( |
442 |
- $(multilib_native_use_enable doc) |
443 |
- $(multilib_native_use_enable doc htmlpages) |
444 |
- $(multilib_native_enable manpages) |
445 |
- ) |
446 |
- |
447 |
- set -- "${S}/configure" \ |
448 |
- --prefix="${EPREFIX}/usr" \ |
449 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
450 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
451 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
452 |
- --mandir="${EPREFIX}/usr/share/man" \ |
453 |
- --enable-shared \ |
454 |
- --cc="$(tc-getCC)" \ |
455 |
- --cxx="$(tc-getCXX)" \ |
456 |
- --ar="$(tc-getAR)" \ |
457 |
- --optflags="${CFLAGS}" \ |
458 |
- $(use_enable static-libs static) \ |
459 |
- "${myconf[@]}" |
460 |
- echo "${@}" |
461 |
- "${@}" || die |
462 |
-} |
463 |
- |
464 |
-multilib_src_compile() { |
465 |
- emake V=1 |
466 |
- |
467 |
- if multilib_is_native_abi; then |
468 |
- for i in "${FFTOOLS[@]}" ; do |
469 |
- if use fftools_${i} ; then |
470 |
- emake V=1 tools/${i} |
471 |
- fi |
472 |
- done |
473 |
- fi |
474 |
-} |
475 |
- |
476 |
-multilib_src_install() { |
477 |
- emake V=1 DESTDIR="${D}" install install-doc |
478 |
- |
479 |
- if multilib_is_native_abi; then |
480 |
- for i in "${FFTOOLS[@]}" ; do |
481 |
- if use fftools_${i} ; then |
482 |
- dobin tools/${i} |
483 |
- fi |
484 |
- done |
485 |
- fi |
486 |
-} |
487 |
- |
488 |
-multilib_src_install_all() { |
489 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
490 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
491 |
-} |
492 |
- |
493 |
-multilib_src_test() { |
494 |
- 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" \ |
495 |
- emake V=1 fate |
496 |
-} |
497 |
|
498 |
diff --git a/media-video/ffmpeg/ffmpeg-3.3.2.ebuild b/media-video/ffmpeg/ffmpeg-3.3.2.ebuild |
499 |
deleted file mode 100644 |
500 |
index 2a83529d3dd..00000000000 |
501 |
--- a/media-video/ffmpeg/ffmpeg-3.3.2.ebuild |
502 |
+++ /dev/null |
503 |
@@ -1,475 +0,0 @@ |
504 |
-# Copyright 1999-2017 Gentoo Foundation |
505 |
-# Distributed under the terms of the GNU General Public License v2 |
506 |
- |
507 |
-EAPI=6 |
508 |
- |
509 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
510 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
511 |
-# Most consumers will use those three libraries, if a "less used" library |
512 |
-# changes its soname, consumers will have to be rebuilt the old way |
513 |
-# (preserve-libs). |
514 |
-# If, for example, a package does not link to libavformat and only libavformat |
515 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
516 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
517 |
-# doing so since such a case is unlikely. |
518 |
-FFMPEG_SUBSLOT=55.57.57 |
519 |
- |
520 |
-SCM="" |
521 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
522 |
- SCM="git-r3" |
523 |
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
524 |
-fi |
525 |
- |
526 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
527 |
- |
528 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
529 |
-HOMEPAGE="http://ffmpeg.org/" |
530 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
531 |
- SRC_URI="" |
532 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
533 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
534 |
-else # Release |
535 |
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
536 |
-fi |
537 |
-FFMPEG_REVISION="${PV#*_p}" |
538 |
- |
539 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
540 |
-LICENSE=" |
541 |
- !gpl? ( LGPL-2.1 ) |
542 |
- gpl? ( GPL-2 ) |
543 |
- amr? ( |
544 |
- gpl? ( GPL-3 ) |
545 |
- !gpl? ( LGPL-3 ) |
546 |
- ) |
547 |
- gmp? ( |
548 |
- gpl? ( GPL-3 ) |
549 |
- !gpl? ( LGPL-3 ) |
550 |
- ) |
551 |
- encode? ( |
552 |
- amrenc? ( |
553 |
- gpl? ( GPL-3 ) |
554 |
- !gpl? ( LGPL-3 ) |
555 |
- ) |
556 |
- ) |
557 |
- samba? ( GPL-3 ) |
558 |
-" |
559 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
560 |
- KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
561 |
-fi |
562 |
- |
563 |
-# Options to use as use_enable in the foo[:bar] form. |
564 |
-# This will feed configure with $(use_enable foo bar) |
565 |
-# or $(use_enable foo foo) if no :bar is set. |
566 |
-# foo is added to IUSE. |
567 |
-FFMPEG_FLAG_MAP=( |
568 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
569 |
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc |
570 |
- samba:libsmbclient sdl:ffplay sdl:sdl2 vaapi vdpau X:xlib xcb:libxcb |
571 |
- xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
572 |
- # libavdevice options |
573 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
574 |
- opengl |
575 |
- # indevs |
576 |
- libv4l:libv4l2 pulseaudio:libpulse |
577 |
- # decoders |
578 |
- amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac |
579 |
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
580 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
581 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
582 |
- zvbi:libzvbi |
583 |
- # libavfilter options |
584 |
- bs2b:libbs2b chromaprint flite:libflite frei0r |
585 |
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype |
586 |
- rubberband:librubberband sofalizer:netcdf zeromq:libzmq zimg:libzimg |
587 |
- # libswresample options |
588 |
- libsoxr |
589 |
- # Threads; we only support pthread for now but ffmpeg supports more |
590 |
- +threads:pthreads |
591 |
-) |
592 |
- |
593 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
594 |
-FFMPEG_ENCODER_FLAG_MAP=( |
595 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
596 |
- kvazaar:libkvazaar nvenc:nvenc |
597 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
598 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
599 |
-) |
600 |
- |
601 |
-IUSE=" |
602 |
- alsa doc +encode jack oss pic static-libs test v4l |
603 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
604 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
605 |
-" |
606 |
- |
607 |
-# Strings for CPU features in the useflag[:configure_option] form |
608 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
609 |
-ARM_CPU_FEATURES=( |
610 |
- cpu_flags_arm_thumb:armv5te |
611 |
- cpu_flags_arm_v6:armv6 |
612 |
- cpu_flags_arm_thumb2:armv6t2 |
613 |
- cpu_flags_arm_neon:neon |
614 |
- cpu_flags_arm_vfp:vfp |
615 |
- cpu_flags_arm_vfpv3:vfpv3 |
616 |
- cpu_flags_arm_v8:armv8 |
617 |
-) |
618 |
-ARM_CPU_REQUIRED_USE=" |
619 |
- arm64? ( cpu_flags_arm_v8 ) |
620 |
- cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3 cpu_flags_arm_neon ) |
621 |
- cpu_flags_arm_neon? ( cpu_flags_arm_thumb2 cpu_flags_arm_vfp ) |
622 |
- cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp ) |
623 |
- cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) |
624 |
- cpu_flags_arm_v6? ( cpu_flags_arm_thumb ) |
625 |
-" |
626 |
-MIPS_CPU_FEATURES=( mipsdspr1:mipsdsp mipsdspr2 mipsfpu ) |
627 |
-PPC_CPU_FEATURES=( altivec ) |
628 |
-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 ) |
629 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
630 |
-X86_CPU_REQUIRED_USE=" |
631 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
632 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
633 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
634 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
635 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
636 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
637 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
638 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
639 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
640 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
641 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
642 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
643 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
644 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
645 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
646 |
-" |
647 |
- |
648 |
-IUSE="${IUSE} |
649 |
- ${ARM_CPU_FEATURES[@]%:*} |
650 |
- ${MIPS_CPU_FEATURES[@]%:*} |
651 |
- ${PPC_CPU_FEATURES[@]%:*} |
652 |
- ${X86_CPU_FEATURES[@]%:*} |
653 |
-" |
654 |
- |
655 |
-CPU_REQUIRED_USE=" |
656 |
- ${ARM_CPU_REQUIRED_USE} |
657 |
- ${X86_CPU_REQUIRED_USE} |
658 |
-" |
659 |
- |
660 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
661 |
-# $(tc-arch). |
662 |
-CPU_FEATURES_MAP=" |
663 |
- arm:ARM |
664 |
- arm64:ARM |
665 |
- mips:MIPS |
666 |
- ppc:PPC |
667 |
- ppc64:PPC |
668 |
- x86:X86 |
669 |
- amd64:X86 |
670 |
-" |
671 |
- |
672 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
673 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
674 |
- |
675 |
-RDEPEND=" |
676 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
677 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
678 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1:=[${MULTILIB_USEDEP}] ) |
679 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
680 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
681 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
682 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
683 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
684 |
- encode? ( |
685 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
686 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
687 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
688 |
- nvenc? ( media-video/nvidia_video_sdk ) |
689 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
690 |
- snappy? ( >=app-arch/snappy-1.1.2-r1:=[${MULTILIB_USEDEP}] ) |
691 |
- theora? ( |
692 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
693 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
694 |
- ) |
695 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
696 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
697 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
698 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
699 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
700 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
701 |
- ) |
702 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
703 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
704 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
705 |
- frei0r? ( media-plugins/frei0r-plugins ) |
706 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
707 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
708 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
709 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
710 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] ) |
711 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
712 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
713 |
- iec61883? ( |
714 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
715 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
716 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
717 |
- ) |
718 |
- ieee1394? ( |
719 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
720 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
721 |
- ) |
722 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
723 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
724 |
- libass? ( >=media-libs/libass-0.10.2:=[${MULTILIB_USEDEP}] ) |
725 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
726 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
727 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
728 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
729 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
730 |
- mmal? ( media-libs/raspberrypi-userland ) |
731 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
732 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
733 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
734 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
735 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
736 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
737 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
738 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
739 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
740 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
741 |
- sdl? ( media-libs/libsdl2[sound,video,${MULTILIB_USEDEP}] ) |
742 |
- sofalizer? ( |
743 |
- >=sci-libs/netcdf-4.3.2-r1[hdf5] |
744 |
- >=sci-libs/hdf5-1.8.18[hl] |
745 |
- ) |
746 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
747 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
748 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
749 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
750 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
751 |
- vorbis? ( |
752 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
753 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
754 |
- ) |
755 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
756 |
- X? ( |
757 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
758 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
759 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
760 |
- ) |
761 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
762 |
- zeromq? ( >=net-libs/zeromq-4.1.6 ) |
763 |
- zimg? ( >=media-libs/zimg-2.4:=[${MULTILIB_USEDEP}] ) |
764 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
765 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
766 |
- !media-video/qt-faststart |
767 |
- postproc? ( !media-libs/libpostproc ) |
768 |
-" |
769 |
- |
770 |
-DEPEND="${RDEPEND} |
771 |
- >=sys-devel/make-3.81 |
772 |
- doc? ( sys-apps/texinfo ) |
773 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
774 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
775 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
776 |
- test? ( net-misc/wget sys-devel/bc ) |
777 |
- v4l? ( sys-kernel/linux-headers ) |
778 |
-" |
779 |
- |
780 |
-RDEPEND="${RDEPEND} |
781 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
782 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
783 |
- |
784 |
-# Code requiring FFmpeg to be built under gpl license |
785 |
-GPL_REQUIRED_USE=" |
786 |
- postproc? ( gpl ) |
787 |
- frei0r? ( gpl ) |
788 |
- cdio? ( gpl ) |
789 |
- samba? ( gpl ) |
790 |
- encode? ( |
791 |
- x264? ( gpl ) |
792 |
- x265? ( gpl ) |
793 |
- xvid? ( gpl ) |
794 |
- X? ( !xcb? ( gpl ) ) |
795 |
- ) |
796 |
-" |
797 |
-REQUIRED_USE=" |
798 |
- libv4l? ( v4l ) |
799 |
- fftools_cws2fws? ( zlib ) |
800 |
- test? ( encode ) |
801 |
- ${GPL_REQUIRED_USE} |
802 |
- ${CPU_REQUIRED_USE}" |
803 |
-RESTRICT=" |
804 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
805 |
-" |
806 |
- |
807 |
-S=${WORKDIR}/${P/_/-} |
808 |
- |
809 |
-MULTILIB_WRAPPED_HEADERS=( |
810 |
- /usr/include/libavutil/avconfig.h |
811 |
-) |
812 |
- |
813 |
-src_prepare() { |
814 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
815 |
- export revision=git-N-${FFMPEG_REVISION} |
816 |
- fi |
817 |
- default |
818 |
-} |
819 |
- |
820 |
-multilib_src_configure() { |
821 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
822 |
- |
823 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
824 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
825 |
- use samba && myconf+=( --enable-version3 ) |
826 |
- |
827 |
- # Encoders |
828 |
- if use encode ; then |
829 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
830 |
- |
831 |
- # Licensing. |
832 |
- if use amrenc ; then |
833 |
- myconf+=( --enable-version3 ) |
834 |
- fi |
835 |
- else |
836 |
- myconf+=( --disable-encoders ) |
837 |
- fi |
838 |
- |
839 |
- # Indevs |
840 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
841 |
- for i in alsa oss jack ; do |
842 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
843 |
- done |
844 |
- |
845 |
- # Outdevs |
846 |
- for i in alsa oss sdl ; do |
847 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
848 |
- done |
849 |
- |
850 |
- # Decoders |
851 |
- use amr && myconf+=( --enable-version3 ) |
852 |
- use gmp && myconf+=( --enable-version3 ) |
853 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
854 |
- |
855 |
- for i in "${ffuse[@]#+}" ; do |
856 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
857 |
- done |
858 |
- |
859 |
- # (temporarily) disable non-multilib deps |
860 |
- if ! multilib_is_native_abi; then |
861 |
- for i in frei0r netcdf libzmq ; do |
862 |
- myconf+=( --disable-${i} ) |
863 |
- done |
864 |
- fi |
865 |
- |
866 |
- # CPU features |
867 |
- for i in ${CPU_FEATURES_MAP} ; do |
868 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
869 |
- local var="${i#*:}_CPU_FEATURES[@]" |
870 |
- for j in ${!var} ; do |
871 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
872 |
- done |
873 |
- fi |
874 |
- done |
875 |
- |
876 |
- if use pic ; then |
877 |
- myconf+=( --enable-pic ) |
878 |
- # disable asm code if PIC is required |
879 |
- # as the provided asm decidedly is not PIC for x86. |
880 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
881 |
- fi |
882 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
883 |
- |
884 |
- # Try to get cpu type based on CFLAGS. |
885 |
- # Bug #172723 |
886 |
- # We need to do this so that features of that CPU will be better used |
887 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
888 |
- # will just ignore it. |
889 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
890 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
891 |
- myconf+=( --cpu=${i} ) |
892 |
- break |
893 |
- done |
894 |
- |
895 |
- # LTO support, bug #566282 |
896 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
897 |
- |
898 |
- # Mandatory configuration |
899 |
- myconf=( |
900 |
- --enable-avfilter |
901 |
- --enable-avresample |
902 |
- --disable-stripping |
903 |
- "${myconf[@]}" |
904 |
- ) |
905 |
- |
906 |
- # cross compile support |
907 |
- if tc-is-cross-compiler ; then |
908 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) |
909 |
- case ${CHOST} in |
910 |
- *freebsd*) |
911 |
- myconf+=( --target-os=freebsd ) |
912 |
- ;; |
913 |
- *mingw32*) |
914 |
- myconf+=( --target-os=mingw32 ) |
915 |
- ;; |
916 |
- *linux*) |
917 |
- myconf+=( --target-os=linux ) |
918 |
- ;; |
919 |
- esac |
920 |
- fi |
921 |
- |
922 |
- # doc |
923 |
- myconf+=( |
924 |
- $(multilib_native_use_enable doc) |
925 |
- $(multilib_native_use_enable doc htmlpages) |
926 |
- $(multilib_native_enable manpages) |
927 |
- ) |
928 |
- |
929 |
- set -- "${S}/configure" \ |
930 |
- --prefix="${EPREFIX}/usr" \ |
931 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
932 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
933 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
934 |
- --mandir="${EPREFIX}/usr/share/man" \ |
935 |
- --enable-shared \ |
936 |
- --cc="$(tc-getCC)" \ |
937 |
- --cxx="$(tc-getCXX)" \ |
938 |
- --ar="$(tc-getAR)" \ |
939 |
- --optflags="${CFLAGS}" \ |
940 |
- $(use_enable static-libs static) \ |
941 |
- "${myconf[@]}" |
942 |
- echo "${@}" |
943 |
- "${@}" || die |
944 |
-} |
945 |
- |
946 |
-multilib_src_compile() { |
947 |
- emake V=1 |
948 |
- |
949 |
- if multilib_is_native_abi; then |
950 |
- for i in "${FFTOOLS[@]}" ; do |
951 |
- if use fftools_${i} ; then |
952 |
- emake V=1 tools/${i} |
953 |
- fi |
954 |
- done |
955 |
- fi |
956 |
-} |
957 |
- |
958 |
-multilib_src_install() { |
959 |
- emake V=1 DESTDIR="${D}" install install-doc |
960 |
- |
961 |
- if multilib_is_native_abi; then |
962 |
- for i in "${FFTOOLS[@]}" ; do |
963 |
- if use fftools_${i} ; then |
964 |
- dobin tools/${i} |
965 |
- fi |
966 |
- done |
967 |
- fi |
968 |
-} |
969 |
- |
970 |
-multilib_src_install_all() { |
971 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
972 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
973 |
-} |
974 |
- |
975 |
-multilib_src_test() { |
976 |
- 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" \ |
977 |
- emake V=1 fate |
978 |
-} |