1 |
commit: cf11e4dde3fa7caf021d6d0443356f93ec71f707 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 5 08:58:42 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 08:58:42 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf11e4dd |
7 |
|
8 |
media-video/ffmpeg: remove old |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
media-video/ffmpeg/Manifest | 4 - |
13 |
media-video/ffmpeg/ffmpeg-3.0.1.ebuild | 462 --------------------------------- |
14 |
media-video/ffmpeg/ffmpeg-3.0.2.ebuild | 462 --------------------------------- |
15 |
media-video/ffmpeg/ffmpeg-3.1.1.ebuild | 462 --------------------------------- |
16 |
media-video/ffmpeg/ffmpeg-3.1.2.ebuild | 462 --------------------------------- |
17 |
media-video/ffmpeg/metadata.xml | 1 - |
18 |
6 files changed, 1853 deletions(-) |
19 |
|
20 |
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest |
21 |
index 44ac6d4..0ee54c0 100644 |
22 |
--- a/media-video/ffmpeg/Manifest |
23 |
+++ b/media-video/ffmpeg/Manifest |
24 |
@@ -1,7 +1,3 @@ |
25 |
DIST ffmpeg-2.8.6.tar.bz2 8582420 SHA256 40611e329bc354592c6f8f1deb033c31b91f80e91f5707ca4f9afceca78d8e62 SHA512 68fb41884b95953025b9c56496b17e13062196800ff9834dac43a12e9a0048d4a763f50a2256418c91cc850b63713e1debbf9170737f29621f48946adef152dc WHIRLPOOL 20a4b12b5a03f187b753cca43c65bd75b49cc21c9ffabad31b8ac0ab47fc8e017931ad5076b701c303bb594b20acb403d3ec2dabdf647fd262c070c8dabf1eea |
26 |
DIST ffmpeg-2.8.7.tar.bz2 8581128 SHA256 8777ce4a335640fdd13680ba423ef6da330ff5071bfbe27cdbb452379167efe5 SHA512 26c7e50b76c89c606f4a3894c7c42bf1dc70b1778df879ba66723b0b29bfb7a206004bd3e9da29a27f57cf870ce395eb8b7ff1d53d7ba7b3c620d956b1c4cb06 WHIRLPOOL 361a3ef9c664b3b5f489b871071a1ce581cfef089a6a1014988e6c7463d45533d3a8af9b3e49ddb7e2257cef06205771d8e584a090d65e3c645421e963346a35 |
27 |
-DIST ffmpeg-3.0.1.tar.bz2 8879122 SHA256 f7f7052c120f494dd501f96becff9b5a4ae10cfbde97bc2f1e9f0fd6613a4984 SHA512 417ceba9ca3e179ee0c3c4fead7c55f4b6f074bc156516dd61dae0bee0f8f7b2fe79c06c7aa7a748fecba48b8ff96cc4c24d395a833064f1962698ac5fd5a9ad WHIRLPOOL cbb28a851b6df518ae06d89b021a9363183c8b7c59a53125038fd7b32b4954dc1852edd35dde1d05c535631e13512652dea07e75d60b13992ee3653902ecfe9c |
28 |
-DIST ffmpeg-3.0.2.tar.bz2 8883140 SHA256 30e3c77c2f4c358ed087869455a7496cbd7753a5e1b98d20ba49c1004009fd36 SHA512 67697334899b57efd6cfaebca1bb7450635034af34daae1caf77c57239116a7d2854eef3da967d3d1be4b89f346c79e970dc221543ab6181088172460807bc91 WHIRLPOOL f8aab8adb24a420bd6435454a84bc4a8e5068dea82a8282b4037470a9c9131f41d476dea0fdd9b659e9f91f2a835b19cc2bd9d70aa81bcbe861ec32ce954903a |
29 |
-DIST ffmpeg-3.1.1.tar.bz2 9327512 SHA256 a5bca50a90a37b983eaa17c483a387189175f37ca678ae7e51d43e7610b4b3b4 SHA512 b5b4b2d518affa708b05f72201d5ac20446c88b5fb4dd8586cdc29d1132c678be94898e4f5ad27bef4ac987557305838133f45e94ff55d65f22a76f4f312888a WHIRLPOOL cb4cd3505a3b35f41023f6a87e3d724eed14e9c6e786bdc84d9e9c5c24d37ec0590ab130858107cd05c0522ceedd8e2d899b05a58d7cc52e384faaffe805dc13 |
30 |
-DIST ffmpeg-3.1.2.tar.bz2 9331621 SHA256 62eb8d810b93c1ffc23739c0824a91eabfe5e7be81fab34ce740736a110b70f7 SHA512 c12985310043aab49af5985fa0a6d6cbcd698bb1495066d6b262f449cd90943b072efa7eb3158b48bf3f96c80f06d68ca790271a5fd445d941333a8f540555bf WHIRLPOOL 1373de966e5fa5503b7b53ceaff99dce1c3d4b37f3c617aa520f8e7bc1d5b2f4c3453e37d96fbfb4af8628df797f56476f826fce05c241ce3ef19d20f5dedfe8 |
31 |
DIST ffmpeg-3.1.3.tar.bz2 9333069 SHA256 58bc89c65dd114d874efbf76f76368d03b5e407f0a3f42d5b40801c280968a38 SHA512 2c17414b11ea54bc5360e54651daa1c21c4138da86a13900214c5f0209305c6315f9ee81deedffae90f61b2684295e9050a87b3c64d34193ee1695f5ae1a7d96 WHIRLPOOL b60f3a7d97a63ce201e744a9213437621dbcff6a216dc09ff9b863f0a2ca672b177f9d61a809f84393af711cd1cfe91c08b9d14b2d2a6c36b32294351b3bace8 |
32 |
|
33 |
diff --git a/media-video/ffmpeg/ffmpeg-3.0.1.ebuild b/media-video/ffmpeg/ffmpeg-3.0.1.ebuild |
34 |
deleted file mode 100644 |
35 |
index 6abf75c..00000000 |
36 |
--- a/media-video/ffmpeg/ffmpeg-3.0.1.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,462 +0,0 @@ |
39 |
-# Copyright 1999-2016 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
-# $Id$ |
42 |
- |
43 |
-EAPI=6 |
44 |
- |
45 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
46 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
47 |
-# Most consumers will use those three libraries, if a "less used" library |
48 |
-# changes its soname, consumers will have to be rebuilt the old way |
49 |
-# (preserve-libs). |
50 |
-# If, for example, a package does not link to libavformat and only libavformat |
51 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
52 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
53 |
-# doing so since such a case is unlikely. |
54 |
-FFMPEG_SUBSLOT=55.57.57 |
55 |
- |
56 |
-SCM="" |
57 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
58 |
- SCM="git-r3" |
59 |
- EGIT_REPO_URI="git://source.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 ~mips ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
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 lzma +network openssl +postproc |
106 |
- samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb |
107 |
- 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 |
113 |
- # decoders |
114 |
- amr:libopencore-amrwb amr:libopencore-amrnb dcadec:libdcadec fdk:libfdk-aac |
115 |
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
116 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
117 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
118 |
- zvbi:libzvbi |
119 |
- # libavfilter options |
120 |
- bs2b:libbs2b chromaprint flite:libflite frei0r fribidi:libfribidi |
121 |
- fontconfig ladspa libass truetype:libfreetype rubberband:librubberband |
122 |
- zimg:libzimg |
123 |
- # libswresample options |
124 |
- libsoxr |
125 |
- # Threads; we only support pthread for now but ffmpeg supports more |
126 |
- +threads:pthreads |
127 |
-) |
128 |
- |
129 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
130 |
-FFMPEG_ENCODER_FLAG_MAP=( |
131 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
132 |
- faac:libfaac kvazaar:libkvazaar nvenc:nvenc |
133 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
134 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
135 |
-) |
136 |
- |
137 |
-IUSE=" |
138 |
- alsa doc +encode jack oss pic static-libs test v4l |
139 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
140 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
141 |
-" |
142 |
- |
143 |
-# Strings for CPU features in the useflag[:configure_option] form |
144 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
145 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
146 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
147 |
-PPC_CPU_FEATURES=( altivec ) |
148 |
-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 ) |
149 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
150 |
-X86_CPU_REQUIRED_USE=" |
151 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
152 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
153 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
154 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
155 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
156 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
157 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
158 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
159 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
160 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
161 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
162 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
163 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
164 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
165 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
166 |
-" |
167 |
- |
168 |
-IUSE="${IUSE} |
169 |
- ${ARM_CPU_FEATURES[@]%:*} |
170 |
- ${MIPS_CPU_FEATURES[@]%:*} |
171 |
- ${PPC_CPU_FEATURES[@]%:*} |
172 |
- ${X86_CPU_FEATURES[@]%:*} |
173 |
-" |
174 |
- |
175 |
-CPU_REQUIRED_USE=" |
176 |
- ${X86_CPU_REQUIRED_USE} |
177 |
-" |
178 |
- |
179 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
180 |
-# $(tc-arch). |
181 |
-CPU_FEATURES_MAP=" |
182 |
- arm:ARM |
183 |
- arm64:ARM |
184 |
- mips:MIPS |
185 |
- ppc:PPC |
186 |
- ppc64:PPC |
187 |
- x86:X86 |
188 |
- amd64:X86 |
189 |
-" |
190 |
- |
191 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
192 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
193 |
- |
194 |
-RDEPEND=" |
195 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
196 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
197 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
198 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
199 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
200 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
201 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
202 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
203 |
- dcadec? ( media-sound/dcadec[${MULTILIB_USEDEP}] ) |
204 |
- encode? ( |
205 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
206 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
207 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
208 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
209 |
- nvenc? ( media-video/nvidia_video_sdk ) |
210 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
211 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
212 |
- theora? ( |
213 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
214 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
215 |
- ) |
216 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
217 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
218 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
219 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
220 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
221 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
222 |
- ) |
223 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
224 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
225 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
226 |
- frei0r? ( media-plugins/frei0r-plugins ) |
227 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
228 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
229 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
230 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
231 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
232 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
233 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
234 |
- iec61883? ( |
235 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
236 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
237 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
238 |
- ) |
239 |
- ieee1394? ( |
240 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
241 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
242 |
- ) |
243 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
244 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
245 |
- libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
246 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
247 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
248 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
249 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
250 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
251 |
- mmal? ( media-libs/raspberrypi-userland ) |
252 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
253 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
254 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
255 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
256 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
257 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
258 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
259 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
260 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
261 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
262 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
263 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
264 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
265 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
266 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
267 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
268 |
- vorbis? ( |
269 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
270 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
271 |
- ) |
272 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
273 |
- X? ( |
274 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
275 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
276 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
277 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
278 |
- ) |
279 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
280 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
281 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
282 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
283 |
- !media-video/qt-faststart |
284 |
- postproc? ( !media-libs/libpostproc ) |
285 |
-" |
286 |
- |
287 |
-DEPEND="${RDEPEND} |
288 |
- >=sys-devel/make-3.81 |
289 |
- doc? ( sys-apps/texinfo ) |
290 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
291 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
292 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
293 |
- test? ( net-misc/wget sys-devel/bc ) |
294 |
- v4l? ( sys-kernel/linux-headers ) |
295 |
-" |
296 |
- |
297 |
-RDEPEND="${RDEPEND} |
298 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
299 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
300 |
- |
301 |
-# Code requiring FFmpeg to be built under gpl license |
302 |
-GPL_REQUIRED_USE=" |
303 |
- postproc? ( gpl ) |
304 |
- frei0r? ( gpl ) |
305 |
- cdio? ( gpl ) |
306 |
- samba? ( gpl ) |
307 |
- encode? ( |
308 |
- x264? ( gpl ) |
309 |
- x265? ( gpl ) |
310 |
- xvid? ( gpl ) |
311 |
- X? ( !xcb? ( gpl ) ) |
312 |
- ) |
313 |
-" |
314 |
-REQUIRED_USE=" |
315 |
- libv4l? ( v4l ) |
316 |
- fftools_cws2fws? ( zlib ) |
317 |
- test? ( encode ) |
318 |
- ${GPL_REQUIRED_USE} |
319 |
- ${CPU_REQUIRED_USE}" |
320 |
-RESTRICT=" |
321 |
- encode? ( faac? ( bindist ) nvenc? ( bindist ) ) |
322 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
323 |
-" |
324 |
- |
325 |
-S=${WORKDIR}/${P/_/-} |
326 |
- |
327 |
-MULTILIB_WRAPPED_HEADERS=( |
328 |
- /usr/include/libavutil/avconfig.h |
329 |
-) |
330 |
- |
331 |
-src_prepare() { |
332 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
333 |
- export revision=git-N-${FFMPEG_REVISION} |
334 |
- fi |
335 |
- default |
336 |
-} |
337 |
- |
338 |
-multilib_src_configure() { |
339 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
340 |
- |
341 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
342 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
343 |
- use samba && myconf+=( --enable-version3 ) |
344 |
- |
345 |
- # Encoders |
346 |
- if use encode ; then |
347 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
348 |
- |
349 |
- # Licensing. |
350 |
- if use amrenc ; then |
351 |
- myconf+=( --enable-version3 ) |
352 |
- fi |
353 |
- if use faac || use nvenc ; then |
354 |
- myconf+=( --enable-nonfree ) |
355 |
- fi |
356 |
- else |
357 |
- myconf+=( --disable-encoders ) |
358 |
- fi |
359 |
- |
360 |
- # Indevs |
361 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
362 |
- for i in alsa oss jack ; do |
363 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
364 |
- done |
365 |
- use xcb || ffuse+=( X:x11grab ) |
366 |
- |
367 |
- # Outdevs |
368 |
- for i in alsa oss sdl ; do |
369 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
370 |
- done |
371 |
- |
372 |
- # Decoders |
373 |
- use amr && myconf+=( --enable-version3 ) |
374 |
- use gmp && myconf+=( --enable-version3 ) |
375 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
376 |
- |
377 |
- for i in "${ffuse[@]#+}" ; do |
378 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
379 |
- done |
380 |
- |
381 |
- # (temporarily) disable non-multilib deps |
382 |
- if ! multilib_is_native_abi; then |
383 |
- for i in frei0r ; do |
384 |
- myconf+=( --disable-${i} ) |
385 |
- done |
386 |
- fi |
387 |
- |
388 |
- # CPU features |
389 |
- for i in ${CPU_FEATURES_MAP} ; do |
390 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
391 |
- local var="${i#*:}_CPU_FEATURES[@]" |
392 |
- for j in ${!var} ; do |
393 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
394 |
- done |
395 |
- fi |
396 |
- done |
397 |
- |
398 |
- if use pic ; then |
399 |
- myconf+=( --enable-pic ) |
400 |
- # disable asm code if PIC is required |
401 |
- # as the provided asm decidedly is not PIC for x86. |
402 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
403 |
- fi |
404 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
405 |
- |
406 |
- # Try to get cpu type based on CFLAGS. |
407 |
- # Bug #172723 |
408 |
- # We need to do this so that features of that CPU will be better used |
409 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
410 |
- # will just ignore it. |
411 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
412 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
413 |
- myconf+=( --cpu=${i} ) |
414 |
- break |
415 |
- done |
416 |
- |
417 |
- # LTO support, bug #566282 |
418 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
419 |
- |
420 |
- # Mandatory configuration |
421 |
- myconf=( |
422 |
- --enable-avfilter |
423 |
- --enable-avresample |
424 |
- --disable-stripping |
425 |
- "${myconf[@]}" |
426 |
- ) |
427 |
- |
428 |
- # cross compile support |
429 |
- if tc-is-cross-compiler ; then |
430 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
431 |
- case ${CHOST} in |
432 |
- *freebsd*) |
433 |
- myconf+=( --target-os=freebsd ) |
434 |
- ;; |
435 |
- *mingw32*) |
436 |
- myconf+=( --target-os=mingw32 ) |
437 |
- ;; |
438 |
- *linux*) |
439 |
- myconf+=( --target-os=linux ) |
440 |
- ;; |
441 |
- esac |
442 |
- fi |
443 |
- |
444 |
- # doc |
445 |
- myconf+=( |
446 |
- $(multilib_native_use_enable doc) |
447 |
- $(multilib_native_use_enable doc htmlpages) |
448 |
- $(multilib_native_enable manpages) |
449 |
- ) |
450 |
- |
451 |
- set -- "${S}/configure" \ |
452 |
- --prefix="${EPREFIX}/usr" \ |
453 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
454 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
455 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
456 |
- --mandir="${EPREFIX}/usr/share/man" \ |
457 |
- --enable-shared \ |
458 |
- --cc="$(tc-getCC)" \ |
459 |
- --cxx="$(tc-getCXX)" \ |
460 |
- --ar="$(tc-getAR)" \ |
461 |
- --optflags="${CFLAGS}" \ |
462 |
- $(use_enable static-libs static) \ |
463 |
- "${myconf[@]}" |
464 |
- echo "${@}" |
465 |
- "${@}" || die |
466 |
-} |
467 |
- |
468 |
-multilib_src_compile() { |
469 |
- emake V=1 |
470 |
- |
471 |
- if multilib_is_native_abi; then |
472 |
- for i in "${FFTOOLS[@]}" ; do |
473 |
- if use fftools_${i} ; then |
474 |
- emake V=1 tools/${i} |
475 |
- fi |
476 |
- done |
477 |
- fi |
478 |
-} |
479 |
- |
480 |
-multilib_src_install() { |
481 |
- emake V=1 DESTDIR="${D}" install install-doc |
482 |
- |
483 |
- if multilib_is_native_abi; then |
484 |
- for i in "${FFTOOLS[@]}" ; do |
485 |
- if use fftools_${i} ; then |
486 |
- dobin tools/${i} |
487 |
- fi |
488 |
- done |
489 |
- fi |
490 |
-} |
491 |
- |
492 |
-multilib_src_install_all() { |
493 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
494 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
495 |
-} |
496 |
- |
497 |
-multilib_src_test() { |
498 |
- 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" \ |
499 |
- emake V=1 fate |
500 |
-} |
501 |
|
502 |
diff --git a/media-video/ffmpeg/ffmpeg-3.0.2.ebuild b/media-video/ffmpeg/ffmpeg-3.0.2.ebuild |
503 |
deleted file mode 100644 |
504 |
index 6abf75c..00000000 |
505 |
--- a/media-video/ffmpeg/ffmpeg-3.0.2.ebuild |
506 |
+++ /dev/null |
507 |
@@ -1,462 +0,0 @@ |
508 |
-# Copyright 1999-2016 Gentoo Foundation |
509 |
-# Distributed under the terms of the GNU General Public License v2 |
510 |
-# $Id$ |
511 |
- |
512 |
-EAPI=6 |
513 |
- |
514 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
515 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
516 |
-# Most consumers will use those three libraries, if a "less used" library |
517 |
-# changes its soname, consumers will have to be rebuilt the old way |
518 |
-# (preserve-libs). |
519 |
-# If, for example, a package does not link to libavformat and only libavformat |
520 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
521 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
522 |
-# doing so since such a case is unlikely. |
523 |
-FFMPEG_SUBSLOT=55.57.57 |
524 |
- |
525 |
-SCM="" |
526 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
527 |
- SCM="git-r3" |
528 |
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
529 |
-fi |
530 |
- |
531 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
532 |
- |
533 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
534 |
-HOMEPAGE="http://ffmpeg.org/" |
535 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
536 |
- SRC_URI="" |
537 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
538 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
539 |
-else # Release |
540 |
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
541 |
-fi |
542 |
-FFMPEG_REVISION="${PV#*_p}" |
543 |
- |
544 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
545 |
-LICENSE=" |
546 |
- !gpl? ( LGPL-2.1 ) |
547 |
- gpl? ( GPL-2 ) |
548 |
- amr? ( |
549 |
- gpl? ( GPL-3 ) |
550 |
- !gpl? ( LGPL-3 ) |
551 |
- ) |
552 |
- gmp? ( |
553 |
- gpl? ( GPL-3 ) |
554 |
- !gpl? ( LGPL-3 ) |
555 |
- ) |
556 |
- encode? ( |
557 |
- amrenc? ( |
558 |
- gpl? ( GPL-3 ) |
559 |
- !gpl? ( LGPL-3 ) |
560 |
- ) |
561 |
- ) |
562 |
- samba? ( GPL-3 ) |
563 |
-" |
564 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
565 |
- KEYWORDS="~amd64 ~mips ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
566 |
-fi |
567 |
- |
568 |
-# Options to use as use_enable in the foo[:bar] form. |
569 |
-# This will feed configure with $(use_enable foo bar) |
570 |
-# or $(use_enable foo foo) if no :bar is set. |
571 |
-# foo is added to IUSE. |
572 |
-FFMPEG_FLAG_MAP=( |
573 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
574 |
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc |
575 |
- samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb |
576 |
- xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
577 |
- # libavdevice options |
578 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
579 |
- opengl |
580 |
- # indevs |
581 |
- libv4l:libv4l2 pulseaudio:libpulse |
582 |
- # decoders |
583 |
- amr:libopencore-amrwb amr:libopencore-amrnb dcadec:libdcadec fdk:libfdk-aac |
584 |
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
585 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
586 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
587 |
- zvbi:libzvbi |
588 |
- # libavfilter options |
589 |
- bs2b:libbs2b chromaprint flite:libflite frei0r fribidi:libfribidi |
590 |
- fontconfig ladspa libass truetype:libfreetype rubberband:librubberband |
591 |
- zimg:libzimg |
592 |
- # libswresample options |
593 |
- libsoxr |
594 |
- # Threads; we only support pthread for now but ffmpeg supports more |
595 |
- +threads:pthreads |
596 |
-) |
597 |
- |
598 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
599 |
-FFMPEG_ENCODER_FLAG_MAP=( |
600 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
601 |
- faac:libfaac kvazaar:libkvazaar nvenc:nvenc |
602 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
603 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
604 |
-) |
605 |
- |
606 |
-IUSE=" |
607 |
- alsa doc +encode jack oss pic static-libs test v4l |
608 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
609 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
610 |
-" |
611 |
- |
612 |
-# Strings for CPU features in the useflag[:configure_option] form |
613 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
614 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
615 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
616 |
-PPC_CPU_FEATURES=( altivec ) |
617 |
-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 ) |
618 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
619 |
-X86_CPU_REQUIRED_USE=" |
620 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
621 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
622 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
623 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
624 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
625 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
626 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
627 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
628 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
629 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
630 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
631 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
632 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
633 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
634 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
635 |
-" |
636 |
- |
637 |
-IUSE="${IUSE} |
638 |
- ${ARM_CPU_FEATURES[@]%:*} |
639 |
- ${MIPS_CPU_FEATURES[@]%:*} |
640 |
- ${PPC_CPU_FEATURES[@]%:*} |
641 |
- ${X86_CPU_FEATURES[@]%:*} |
642 |
-" |
643 |
- |
644 |
-CPU_REQUIRED_USE=" |
645 |
- ${X86_CPU_REQUIRED_USE} |
646 |
-" |
647 |
- |
648 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
649 |
-# $(tc-arch). |
650 |
-CPU_FEATURES_MAP=" |
651 |
- arm:ARM |
652 |
- arm64:ARM |
653 |
- mips:MIPS |
654 |
- ppc:PPC |
655 |
- ppc64:PPC |
656 |
- x86:X86 |
657 |
- amd64:X86 |
658 |
-" |
659 |
- |
660 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
661 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
662 |
- |
663 |
-RDEPEND=" |
664 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
665 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
666 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
667 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
668 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
669 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
670 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
671 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
672 |
- dcadec? ( media-sound/dcadec[${MULTILIB_USEDEP}] ) |
673 |
- encode? ( |
674 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
675 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
676 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
677 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
678 |
- nvenc? ( media-video/nvidia_video_sdk ) |
679 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
680 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
681 |
- theora? ( |
682 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
683 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
684 |
- ) |
685 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
686 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
687 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
688 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
689 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
690 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
691 |
- ) |
692 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
693 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
694 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
695 |
- frei0r? ( media-plugins/frei0r-plugins ) |
696 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
697 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
698 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
699 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
700 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
701 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
702 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
703 |
- iec61883? ( |
704 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
705 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
706 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
707 |
- ) |
708 |
- ieee1394? ( |
709 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
710 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
711 |
- ) |
712 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
713 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
714 |
- libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
715 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
716 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
717 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
718 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
719 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
720 |
- mmal? ( media-libs/raspberrypi-userland ) |
721 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
722 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
723 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
724 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
725 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
726 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
727 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
728 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
729 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
730 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
731 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
732 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
733 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
734 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
735 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
736 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
737 |
- vorbis? ( |
738 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
739 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
740 |
- ) |
741 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
742 |
- X? ( |
743 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
744 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
745 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
746 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
747 |
- ) |
748 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
749 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
750 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
751 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
752 |
- !media-video/qt-faststart |
753 |
- postproc? ( !media-libs/libpostproc ) |
754 |
-" |
755 |
- |
756 |
-DEPEND="${RDEPEND} |
757 |
- >=sys-devel/make-3.81 |
758 |
- doc? ( sys-apps/texinfo ) |
759 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
760 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
761 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
762 |
- test? ( net-misc/wget sys-devel/bc ) |
763 |
- v4l? ( sys-kernel/linux-headers ) |
764 |
-" |
765 |
- |
766 |
-RDEPEND="${RDEPEND} |
767 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
768 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
769 |
- |
770 |
-# Code requiring FFmpeg to be built under gpl license |
771 |
-GPL_REQUIRED_USE=" |
772 |
- postproc? ( gpl ) |
773 |
- frei0r? ( gpl ) |
774 |
- cdio? ( gpl ) |
775 |
- samba? ( gpl ) |
776 |
- encode? ( |
777 |
- x264? ( gpl ) |
778 |
- x265? ( gpl ) |
779 |
- xvid? ( gpl ) |
780 |
- X? ( !xcb? ( gpl ) ) |
781 |
- ) |
782 |
-" |
783 |
-REQUIRED_USE=" |
784 |
- libv4l? ( v4l ) |
785 |
- fftools_cws2fws? ( zlib ) |
786 |
- test? ( encode ) |
787 |
- ${GPL_REQUIRED_USE} |
788 |
- ${CPU_REQUIRED_USE}" |
789 |
-RESTRICT=" |
790 |
- encode? ( faac? ( bindist ) nvenc? ( bindist ) ) |
791 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
792 |
-" |
793 |
- |
794 |
-S=${WORKDIR}/${P/_/-} |
795 |
- |
796 |
-MULTILIB_WRAPPED_HEADERS=( |
797 |
- /usr/include/libavutil/avconfig.h |
798 |
-) |
799 |
- |
800 |
-src_prepare() { |
801 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
802 |
- export revision=git-N-${FFMPEG_REVISION} |
803 |
- fi |
804 |
- default |
805 |
-} |
806 |
- |
807 |
-multilib_src_configure() { |
808 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
809 |
- |
810 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
811 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
812 |
- use samba && myconf+=( --enable-version3 ) |
813 |
- |
814 |
- # Encoders |
815 |
- if use encode ; then |
816 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
817 |
- |
818 |
- # Licensing. |
819 |
- if use amrenc ; then |
820 |
- myconf+=( --enable-version3 ) |
821 |
- fi |
822 |
- if use faac || use nvenc ; then |
823 |
- myconf+=( --enable-nonfree ) |
824 |
- fi |
825 |
- else |
826 |
- myconf+=( --disable-encoders ) |
827 |
- fi |
828 |
- |
829 |
- # Indevs |
830 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
831 |
- for i in alsa oss jack ; do |
832 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
833 |
- done |
834 |
- use xcb || ffuse+=( X:x11grab ) |
835 |
- |
836 |
- # Outdevs |
837 |
- for i in alsa oss sdl ; do |
838 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
839 |
- done |
840 |
- |
841 |
- # Decoders |
842 |
- use amr && myconf+=( --enable-version3 ) |
843 |
- use gmp && myconf+=( --enable-version3 ) |
844 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
845 |
- |
846 |
- for i in "${ffuse[@]#+}" ; do |
847 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
848 |
- done |
849 |
- |
850 |
- # (temporarily) disable non-multilib deps |
851 |
- if ! multilib_is_native_abi; then |
852 |
- for i in frei0r ; do |
853 |
- myconf+=( --disable-${i} ) |
854 |
- done |
855 |
- fi |
856 |
- |
857 |
- # CPU features |
858 |
- for i in ${CPU_FEATURES_MAP} ; do |
859 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
860 |
- local var="${i#*:}_CPU_FEATURES[@]" |
861 |
- for j in ${!var} ; do |
862 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
863 |
- done |
864 |
- fi |
865 |
- done |
866 |
- |
867 |
- if use pic ; then |
868 |
- myconf+=( --enable-pic ) |
869 |
- # disable asm code if PIC is required |
870 |
- # as the provided asm decidedly is not PIC for x86. |
871 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
872 |
- fi |
873 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
874 |
- |
875 |
- # Try to get cpu type based on CFLAGS. |
876 |
- # Bug #172723 |
877 |
- # We need to do this so that features of that CPU will be better used |
878 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
879 |
- # will just ignore it. |
880 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
881 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
882 |
- myconf+=( --cpu=${i} ) |
883 |
- break |
884 |
- done |
885 |
- |
886 |
- # LTO support, bug #566282 |
887 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
888 |
- |
889 |
- # Mandatory configuration |
890 |
- myconf=( |
891 |
- --enable-avfilter |
892 |
- --enable-avresample |
893 |
- --disable-stripping |
894 |
- "${myconf[@]}" |
895 |
- ) |
896 |
- |
897 |
- # cross compile support |
898 |
- if tc-is-cross-compiler ; then |
899 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
900 |
- case ${CHOST} in |
901 |
- *freebsd*) |
902 |
- myconf+=( --target-os=freebsd ) |
903 |
- ;; |
904 |
- *mingw32*) |
905 |
- myconf+=( --target-os=mingw32 ) |
906 |
- ;; |
907 |
- *linux*) |
908 |
- myconf+=( --target-os=linux ) |
909 |
- ;; |
910 |
- esac |
911 |
- fi |
912 |
- |
913 |
- # doc |
914 |
- myconf+=( |
915 |
- $(multilib_native_use_enable doc) |
916 |
- $(multilib_native_use_enable doc htmlpages) |
917 |
- $(multilib_native_enable manpages) |
918 |
- ) |
919 |
- |
920 |
- set -- "${S}/configure" \ |
921 |
- --prefix="${EPREFIX}/usr" \ |
922 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
923 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
924 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
925 |
- --mandir="${EPREFIX}/usr/share/man" \ |
926 |
- --enable-shared \ |
927 |
- --cc="$(tc-getCC)" \ |
928 |
- --cxx="$(tc-getCXX)" \ |
929 |
- --ar="$(tc-getAR)" \ |
930 |
- --optflags="${CFLAGS}" \ |
931 |
- $(use_enable static-libs static) \ |
932 |
- "${myconf[@]}" |
933 |
- echo "${@}" |
934 |
- "${@}" || die |
935 |
-} |
936 |
- |
937 |
-multilib_src_compile() { |
938 |
- emake V=1 |
939 |
- |
940 |
- if multilib_is_native_abi; then |
941 |
- for i in "${FFTOOLS[@]}" ; do |
942 |
- if use fftools_${i} ; then |
943 |
- emake V=1 tools/${i} |
944 |
- fi |
945 |
- done |
946 |
- fi |
947 |
-} |
948 |
- |
949 |
-multilib_src_install() { |
950 |
- emake V=1 DESTDIR="${D}" install install-doc |
951 |
- |
952 |
- if multilib_is_native_abi; then |
953 |
- for i in "${FFTOOLS[@]}" ; do |
954 |
- if use fftools_${i} ; then |
955 |
- dobin tools/${i} |
956 |
- fi |
957 |
- done |
958 |
- fi |
959 |
-} |
960 |
- |
961 |
-multilib_src_install_all() { |
962 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
963 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
964 |
-} |
965 |
- |
966 |
-multilib_src_test() { |
967 |
- 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" \ |
968 |
- emake V=1 fate |
969 |
-} |
970 |
|
971 |
diff --git a/media-video/ffmpeg/ffmpeg-3.1.1.ebuild b/media-video/ffmpeg/ffmpeg-3.1.1.ebuild |
972 |
deleted file mode 100644 |
973 |
index 19db1ed..00000000 |
974 |
--- a/media-video/ffmpeg/ffmpeg-3.1.1.ebuild |
975 |
+++ /dev/null |
976 |
@@ -1,462 +0,0 @@ |
977 |
-# Copyright 1999-2016 Gentoo Foundation |
978 |
-# Distributed under the terms of the GNU General Public License v2 |
979 |
-# $Id$ |
980 |
- |
981 |
-EAPI=6 |
982 |
- |
983 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
984 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
985 |
-# Most consumers will use those three libraries, if a "less used" library |
986 |
-# changes its soname, consumers will have to be rebuilt the old way |
987 |
-# (preserve-libs). |
988 |
-# If, for example, a package does not link to libavformat and only libavformat |
989 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
990 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
991 |
-# doing so since such a case is unlikely. |
992 |
-FFMPEG_SUBSLOT=55.57.57 |
993 |
- |
994 |
-SCM="" |
995 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
996 |
- SCM="git-r3" |
997 |
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
998 |
-fi |
999 |
- |
1000 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
1001 |
- |
1002 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
1003 |
-HOMEPAGE="http://ffmpeg.org/" |
1004 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
1005 |
- SRC_URI="" |
1006 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
1007 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
1008 |
-else # Release |
1009 |
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
1010 |
-fi |
1011 |
-FFMPEG_REVISION="${PV#*_p}" |
1012 |
- |
1013 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
1014 |
-LICENSE=" |
1015 |
- !gpl? ( LGPL-2.1 ) |
1016 |
- gpl? ( GPL-2 ) |
1017 |
- amr? ( |
1018 |
- gpl? ( GPL-3 ) |
1019 |
- !gpl? ( LGPL-3 ) |
1020 |
- ) |
1021 |
- gmp? ( |
1022 |
- gpl? ( GPL-3 ) |
1023 |
- !gpl? ( LGPL-3 ) |
1024 |
- ) |
1025 |
- encode? ( |
1026 |
- amrenc? ( |
1027 |
- gpl? ( GPL-3 ) |
1028 |
- !gpl? ( LGPL-3 ) |
1029 |
- ) |
1030 |
- ) |
1031 |
- samba? ( GPL-3 ) |
1032 |
-" |
1033 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
1034 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
1035 |
-fi |
1036 |
- |
1037 |
-# Options to use as use_enable in the foo[:bar] form. |
1038 |
-# This will feed configure with $(use_enable foo bar) |
1039 |
-# or $(use_enable foo foo) if no :bar is set. |
1040 |
-# foo is added to IUSE. |
1041 |
-FFMPEG_FLAG_MAP=( |
1042 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
1043 |
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc |
1044 |
- samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb |
1045 |
- xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
1046 |
- # libavdevice options |
1047 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
1048 |
- opengl |
1049 |
- # indevs |
1050 |
- libv4l:libv4l2 pulseaudio:libpulse |
1051 |
- # decoders |
1052 |
- amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac |
1053 |
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
1054 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
1055 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
1056 |
- zvbi:libzvbi |
1057 |
- # libavfilter options |
1058 |
- bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r |
1059 |
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype |
1060 |
- rubberband:librubberband zimg:libzimg |
1061 |
- # libswresample options |
1062 |
- libsoxr |
1063 |
- # Threads; we only support pthread for now but ffmpeg supports more |
1064 |
- +threads:pthreads |
1065 |
-) |
1066 |
- |
1067 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
1068 |
-FFMPEG_ENCODER_FLAG_MAP=( |
1069 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
1070 |
- faac:libfaac kvazaar:libkvazaar nvenc:nvenc |
1071 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
1072 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
1073 |
-) |
1074 |
- |
1075 |
-IUSE=" |
1076 |
- alsa doc +encode jack oss pic static-libs test v4l |
1077 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
1078 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
1079 |
-" |
1080 |
- |
1081 |
-# Strings for CPU features in the useflag[:configure_option] form |
1082 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
1083 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
1084 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
1085 |
-PPC_CPU_FEATURES=( altivec ) |
1086 |
-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 ) |
1087 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
1088 |
-X86_CPU_REQUIRED_USE=" |
1089 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
1090 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
1091 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
1092 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
1093 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
1094 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
1095 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
1096 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
1097 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
1098 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
1099 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
1100 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
1101 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
1102 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
1103 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
1104 |
-" |
1105 |
- |
1106 |
-IUSE="${IUSE} |
1107 |
- ${ARM_CPU_FEATURES[@]%:*} |
1108 |
- ${MIPS_CPU_FEATURES[@]%:*} |
1109 |
- ${PPC_CPU_FEATURES[@]%:*} |
1110 |
- ${X86_CPU_FEATURES[@]%:*} |
1111 |
-" |
1112 |
- |
1113 |
-CPU_REQUIRED_USE=" |
1114 |
- ${X86_CPU_REQUIRED_USE} |
1115 |
-" |
1116 |
- |
1117 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
1118 |
-# $(tc-arch). |
1119 |
-CPU_FEATURES_MAP=" |
1120 |
- arm:ARM |
1121 |
- arm64:ARM |
1122 |
- mips:MIPS |
1123 |
- ppc:PPC |
1124 |
- ppc64:PPC |
1125 |
- x86:X86 |
1126 |
- amd64:X86 |
1127 |
-" |
1128 |
- |
1129 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
1130 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
1131 |
- |
1132 |
-RDEPEND=" |
1133 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
1134 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
1135 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
1136 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
1137 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
1138 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
1139 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
1140 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
1141 |
- ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] ) |
1142 |
- encode? ( |
1143 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
1144 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
1145 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
1146 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
1147 |
- nvenc? ( media-video/nvidia_video_sdk ) |
1148 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
1149 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
1150 |
- theora? ( |
1151 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
1152 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1153 |
- ) |
1154 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
1155 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
1156 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
1157 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
1158 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
1159 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
1160 |
- ) |
1161 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
1162 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
1163 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
1164 |
- frei0r? ( media-plugins/frei0r-plugins ) |
1165 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
1166 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
1167 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
1168 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
1169 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
1170 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
1171 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
1172 |
- iec61883? ( |
1173 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
1174 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1175 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
1176 |
- ) |
1177 |
- ieee1394? ( |
1178 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
1179 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1180 |
- ) |
1181 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
1182 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
1183 |
- libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
1184 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
1185 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
1186 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
1187 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
1188 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
1189 |
- mmal? ( media-libs/raspberrypi-userland ) |
1190 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
1191 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
1192 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
1193 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
1194 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
1195 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
1196 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
1197 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
1198 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
1199 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
1200 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
1201 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
1202 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
1203 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
1204 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
1205 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
1206 |
- vorbis? ( |
1207 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
1208 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1209 |
- ) |
1210 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
1211 |
- X? ( |
1212 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
1213 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
1214 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
1215 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
1216 |
- ) |
1217 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
1218 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
1219 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
1220 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
1221 |
- !media-video/qt-faststart |
1222 |
- postproc? ( !media-libs/libpostproc ) |
1223 |
-" |
1224 |
- |
1225 |
-DEPEND="${RDEPEND} |
1226 |
- >=sys-devel/make-3.81 |
1227 |
- doc? ( sys-apps/texinfo ) |
1228 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
1229 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
1230 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
1231 |
- test? ( net-misc/wget sys-devel/bc ) |
1232 |
- v4l? ( sys-kernel/linux-headers ) |
1233 |
-" |
1234 |
- |
1235 |
-RDEPEND="${RDEPEND} |
1236 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
1237 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
1238 |
- |
1239 |
-# Code requiring FFmpeg to be built under gpl license |
1240 |
-GPL_REQUIRED_USE=" |
1241 |
- postproc? ( gpl ) |
1242 |
- frei0r? ( gpl ) |
1243 |
- cdio? ( gpl ) |
1244 |
- samba? ( gpl ) |
1245 |
- encode? ( |
1246 |
- x264? ( gpl ) |
1247 |
- x265? ( gpl ) |
1248 |
- xvid? ( gpl ) |
1249 |
- X? ( !xcb? ( gpl ) ) |
1250 |
- ) |
1251 |
-" |
1252 |
-REQUIRED_USE=" |
1253 |
- libv4l? ( v4l ) |
1254 |
- fftools_cws2fws? ( zlib ) |
1255 |
- test? ( encode ) |
1256 |
- ${GPL_REQUIRED_USE} |
1257 |
- ${CPU_REQUIRED_USE}" |
1258 |
-RESTRICT=" |
1259 |
- encode? ( faac? ( bindist ) ) |
1260 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
1261 |
-" |
1262 |
- |
1263 |
-S=${WORKDIR}/${P/_/-} |
1264 |
- |
1265 |
-MULTILIB_WRAPPED_HEADERS=( |
1266 |
- /usr/include/libavutil/avconfig.h |
1267 |
-) |
1268 |
- |
1269 |
-src_prepare() { |
1270 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
1271 |
- export revision=git-N-${FFMPEG_REVISION} |
1272 |
- fi |
1273 |
- default |
1274 |
-} |
1275 |
- |
1276 |
-multilib_src_configure() { |
1277 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
1278 |
- |
1279 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
1280 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
1281 |
- use samba && myconf+=( --enable-version3 ) |
1282 |
- |
1283 |
- # Encoders |
1284 |
- if use encode ; then |
1285 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
1286 |
- |
1287 |
- # Licensing. |
1288 |
- if use amrenc ; then |
1289 |
- myconf+=( --enable-version3 ) |
1290 |
- fi |
1291 |
- if use faac ; then |
1292 |
- myconf+=( --enable-nonfree ) |
1293 |
- fi |
1294 |
- else |
1295 |
- myconf+=( --disable-encoders ) |
1296 |
- fi |
1297 |
- |
1298 |
- # Indevs |
1299 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
1300 |
- for i in alsa oss jack ; do |
1301 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
1302 |
- done |
1303 |
- use xcb || ffuse+=( X:x11grab ) |
1304 |
- |
1305 |
- # Outdevs |
1306 |
- for i in alsa oss sdl ; do |
1307 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
1308 |
- done |
1309 |
- |
1310 |
- # Decoders |
1311 |
- use amr && myconf+=( --enable-version3 ) |
1312 |
- use gmp && myconf+=( --enable-version3 ) |
1313 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
1314 |
- |
1315 |
- for i in "${ffuse[@]#+}" ; do |
1316 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
1317 |
- done |
1318 |
- |
1319 |
- # (temporarily) disable non-multilib deps |
1320 |
- if ! multilib_is_native_abi; then |
1321 |
- for i in frei0r ; do |
1322 |
- myconf+=( --disable-${i} ) |
1323 |
- done |
1324 |
- fi |
1325 |
- |
1326 |
- # CPU features |
1327 |
- for i in ${CPU_FEATURES_MAP} ; do |
1328 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
1329 |
- local var="${i#*:}_CPU_FEATURES[@]" |
1330 |
- for j in ${!var} ; do |
1331 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
1332 |
- done |
1333 |
- fi |
1334 |
- done |
1335 |
- |
1336 |
- if use pic ; then |
1337 |
- myconf+=( --enable-pic ) |
1338 |
- # disable asm code if PIC is required |
1339 |
- # as the provided asm decidedly is not PIC for x86. |
1340 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
1341 |
- fi |
1342 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
1343 |
- |
1344 |
- # Try to get cpu type based on CFLAGS. |
1345 |
- # Bug #172723 |
1346 |
- # We need to do this so that features of that CPU will be better used |
1347 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
1348 |
- # will just ignore it. |
1349 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
1350 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
1351 |
- myconf+=( --cpu=${i} ) |
1352 |
- break |
1353 |
- done |
1354 |
- |
1355 |
- # LTO support, bug #566282 |
1356 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
1357 |
- |
1358 |
- # Mandatory configuration |
1359 |
- myconf=( |
1360 |
- --enable-avfilter |
1361 |
- --enable-avresample |
1362 |
- --disable-stripping |
1363 |
- "${myconf[@]}" |
1364 |
- ) |
1365 |
- |
1366 |
- # cross compile support |
1367 |
- if tc-is-cross-compiler ; then |
1368 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
1369 |
- case ${CHOST} in |
1370 |
- *freebsd*) |
1371 |
- myconf+=( --target-os=freebsd ) |
1372 |
- ;; |
1373 |
- *mingw32*) |
1374 |
- myconf+=( --target-os=mingw32 ) |
1375 |
- ;; |
1376 |
- *linux*) |
1377 |
- myconf+=( --target-os=linux ) |
1378 |
- ;; |
1379 |
- esac |
1380 |
- fi |
1381 |
- |
1382 |
- # doc |
1383 |
- myconf+=( |
1384 |
- $(multilib_native_use_enable doc) |
1385 |
- $(multilib_native_use_enable doc htmlpages) |
1386 |
- $(multilib_native_enable manpages) |
1387 |
- ) |
1388 |
- |
1389 |
- set -- "${S}/configure" \ |
1390 |
- --prefix="${EPREFIX}/usr" \ |
1391 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
1392 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1393 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
1394 |
- --mandir="${EPREFIX}/usr/share/man" \ |
1395 |
- --enable-shared \ |
1396 |
- --cc="$(tc-getCC)" \ |
1397 |
- --cxx="$(tc-getCXX)" \ |
1398 |
- --ar="$(tc-getAR)" \ |
1399 |
- --optflags="${CFLAGS}" \ |
1400 |
- $(use_enable static-libs static) \ |
1401 |
- "${myconf[@]}" |
1402 |
- echo "${@}" |
1403 |
- "${@}" || die |
1404 |
-} |
1405 |
- |
1406 |
-multilib_src_compile() { |
1407 |
- emake V=1 |
1408 |
- |
1409 |
- if multilib_is_native_abi; then |
1410 |
- for i in "${FFTOOLS[@]}" ; do |
1411 |
- if use fftools_${i} ; then |
1412 |
- emake V=1 tools/${i} |
1413 |
- fi |
1414 |
- done |
1415 |
- fi |
1416 |
-} |
1417 |
- |
1418 |
-multilib_src_install() { |
1419 |
- emake V=1 DESTDIR="${D}" install install-doc |
1420 |
- |
1421 |
- if multilib_is_native_abi; then |
1422 |
- for i in "${FFTOOLS[@]}" ; do |
1423 |
- if use fftools_${i} ; then |
1424 |
- dobin tools/${i} |
1425 |
- fi |
1426 |
- done |
1427 |
- fi |
1428 |
-} |
1429 |
- |
1430 |
-multilib_src_install_all() { |
1431 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
1432 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
1433 |
-} |
1434 |
- |
1435 |
-multilib_src_test() { |
1436 |
- 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" \ |
1437 |
- emake V=1 fate |
1438 |
-} |
1439 |
|
1440 |
diff --git a/media-video/ffmpeg/ffmpeg-3.1.2.ebuild b/media-video/ffmpeg/ffmpeg-3.1.2.ebuild |
1441 |
deleted file mode 100644 |
1442 |
index 19db1ed..00000000 |
1443 |
--- a/media-video/ffmpeg/ffmpeg-3.1.2.ebuild |
1444 |
+++ /dev/null |
1445 |
@@ -1,462 +0,0 @@ |
1446 |
-# Copyright 1999-2016 Gentoo Foundation |
1447 |
-# Distributed under the terms of the GNU General Public License v2 |
1448 |
-# $Id$ |
1449 |
- |
1450 |
-EAPI=6 |
1451 |
- |
1452 |
-# Subslot: libavutil major.libavcodec major.libavformat major |
1453 |
-# Since FFmpeg ships several libraries, subslot is kind of limited here. |
1454 |
-# Most consumers will use those three libraries, if a "less used" library |
1455 |
-# changes its soname, consumers will have to be rebuilt the old way |
1456 |
-# (preserve-libs). |
1457 |
-# If, for example, a package does not link to libavformat and only libavformat |
1458 |
-# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
1459 |
-# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
1460 |
-# doing so since such a case is unlikely. |
1461 |
-FFMPEG_SUBSLOT=55.57.57 |
1462 |
- |
1463 |
-SCM="" |
1464 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
1465 |
- SCM="git-r3" |
1466 |
- EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
1467 |
-fi |
1468 |
- |
1469 |
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
1470 |
- |
1471 |
-DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
1472 |
-HOMEPAGE="http://ffmpeg.org/" |
1473 |
-if [ "${PV#9999}" != "${PV}" ] ; then |
1474 |
- SRC_URI="" |
1475 |
-elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
1476 |
- SRC_URI="mirror://gentoo/${P}.tar.bz2" |
1477 |
-else # Release |
1478 |
- SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
1479 |
-fi |
1480 |
-FFMPEG_REVISION="${PV#*_p}" |
1481 |
- |
1482 |
-SLOT="0/${FFMPEG_SUBSLOT}" |
1483 |
-LICENSE=" |
1484 |
- !gpl? ( LGPL-2.1 ) |
1485 |
- gpl? ( GPL-2 ) |
1486 |
- amr? ( |
1487 |
- gpl? ( GPL-3 ) |
1488 |
- !gpl? ( LGPL-3 ) |
1489 |
- ) |
1490 |
- gmp? ( |
1491 |
- gpl? ( GPL-3 ) |
1492 |
- !gpl? ( LGPL-3 ) |
1493 |
- ) |
1494 |
- encode? ( |
1495 |
- amrenc? ( |
1496 |
- gpl? ( GPL-3 ) |
1497 |
- !gpl? ( LGPL-3 ) |
1498 |
- ) |
1499 |
- ) |
1500 |
- samba? ( GPL-3 ) |
1501 |
-" |
1502 |
-if [ "${PV#9999}" = "${PV}" ] ; then |
1503 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
1504 |
-fi |
1505 |
- |
1506 |
-# Options to use as use_enable in the foo[:bar] form. |
1507 |
-# This will feed configure with $(use_enable foo bar) |
1508 |
-# or $(use_enable foo foo) if no :bar is set. |
1509 |
-# foo is added to IUSE. |
1510 |
-FFMPEG_FLAG_MAP=( |
1511 |
- +bzip2:bzlib cpudetection:runtime-cpudetect debug gcrypt gnutls gmp |
1512 |
- +gpl +hardcoded-tables +iconv lzma +network openssl +postproc |
1513 |
- samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb |
1514 |
- xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
1515 |
- # libavdevice options |
1516 |
- cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
1517 |
- opengl |
1518 |
- # indevs |
1519 |
- libv4l:libv4l2 pulseaudio:libpulse |
1520 |
- # decoders |
1521 |
- amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac |
1522 |
- jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
1523 |
- mmal modplug:libmodplug opus:libopus libilbc librtmp ssh:libssh |
1524 |
- schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
1525 |
- zvbi:libzvbi |
1526 |
- # libavfilter options |
1527 |
- bs2b:libbs2b chromaprint ebur128:libebur128 flite:libflite frei0r |
1528 |
- fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype |
1529 |
- rubberband:librubberband zimg:libzimg |
1530 |
- # libswresample options |
1531 |
- libsoxr |
1532 |
- # Threads; we only support pthread for now but ffmpeg supports more |
1533 |
- +threads:pthreads |
1534 |
-) |
1535 |
- |
1536 |
-# Same as above but for encoders, i.e. they do something only with USE=encode. |
1537 |
-FFMPEG_ENCODER_FLAG_MAP=( |
1538 |
- amrenc:libvo-amrwbenc mp3:libmp3lame |
1539 |
- faac:libfaac kvazaar:libkvazaar nvenc:nvenc |
1540 |
- openh264:libopenh264 snappy:libsnappy theora:libtheora twolame:libtwolame |
1541 |
- wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
1542 |
-) |
1543 |
- |
1544 |
-IUSE=" |
1545 |
- alsa doc +encode jack oss pic static-libs test v4l |
1546 |
- ${FFMPEG_FLAG_MAP[@]%:*} |
1547 |
- ${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
1548 |
-" |
1549 |
- |
1550 |
-# Strings for CPU features in the useflag[:configure_option] form |
1551 |
-# if :configure_option isn't set, it will use 'useflag' as configure option |
1552 |
-ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
1553 |
-MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
1554 |
-PPC_CPU_FEATURES=( altivec ) |
1555 |
-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 ) |
1556 |
-X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
1557 |
-X86_CPU_REQUIRED_USE=" |
1558 |
- cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
1559 |
- cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
1560 |
- cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
1561 |
- cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
1562 |
- cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
1563 |
- cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) |
1564 |
- cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
1565 |
- cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
1566 |
- cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
1567 |
- cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
1568 |
- cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
1569 |
- cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
1570 |
- cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
1571 |
- cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
1572 |
- cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
1573 |
-" |
1574 |
- |
1575 |
-IUSE="${IUSE} |
1576 |
- ${ARM_CPU_FEATURES[@]%:*} |
1577 |
- ${MIPS_CPU_FEATURES[@]%:*} |
1578 |
- ${PPC_CPU_FEATURES[@]%:*} |
1579 |
- ${X86_CPU_FEATURES[@]%:*} |
1580 |
-" |
1581 |
- |
1582 |
-CPU_REQUIRED_USE=" |
1583 |
- ${X86_CPU_REQUIRED_USE} |
1584 |
-" |
1585 |
- |
1586 |
-# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
1587 |
-# $(tc-arch). |
1588 |
-CPU_FEATURES_MAP=" |
1589 |
- arm:ARM |
1590 |
- arm64:ARM |
1591 |
- mips:MIPS |
1592 |
- ppc:PPC |
1593 |
- ppc64:PPC |
1594 |
- x86:X86 |
1595 |
- amd64:X86 |
1596 |
-" |
1597 |
- |
1598 |
-FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher ) |
1599 |
-IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
1600 |
- |
1601 |
-RDEPEND=" |
1602 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
1603 |
- amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
1604 |
- bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
1605 |
- bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
1606 |
- bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
1607 |
- cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
1608 |
- celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
1609 |
- chromaprint? ( >=media-libs/chromaprint-1.2-r1[${MULTILIB_USEDEP}] ) |
1610 |
- ebur128? ( >=media-libs/libebur128-1.1.0[${MULTILIB_USEDEP}] ) |
1611 |
- encode? ( |
1612 |
- amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
1613 |
- faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
1614 |
- kvazaar? ( media-libs/kvazaar[${MULTILIB_USEDEP}] ) |
1615 |
- mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
1616 |
- nvenc? ( media-video/nvidia_video_sdk ) |
1617 |
- openh264? ( >=media-libs/openh264-1.4.0-r1[${MULTILIB_USEDEP}] ) |
1618 |
- snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] ) |
1619 |
- theora? ( |
1620 |
- >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
1621 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1622 |
- ) |
1623 |
- twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
1624 |
- wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
1625 |
- webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
1626 |
- x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
1627 |
- x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] ) |
1628 |
- xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
1629 |
- ) |
1630 |
- fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
1631 |
- flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
1632 |
- fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
1633 |
- frei0r? ( media-plugins/frei0r-plugins ) |
1634 |
- fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
1635 |
- gcrypt? ( >=dev-libs/libgcrypt-1.6:0=[${MULTILIB_USEDEP}] ) |
1636 |
- gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
1637 |
- gmp? ( >=dev-libs/gmp-6:0=[${MULTILIB_USEDEP}] ) |
1638 |
- gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
1639 |
- gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
1640 |
- iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
1641 |
- iec61883? ( |
1642 |
- >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
1643 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1644 |
- >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
1645 |
- ) |
1646 |
- ieee1394? ( |
1647 |
- >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
1648 |
- >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
1649 |
- ) |
1650 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
1651 |
- jpeg2k? ( >=media-libs/openjpeg-2:2[${MULTILIB_USEDEP}] ) |
1652 |
- libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
1653 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
1654 |
- libilbc? ( >=media-libs/libilbc-2[${MULTILIB_USEDEP}] ) |
1655 |
- libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
1656 |
- libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
1657 |
- lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
1658 |
- mmal? ( media-libs/raspberrypi-userland ) |
1659 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
1660 |
- openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
1661 |
- opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
1662 |
- openssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) |
1663 |
- opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
1664 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
1665 |
- librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
1666 |
- rubberband? ( >=media-libs/rubberband-1.8.1-r1[${MULTILIB_USEDEP}] ) |
1667 |
- samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
1668 |
- schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
1669 |
- sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
1670 |
- speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
1671 |
- ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
1672 |
- truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
1673 |
- vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
1674 |
- vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
1675 |
- vorbis? ( |
1676 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
1677 |
- >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
1678 |
- ) |
1679 |
- vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] ) |
1680 |
- X? ( |
1681 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
1682 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
1683 |
- !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
1684 |
- >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
1685 |
- ) |
1686 |
- xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
1687 |
- zimg? ( media-libs/zimg[${MULTILIB_USEDEP}] ) |
1688 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
1689 |
- zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
1690 |
- !media-video/qt-faststart |
1691 |
- postproc? ( !media-libs/libpostproc ) |
1692 |
-" |
1693 |
- |
1694 |
-DEPEND="${RDEPEND} |
1695 |
- >=sys-devel/make-3.81 |
1696 |
- doc? ( sys-apps/texinfo ) |
1697 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
1698 |
- ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
1699 |
- cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
1700 |
- test? ( net-misc/wget sys-devel/bc ) |
1701 |
- v4l? ( sys-kernel/linux-headers ) |
1702 |
-" |
1703 |
- |
1704 |
-RDEPEND="${RDEPEND} |
1705 |
- abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
1706 |
- !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
1707 |
- |
1708 |
-# Code requiring FFmpeg to be built under gpl license |
1709 |
-GPL_REQUIRED_USE=" |
1710 |
- postproc? ( gpl ) |
1711 |
- frei0r? ( gpl ) |
1712 |
- cdio? ( gpl ) |
1713 |
- samba? ( gpl ) |
1714 |
- encode? ( |
1715 |
- x264? ( gpl ) |
1716 |
- x265? ( gpl ) |
1717 |
- xvid? ( gpl ) |
1718 |
- X? ( !xcb? ( gpl ) ) |
1719 |
- ) |
1720 |
-" |
1721 |
-REQUIRED_USE=" |
1722 |
- libv4l? ( v4l ) |
1723 |
- fftools_cws2fws? ( zlib ) |
1724 |
- test? ( encode ) |
1725 |
- ${GPL_REQUIRED_USE} |
1726 |
- ${CPU_REQUIRED_USE}" |
1727 |
-RESTRICT=" |
1728 |
- encode? ( faac? ( bindist ) ) |
1729 |
- gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
1730 |
-" |
1731 |
- |
1732 |
-S=${WORKDIR}/${P/_/-} |
1733 |
- |
1734 |
-MULTILIB_WRAPPED_HEADERS=( |
1735 |
- /usr/include/libavutil/avconfig.h |
1736 |
-) |
1737 |
- |
1738 |
-src_prepare() { |
1739 |
- if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
1740 |
- export revision=git-N-${FFMPEG_REVISION} |
1741 |
- fi |
1742 |
- default |
1743 |
-} |
1744 |
- |
1745 |
-multilib_src_configure() { |
1746 |
- local myconf=( ${EXTRA_FFMPEG_CONF} ) |
1747 |
- |
1748 |
- local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
1749 |
- use openssl && use gpl && myconf+=( --enable-nonfree ) |
1750 |
- use samba && myconf+=( --enable-version3 ) |
1751 |
- |
1752 |
- # Encoders |
1753 |
- if use encode ; then |
1754 |
- ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
1755 |
- |
1756 |
- # Licensing. |
1757 |
- if use amrenc ; then |
1758 |
- myconf+=( --enable-version3 ) |
1759 |
- fi |
1760 |
- if use faac ; then |
1761 |
- myconf+=( --enable-nonfree ) |
1762 |
- fi |
1763 |
- else |
1764 |
- myconf+=( --disable-encoders ) |
1765 |
- fi |
1766 |
- |
1767 |
- # Indevs |
1768 |
- use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
1769 |
- for i in alsa oss jack ; do |
1770 |
- use ${i} || myconf+=( --disable-indev=${i} ) |
1771 |
- done |
1772 |
- use xcb || ffuse+=( X:x11grab ) |
1773 |
- |
1774 |
- # Outdevs |
1775 |
- for i in alsa oss sdl ; do |
1776 |
- use ${i} || myconf+=( --disable-outdev=${i} ) |
1777 |
- done |
1778 |
- |
1779 |
- # Decoders |
1780 |
- use amr && myconf+=( --enable-version3 ) |
1781 |
- use gmp && myconf+=( --enable-version3 ) |
1782 |
- use fdk && use gpl && myconf+=( --enable-nonfree ) |
1783 |
- |
1784 |
- for i in "${ffuse[@]#+}" ; do |
1785 |
- myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
1786 |
- done |
1787 |
- |
1788 |
- # (temporarily) disable non-multilib deps |
1789 |
- if ! multilib_is_native_abi; then |
1790 |
- for i in frei0r ; do |
1791 |
- myconf+=( --disable-${i} ) |
1792 |
- done |
1793 |
- fi |
1794 |
- |
1795 |
- # CPU features |
1796 |
- for i in ${CPU_FEATURES_MAP} ; do |
1797 |
- if [ "$(tc-arch)" = "${i%:*}" ] ; then |
1798 |
- local var="${i#*:}_CPU_FEATURES[@]" |
1799 |
- for j in ${!var} ; do |
1800 |
- use ${j%:*} || myconf+=( --disable-${j#*:} ) |
1801 |
- done |
1802 |
- fi |
1803 |
- done |
1804 |
- |
1805 |
- if use pic ; then |
1806 |
- myconf+=( --enable-pic ) |
1807 |
- # disable asm code if PIC is required |
1808 |
- # as the provided asm decidedly is not PIC for x86. |
1809 |
- [[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
1810 |
- fi |
1811 |
- [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
1812 |
- |
1813 |
- # Try to get cpu type based on CFLAGS. |
1814 |
- # Bug #172723 |
1815 |
- # We need to do this so that features of that CPU will be better used |
1816 |
- # If they contain an unknown CPU it will not hurt since ffmpeg's configure |
1817 |
- # will just ignore it. |
1818 |
- for i in $(get-flag mcpu) $(get-flag march) ; do |
1819 |
- [[ ${i} = native ]] && i="host" # bug #273421 |
1820 |
- myconf+=( --cpu=${i} ) |
1821 |
- break |
1822 |
- done |
1823 |
- |
1824 |
- # LTO support, bug #566282 |
1825 |
- is-flagq "-flto*" && myconf+=( "--enable-lto" ) |
1826 |
- |
1827 |
- # Mandatory configuration |
1828 |
- myconf=( |
1829 |
- --enable-avfilter |
1830 |
- --enable-avresample |
1831 |
- --disable-stripping |
1832 |
- "${myconf[@]}" |
1833 |
- ) |
1834 |
- |
1835 |
- # cross compile support |
1836 |
- if tc-is-cross-compiler ; then |
1837 |
- myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
1838 |
- case ${CHOST} in |
1839 |
- *freebsd*) |
1840 |
- myconf+=( --target-os=freebsd ) |
1841 |
- ;; |
1842 |
- *mingw32*) |
1843 |
- myconf+=( --target-os=mingw32 ) |
1844 |
- ;; |
1845 |
- *linux*) |
1846 |
- myconf+=( --target-os=linux ) |
1847 |
- ;; |
1848 |
- esac |
1849 |
- fi |
1850 |
- |
1851 |
- # doc |
1852 |
- myconf+=( |
1853 |
- $(multilib_native_use_enable doc) |
1854 |
- $(multilib_native_use_enable doc htmlpages) |
1855 |
- $(multilib_native_enable manpages) |
1856 |
- ) |
1857 |
- |
1858 |
- set -- "${S}/configure" \ |
1859 |
- --prefix="${EPREFIX}/usr" \ |
1860 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
1861 |
- --shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
1862 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
1863 |
- --mandir="${EPREFIX}/usr/share/man" \ |
1864 |
- --enable-shared \ |
1865 |
- --cc="$(tc-getCC)" \ |
1866 |
- --cxx="$(tc-getCXX)" \ |
1867 |
- --ar="$(tc-getAR)" \ |
1868 |
- --optflags="${CFLAGS}" \ |
1869 |
- $(use_enable static-libs static) \ |
1870 |
- "${myconf[@]}" |
1871 |
- echo "${@}" |
1872 |
- "${@}" || die |
1873 |
-} |
1874 |
- |
1875 |
-multilib_src_compile() { |
1876 |
- emake V=1 |
1877 |
- |
1878 |
- if multilib_is_native_abi; then |
1879 |
- for i in "${FFTOOLS[@]}" ; do |
1880 |
- if use fftools_${i} ; then |
1881 |
- emake V=1 tools/${i} |
1882 |
- fi |
1883 |
- done |
1884 |
- fi |
1885 |
-} |
1886 |
- |
1887 |
-multilib_src_install() { |
1888 |
- emake V=1 DESTDIR="${D}" install install-doc |
1889 |
- |
1890 |
- if multilib_is_native_abi; then |
1891 |
- for i in "${FFTOOLS[@]}" ; do |
1892 |
- if use fftools_${i} ; then |
1893 |
- dobin tools/${i} |
1894 |
- fi |
1895 |
- done |
1896 |
- fi |
1897 |
-} |
1898 |
- |
1899 |
-multilib_src_install_all() { |
1900 |
- dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
1901 |
- [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
1902 |
-} |
1903 |
- |
1904 |
-multilib_src_test() { |
1905 |
- 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" \ |
1906 |
- emake V=1 fate |
1907 |
-} |
1908 |
|
1909 |
diff --git a/media-video/ffmpeg/metadata.xml b/media-video/ffmpeg/metadata.xml |
1910 |
index 3d62696..bb14989 100644 |
1911 |
--- a/media-video/ffmpeg/metadata.xml |
1912 |
+++ b/media-video/ffmpeg/metadata.xml |
1913 |
@@ -18,7 +18,6 @@ |
1914 |
<flag name="celt">Adds Xiph CELT audio decoding support via <pkg>media-libs/celt</pkg></flag> |
1915 |
<flag name="chromaprint">Enables audio fingerprinting support with <pkg>media-libs/chromaprint</pkg>.</flag> |
1916 |
<flag name="cpudetection">Enables runtime CPU detection (useful for bindist, compatibility on other CPUs)</flag> |
1917 |
- <flag name="dcadec">Enables DCA decoding with <pkg>media-sound/dcadec</pkg>.</flag> |
1918 |
<flag name="ebur128">Enables EBU R128 loudness normalization filter via <pkg>media-libs/libebur128</pkg></flag> |
1919 |
<flag name="faac">Use external faac library for AAC encoding</flag> |
1920 |
<flag name="fdk">Use external fdk-aac library for AAC encoding</flag> |