Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg/, media-video/ffmpeg/files/
Date: Mon, 01 Feb 2016 08:41:39
Message-Id: 1454316070.6579f4d4137f8e8c07634013bd8a7172c961c383.aballier@gentoo
1 commit: 6579f4d4137f8e8c07634013bd8a7172c961c383
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 08:41:10 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 08:41:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6579f4d4
7
8 media-video/ffmpeg: remove old
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 media-video/ffmpeg/Manifest | 5 -
14 media-video/ffmpeg/ffmpeg-2.7.2.ebuild | 450 -------------------------------
15 media-video/ffmpeg/ffmpeg-2.8.1.ebuild | 455 -------------------------------
16 media-video/ffmpeg/ffmpeg-2.8.2.ebuild | 456 -------------------------------
17 media-video/ffmpeg/ffmpeg-2.8.3.ebuild | 456 -------------------------------
18 media-video/ffmpeg/ffmpeg-2.8.4.ebuild | 458 --------------------------------
19 media-video/ffmpeg/files/libvpx15.patch | 36 ---
20 7 files changed, 2316 deletions(-)
21
22 diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
23 index af74a2e..d9f6b10 100644
24 --- a/media-video/ffmpeg/Manifest
25 +++ b/media-video/ffmpeg/Manifest
26 @@ -1,9 +1,4 @@
27 DIST ffmpeg-2.6.3.tar.bz2 7803314 SHA256 59eb98c1b5896ac29abc0385f7c875d1b4942d695818818d418ee71eea1e0cfb SHA512 0998fa0cc2711b556fc28ce498e986f8f0b3ba7a30394c6b6cd494a542917eafb3d4d758f75e33fb39db4a631eca40515aa36c8b278fa3ffc9be006995d31029 WHIRLPOOL bfd074cf0b7a315d42c3559f4edeb46fc693918c9958e8e8b19d08f2e8c2765cf26f0ca9007d34a5dd07b69775cf06ab517c2a56926c46ade8bb7a782f492512
28 DIST ffmpeg-2.6.4.tar.bz2 7811925 SHA256 184f49e6b359426c398ad6c67d89abd362558373a43d3d92f86e554571655a5d SHA512 76c8bb3b23f2d2bac73b1561ef31bb3d1da49b2e182d84a13bf0bf49ea84cd0d64566c9dfafc4ac9d660aa4cecc0f08272b9ee284d1d09776e4599b87920c308 WHIRLPOOL 2d68715fb284979d703905919289c897c5cb002c3d466aca6c9759ca9f93443b749a24747cf218d005d728680ad137990880ec99210b6fb49038587966dd79f4
29 -DIST ffmpeg-2.7.2.tar.bz2 8157217 SHA256 7ceb7550ad628c526fa6c9ff23fdfb687a62f54d90c4a730998d8c2b417b9ef2 SHA512 cce58c63ae14dcbd3bdc4758af8427e18ac589f8bd4f2701e54b5e0e61669d5aab212e5829feb67a0fd33bc52b2d64adff93729c0696c44a0f6064a0752433dd WHIRLPOOL dd286393427b89be266ad2b122138dab578843d16bdf9b989b9546734f489c8c5c3d1ab0443ff5039b440a8430802ffe24f0fc38553688ec80984a1cce2ba2a3
30 -DIST ffmpeg-2.8.1.tar.bz2 8564488 SHA256 e2ed5ab28dee1af94336739173eb0019afc21a54e38a96f4e3208e94a07866e2 SHA512 5c493f1eb84dd916f12a709a77ca0317a03ce88caaa1ee5e06b4e03c60ef4520ba58c8972841de25dcadb0da42e88592e6a87c3aca18dba62e246256c33fcf91 WHIRLPOOL f0f26375960dff80055fe257b63f11a1cc598bef9450d0da4a619bfc61ba6df185ea0dcf9c566810c7917159bb193d30a1009051c5b32ea1d746b289c782b8aa
31 -DIST ffmpeg-2.8.2.tar.bz2 8573586 SHA256 830ec647f7ad774fc0caf17ba47774bf5dee7a89cbd65894f364a87ba3ad21b2 SHA512 15c1c09d7d4bb8cc7babff4c782e4bf6621ed86d6b02bffb5468bdcd294a1144bf56a8a758d2801200bb89c26ce8f5a086d818affb473364424f94f701cbf749 WHIRLPOOL 83ae9a00cba7bc906672f55d796b044d3f4baad9a56804f6482e7c27b9f526d1364dfddaa22ef32b921e5dcd0158222897935544a34c1d1e7c3b9d681067d2e0
32 -DIST ffmpeg-2.8.3.tar.bz2 8576798 SHA256 1bcf993a71839bb4a37eaa0c51daf315932b6dad6089f672294545cc51a5caf6 SHA512 aadfab7db84b85cbfe44a5c7b47e447a1711c3d78fa195f30d3f6644e95842c8d484172e4c98f75cbae5d3783f4dd2972a892123d9a9ff90be32db20b0dc8aa6 WHIRLPOOL c004fe02f300772b439ae070538d4ef4c5c514dd8a080de8e1a560597e79607b709319072f6120c35722481bc11f30077cc74a64800e390a7c5fabe82ded1718
33 -DIST ffmpeg-2.8.4.tar.bz2 8579383 SHA256 83cc8136a7845546062a43cda9ae3cf0a02f43ef5e434d2f997f055231a75f8e SHA512 37f88c05fd0b8d1c4de83f5330f756cddd157ba78487d78436899d46a49a4e420eb086d263dd77c6c31a61c91f7839f40b07ed87817d686498b90caf9d870aa5 WHIRLPOOL 7e1a85a0eb00f33aad4d18b6a8d4d76c78aa0654c4ce10a864996239950fadd4a4995c481cd0e95a6f669c566cacd3da9ada4c66bb0fba011d4d942c8679eb99
34 DIST ffmpeg-2.8.5.tar.bz2 8580755 SHA256 3b6d9951533323ee64a21d0aa7667a780b3470bfe4e0fb7c1b33307ce290615a SHA512 2a46bef5ac99d114be7d3ece561ae71d09b87eaecba5da3c02ff1fe7e5cf4913e1b6feecca405540d1d70f9126591c209055edd7df1ad1d8bbf02f107701929e WHIRLPOOL 59ef96e7536a098ccf42526f64173df750558d489afb641c49168e2fc45672b160519d8a9e9e3093e1fd02a1af8ca1936de7f29c316685ac25946636890c760e
35 DIST ffmpeg-2.8.6.tar.bz2 8582420 SHA256 40611e329bc354592c6f8f1deb033c31b91f80e91f5707ca4f9afceca78d8e62 SHA512 68fb41884b95953025b9c56496b17e13062196800ff9834dac43a12e9a0048d4a763f50a2256418c91cc850b63713e1debbf9170737f29621f48946adef152dc WHIRLPOOL 20a4b12b5a03f187b753cca43c65bd75b49cc21c9ffabad31b8ac0ab47fc8e017931ad5076b701c303bb594b20acb403d3ec2dabdf647fd262c070c8dabf1eea
36
37 diff --git a/media-video/ffmpeg/ffmpeg-2.7.2.ebuild b/media-video/ffmpeg/ffmpeg-2.7.2.ebuild
38 deleted file mode 100644
39 index 83094e5..0000000
40 --- a/media-video/ffmpeg/ffmpeg-2.7.2.ebuild
41 +++ /dev/null
42 @@ -1,450 +0,0 @@
43 -# Copyright 1999-2015 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -# $Id$
46 -
47 -EAPI="5"
48 -
49 -# Subslot: libavutil major.libavcodec major.libavformat major
50 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
51 -# Most consumers will use those three libraries, if a "less used" library
52 -# changes its soname, consumers will have to be rebuilt the old way
53 -# (preserve-libs).
54 -# If, for example, a package does not link to libavformat and only libavformat
55 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
56 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
57 -# doing so since such a case is unlikely.
58 -FFMPEG_SUBSLOT=54.56.56
59 -
60 -SCM=""
61 -if [ "${PV#9999}" != "${PV}" ] ; then
62 - SCM="git-2"
63 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
64 -fi
65 -
66 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
67 -
68 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
69 -HOMEPAGE="http://ffmpeg.org/"
70 -if [ "${PV#9999}" != "${PV}" ] ; then
71 - SRC_URI=""
72 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
73 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
74 -else # Release
75 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
76 -fi
77 -FFMPEG_REVISION="${PV#*_p}"
78 -
79 -SLOT="0/${FFMPEG_SUBSLOT}"
80 -LICENSE="
81 - !gpl? ( LGPL-2.1 )
82 - gpl? ( GPL-2 )
83 - amr? (
84 - gpl? ( GPL-3 )
85 - !gpl? ( LGPL-3 )
86 - )
87 - encode? (
88 - aac? (
89 - gpl? ( GPL-3 )
90 - !gpl? ( LGPL-3 )
91 - )
92 - amrenc? (
93 - gpl? ( GPL-3 )
94 - !gpl? ( LGPL-3 )
95 - )
96 - )
97 - samba? ( GPL-3 )
98 -"
99 -if [ "${PV#9999}" = "${PV}" ] ; then
100 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
101 -fi
102 -
103 -# Options to use as use_enable in the foo[:bar] form.
104 -# This will feed configure with $(use_enable foo bar)
105 -# or $(use_enable foo foo) if no :bar is set.
106 -# foo is added to IUSE.
107 -FFMPEG_FLAG_MAP=(
108 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
109 - +hardcoded-tables +iconv lzma +network openssl +postproc
110 - samba:libsmbclient sdl:ffplay vaapi vdpau X:xlib xcb:libxcb
111 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
112 - # libavdevice options
113 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
114 - opengl
115 - # indevs
116 - libv4l:libv4l2 pulseaudio:libpulse
117 - # decoders
118 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
119 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
120 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
121 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
122 - zvbi:libzvbi
123 - # libavfilter options
124 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
125 - libass truetype:libfreetype
126 - # libswresample options
127 - libsoxr
128 - # Threads; we only support pthread for now but ffmpeg supports more
129 - +threads:pthreads
130 -)
131 -
132 -# Same as above but for encoders, i.e. they do something only with USE=encode.
133 -FFMPEG_ENCODER_FLAG_MAP=(
134 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
135 - aacplus:libaacplus faac:libfaac theora:libtheora twolame:libtwolame
136 - wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid
137 -)
138 -
139 -IUSE="
140 - alsa +encode examples jack oss pic static-libs test v4l
141 - ${FFMPEG_FLAG_MAP[@]%:*}
142 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
143 -"
144 -
145 -# Strings for CPU features in the useflag[:configure_option] form
146 -# if :configure_option isn't set, it will use 'useflag' as configure option
147 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
148 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
149 -PPC_CPU_FEATURES=( altivec )
150 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext 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 )
151 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
152 -X86_CPU_REQUIRED_USE="
153 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
154 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
155 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
156 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
157 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
158 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
159 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
160 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
161 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
162 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
163 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
164 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
165 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
166 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
167 -"
168 -
169 -IUSE="${IUSE}
170 - ${ARM_CPU_FEATURES[@]%:*}
171 - ${MIPS_CPU_FEATURES[@]%:*}
172 - ${PPC_CPU_FEATURES[@]%:*}
173 - ${X86_CPU_FEATURES[@]%:*}
174 -"
175 -
176 -CPU_REQUIRED_USE="
177 - ${X86_CPU_REQUIRED_USE}
178 -"
179 -
180 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
181 -# $(tc-arch).
182 -CPU_FEATURES_MAP="
183 - arm:ARM
184 - arm64:ARM
185 - mips:MIPS
186 - ppc:PPC
187 - ppc64:PPC
188 - x86:X86
189 - amd64:X86
190 -"
191 -
192 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher )
193 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
194 -
195 -RDEPEND="
196 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
197 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
198 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
199 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
200 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
201 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
202 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
203 - encode? (
204 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
205 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
206 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
207 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
208 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
209 - theora? (
210 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
211 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
212 - )
213 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
214 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
215 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
216 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
217 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
218 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
219 - )
220 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
221 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
222 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
223 - frei0r? ( media-plugins/frei0r-plugins )
224 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
225 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
226 - gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
227 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
228 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
229 - iec61883? (
230 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
231 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
232 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
233 - )
234 - ieee1394? (
235 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
236 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
237 - )
238 - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
239 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
240 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
241 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
242 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
243 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
244 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
245 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
246 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
247 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
248 - openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
249 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
250 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
251 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
252 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
253 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
254 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
255 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
256 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
257 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
258 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
259 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
260 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
261 - vorbis? (
262 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
263 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
264 - )
265 - vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] )
266 - X? (
267 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
268 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
269 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
270 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
271 - )
272 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
273 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
274 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
275 - !media-video/qt-faststart
276 - postproc? ( !media-libs/libpostproc )
277 -"
278 -
279 -DEPEND="${RDEPEND}
280 - >=sys-devel/make-3.81
281 - doc? ( app-text/texi2html )
282 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
283 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
284 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
285 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
286 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
287 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
288 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
289 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
290 - test? ( net-misc/wget sys-devel/bc )
291 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
292 - v4l? ( sys-kernel/linux-headers )
293 -"
294 -
295 -RDEPEND="${RDEPEND}
296 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
297 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
298 -
299 -# Code requiring FFmpeg to be built under gpl license
300 -GPL_REQUIRED_USE="
301 - postproc? ( gpl )
302 - frei0r? ( gpl )
303 - cdio? ( gpl )
304 - samba? ( gpl )
305 - zvbi? ( gpl )
306 - encode? (
307 - x264? ( gpl )
308 - x265? ( gpl )
309 - xvid? ( gpl )
310 - X? ( !xcb? ( gpl ) )
311 - )
312 -"
313 -REQUIRED_USE="
314 - libv4l? ( v4l )
315 - fftools_cws2fws? ( zlib )
316 - test? ( encode )
317 - ${GPL_REQUIRED_USE}
318 - ${CPU_REQUIRED_USE}"
319 -RESTRICT="
320 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
321 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
322 -"
323 -
324 -S=${WORKDIR}/${P/_/-}
325 -
326 -MULTILIB_WRAPPED_HEADERS=(
327 - /usr/include/libavutil/avconfig.h
328 -)
329 -
330 -src_prepare() {
331 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
332 - export revision=git-N-${FFMPEG_REVISION}
333 - fi
334 - epatch_user
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 aac || use amrenc ; then
350 - myconf+=( --enable-version3 )
351 - fi
352 - if use aacplus || use faac ; then
353 - myconf+=( --enable-nonfree )
354 - fi
355 - else
356 - myconf+=( --disable-encoders )
357 - fi
358 -
359 - # Indevs
360 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
361 - for i in alsa oss jack ; do
362 - use ${i} || myconf+=( --disable-indev=${i} )
363 - done
364 - use xcb || ffuse+=( X:x11grab )
365 -
366 - # Outdevs
367 - for i in alsa oss sdl ; do
368 - use ${i} || myconf+=( --disable-outdev=${i} )
369 - done
370 -
371 - # Decoders
372 - use amr && myconf+=( --enable-version3 )
373 - use fdk && use gpl && myconf+=( --enable-nonfree )
374 -
375 - for i in "${ffuse[@]#+}" ; do
376 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
377 - done
378 -
379 - # (temporarily) disable non-multilib deps
380 - if ! multilib_is_native_abi; then
381 - for i in frei0r ; do
382 - myconf+=( --disable-${i} )
383 - done
384 - fi
385 -
386 - # CPU features
387 - for i in ${CPU_FEATURES_MAP} ; do
388 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
389 - local var="${i#*:}_CPU_FEATURES[@]"
390 - for j in ${!var} ; do
391 - use ${j%:*} || myconf+=( --disable-${j#*:} )
392 - done
393 - fi
394 - done
395 -
396 - if use pic ; then
397 - myconf+=( --enable-pic )
398 - # disable asm code if PIC is required
399 - # as the provided asm decidedly is not PIC for x86.
400 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
401 - fi
402 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
403 -
404 - # Try to get cpu type based on CFLAGS.
405 - # Bug #172723
406 - # We need to do this so that features of that CPU will be better used
407 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
408 - # will just ignore it.
409 - for i in $(get-flag mcpu) $(get-flag march) $(get-flag mtune) ; do
410 - [[ ${i} = native ]] && i="host" # bug #273421
411 - myconf+=( --cpu=${i} )
412 - break
413 - done
414 -
415 - # Mandatory configuration
416 - myconf=(
417 - --enable-avfilter
418 - --enable-avresample
419 - --disable-stripping
420 - "${myconf[@]}"
421 - )
422 -
423 - # cross compile support
424 - if tc-is-cross-compiler ; then
425 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
426 - case ${CHOST} in
427 - *freebsd*)
428 - myconf+=( --target-os=freebsd )
429 - ;;
430 - mingw32*)
431 - myconf+=( --target-os=mingw32 )
432 - ;;
433 - *linux*)
434 - myconf+=( --target-os=linux )
435 - ;;
436 - esac
437 - fi
438 -
439 - set -- "${S}/configure" \
440 - --prefix="${EPREFIX}/usr" \
441 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
442 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
443 - --mandir="${EPREFIX}/usr/share/man" \
444 - --enable-shared \
445 - --cc="$(tc-getCC)" \
446 - --cxx="$(tc-getCXX)" \
447 - --ar="$(tc-getAR)" \
448 - --optflags=" " \
449 - $(use_enable static-libs static) \
450 - "${myconf[@]}"
451 - echo "${@}"
452 - "${@}" || die
453 -}
454 -
455 -multilib_src_compile() {
456 - emake V=1
457 -
458 - if multilib_is_native_abi; then
459 - for i in "${FFTOOLS[@]}" ; do
460 - if use fftools_${i} ; then
461 - emake V=1 tools/${i}
462 - fi
463 - done
464 - fi
465 -}
466 -
467 -multilib_src_install() {
468 - emake V=1 DESTDIR="${D}" install install-man
469 -
470 - if multilib_is_native_abi; then
471 - for i in "${FFTOOLS[@]}" ; do
472 - if use fftools_${i} ; then
473 - dobin tools/${i}
474 - fi
475 - done
476 - fi
477 -}
478 -
479 -multilib_src_install_all() {
480 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
481 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
482 - use doc && dohtml -r doc/*
483 - if use examples ; then
484 - dodoc -r doc/examples
485 - docompress -x /usr/share/doc/${PF}/examples
486 - fi
487 -}
488 -
489 -multilib_src_test() {
490 - 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" \
491 - emake V=1 fate
492 -}
493
494 diff --git a/media-video/ffmpeg/ffmpeg-2.8.1.ebuild b/media-video/ffmpeg/ffmpeg-2.8.1.ebuild
495 deleted file mode 100644
496 index 6f3904f..0000000
497 --- a/media-video/ffmpeg/ffmpeg-2.8.1.ebuild
498 +++ /dev/null
499 @@ -1,455 +0,0 @@
500 -# Copyright 1999-2015 Gentoo Foundation
501 -# Distributed under the terms of the GNU General Public License v2
502 -# $Id$
503 -
504 -EAPI="5"
505 -
506 -# Subslot: libavutil major.libavcodec major.libavformat major
507 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
508 -# Most consumers will use those three libraries, if a "less used" library
509 -# changes its soname, consumers will have to be rebuilt the old way
510 -# (preserve-libs).
511 -# If, for example, a package does not link to libavformat and only libavformat
512 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
513 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
514 -# doing so since such a case is unlikely.
515 -FFMPEG_SUBSLOT=54.56.56
516 -
517 -SCM=""
518 -if [ "${PV#9999}" != "${PV}" ] ; then
519 - SCM="git-2"
520 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
521 -fi
522 -
523 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
524 -
525 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
526 -HOMEPAGE="http://ffmpeg.org/"
527 -if [ "${PV#9999}" != "${PV}" ] ; then
528 - SRC_URI=""
529 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
530 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
531 -else # Release
532 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
533 -fi
534 -FFMPEG_REVISION="${PV#*_p}"
535 -
536 -SLOT="0/${FFMPEG_SUBSLOT}"
537 -LICENSE="
538 - !gpl? ( LGPL-2.1 )
539 - gpl? ( GPL-2 )
540 - amr? (
541 - gpl? ( GPL-3 )
542 - !gpl? ( LGPL-3 )
543 - )
544 - encode? (
545 - aac? (
546 - gpl? ( GPL-3 )
547 - !gpl? ( LGPL-3 )
548 - )
549 - amrenc? (
550 - gpl? ( GPL-3 )
551 - !gpl? ( LGPL-3 )
552 - )
553 - )
554 - samba? ( GPL-3 )
555 -"
556 -if [ "${PV#9999}" = "${PV}" ] ; then
557 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
558 -fi
559 -
560 -# Options to use as use_enable in the foo[:bar] form.
561 -# This will feed configure with $(use_enable foo bar)
562 -# or $(use_enable foo foo) if no :bar is set.
563 -# foo is added to IUSE.
564 -FFMPEG_FLAG_MAP=(
565 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
566 - +hardcoded-tables +iconv lzma +network openssl +postproc
567 - samba:libsmbclient sdl:ffplay vaapi vdpau X:xlib xcb:libxcb
568 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
569 - # libavdevice options
570 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
571 - opengl
572 - # indevs
573 - libv4l:libv4l2 pulseaudio:libpulse
574 - # decoders
575 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
576 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
577 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
578 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
579 - zvbi:libzvbi
580 - # libavfilter options
581 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
582 - libass truetype:libfreetype
583 - # libswresample options
584 - libsoxr
585 - # Threads; we only support pthread for now but ffmpeg supports more
586 - +threads:pthreads
587 -)
588 -
589 -# Same as above but for encoders, i.e. they do something only with USE=encode.
590 -FFMPEG_ENCODER_FLAG_MAP=(
591 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
592 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
593 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
594 - xvid:libxvid
595 -)
596 -
597 -IUSE="
598 - alsa +encode examples jack libressl oss pic static-libs test v4l
599 - ${FFMPEG_FLAG_MAP[@]%:*}
600 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
601 -"
602 -
603 -# Strings for CPU features in the useflag[:configure_option] form
604 -# if :configure_option isn't set, it will use 'useflag' as configure option
605 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
606 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
607 -PPC_CPU_FEATURES=( altivec )
608 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext 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 )
609 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
610 -X86_CPU_REQUIRED_USE="
611 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
612 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
613 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
614 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
615 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
616 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
617 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
618 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
619 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
620 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
621 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
622 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
623 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
624 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
625 -"
626 -
627 -IUSE="${IUSE}
628 - ${ARM_CPU_FEATURES[@]%:*}
629 - ${MIPS_CPU_FEATURES[@]%:*}
630 - ${PPC_CPU_FEATURES[@]%:*}
631 - ${X86_CPU_FEATURES[@]%:*}
632 -"
633 -
634 -CPU_REQUIRED_USE="
635 - ${X86_CPU_REQUIRED_USE}
636 -"
637 -
638 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
639 -# $(tc-arch).
640 -CPU_FEATURES_MAP="
641 - arm:ARM
642 - arm64:ARM
643 - mips:MIPS
644 - ppc:PPC
645 - ppc64:PPC
646 - x86:X86
647 - amd64:X86
648 -"
649 -
650 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
651 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
652 -
653 -RDEPEND="
654 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
655 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
656 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
657 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
658 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
659 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
660 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
661 - encode? (
662 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
663 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
664 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
665 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
666 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
667 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
668 - theora? (
669 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
670 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
671 - )
672 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
673 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
674 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
675 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
676 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
677 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
678 - )
679 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
680 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
681 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
682 - frei0r? ( media-plugins/frei0r-plugins )
683 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
684 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
685 - gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
686 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
687 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
688 - iec61883? (
689 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
690 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
691 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
692 - )
693 - ieee1394? (
694 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
695 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
696 - )
697 - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
698 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
699 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
700 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
701 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
702 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
703 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
704 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
705 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
706 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
707 - openssl? (
708 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
709 - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
710 - )
711 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
712 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
713 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
714 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
715 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
716 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
717 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
718 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
719 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
720 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
721 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
722 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
723 - vorbis? (
724 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
725 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
726 - )
727 - vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] )
728 - X? (
729 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
730 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
731 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
732 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
733 - )
734 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
735 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
736 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
737 - !media-video/qt-faststart
738 - postproc? ( !media-libs/libpostproc )
739 -"
740 -
741 -DEPEND="${RDEPEND}
742 - >=sys-devel/make-3.81
743 - doc? ( app-text/texi2html )
744 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
745 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
746 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
747 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
748 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
749 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
750 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
751 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
752 - test? ( net-misc/wget sys-devel/bc )
753 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
754 - v4l? ( sys-kernel/linux-headers )
755 -"
756 -
757 -RDEPEND="${RDEPEND}
758 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
759 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
760 -
761 -# Code requiring FFmpeg to be built under gpl license
762 -GPL_REQUIRED_USE="
763 - postproc? ( gpl )
764 - frei0r? ( gpl )
765 - cdio? ( gpl )
766 - samba? ( gpl )
767 - zvbi? ( gpl )
768 - encode? (
769 - x264? ( gpl )
770 - x265? ( gpl )
771 - xvid? ( gpl )
772 - X? ( !xcb? ( gpl ) )
773 - )
774 -"
775 -REQUIRED_USE="
776 - libv4l? ( v4l )
777 - fftools_cws2fws? ( zlib )
778 - test? ( encode )
779 - ${GPL_REQUIRED_USE}
780 - ${CPU_REQUIRED_USE}"
781 -RESTRICT="
782 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
783 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
784 -"
785 -
786 -S=${WORKDIR}/${P/_/-}
787 -
788 -MULTILIB_WRAPPED_HEADERS=(
789 - /usr/include/libavutil/avconfig.h
790 -)
791 -
792 -src_prepare() {
793 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
794 - export revision=git-N-${FFMPEG_REVISION}
795 - fi
796 - epatch_user
797 -}
798 -
799 -multilib_src_configure() {
800 - local myconf=( ${EXTRA_FFMPEG_CONF} )
801 -
802 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
803 - use openssl && use gpl && myconf+=( --enable-nonfree )
804 - use samba && myconf+=( --enable-version3 )
805 -
806 - # Encoders
807 - if use encode ; then
808 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
809 -
810 - # Licensing.
811 - if use aac || use amrenc ; then
812 - myconf+=( --enable-version3 )
813 - fi
814 - if use aacplus || use faac ; then
815 - myconf+=( --enable-nonfree )
816 - fi
817 - else
818 - myconf+=( --disable-encoders )
819 - fi
820 -
821 - # Indevs
822 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
823 - for i in alsa oss jack ; do
824 - use ${i} || myconf+=( --disable-indev=${i} )
825 - done
826 - use xcb || ffuse+=( X:x11grab )
827 -
828 - # Outdevs
829 - for i in alsa oss sdl ; do
830 - use ${i} || myconf+=( --disable-outdev=${i} )
831 - done
832 -
833 - # Decoders
834 - use amr && myconf+=( --enable-version3 )
835 - use fdk && use gpl && myconf+=( --enable-nonfree )
836 -
837 - for i in "${ffuse[@]#+}" ; do
838 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
839 - done
840 -
841 - # (temporarily) disable non-multilib deps
842 - if ! multilib_is_native_abi; then
843 - for i in frei0r ; do
844 - myconf+=( --disable-${i} )
845 - done
846 - fi
847 -
848 - # CPU features
849 - for i in ${CPU_FEATURES_MAP} ; do
850 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
851 - local var="${i#*:}_CPU_FEATURES[@]"
852 - for j in ${!var} ; do
853 - use ${j%:*} || myconf+=( --disable-${j#*:} )
854 - done
855 - fi
856 - done
857 -
858 - if use pic ; then
859 - myconf+=( --enable-pic )
860 - # disable asm code if PIC is required
861 - # as the provided asm decidedly is not PIC for x86.
862 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
863 - fi
864 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
865 -
866 - # Try to get cpu type based on CFLAGS.
867 - # Bug #172723
868 - # We need to do this so that features of that CPU will be better used
869 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
870 - # will just ignore it.
871 - for i in $(get-flag mcpu) $(get-flag march) $(get-flag mtune) ; do
872 - [[ ${i} = native ]] && i="host" # bug #273421
873 - myconf+=( --cpu=${i} )
874 - break
875 - done
876 -
877 - # Mandatory configuration
878 - myconf=(
879 - --enable-avfilter
880 - --enable-avresample
881 - --disable-stripping
882 - "${myconf[@]}"
883 - )
884 -
885 - # cross compile support
886 - if tc-is-cross-compiler ; then
887 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
888 - case ${CHOST} in
889 - *freebsd*)
890 - myconf+=( --target-os=freebsd )
891 - ;;
892 - mingw32*)
893 - myconf+=( --target-os=mingw32 )
894 - ;;
895 - *linux*)
896 - myconf+=( --target-os=linux )
897 - ;;
898 - esac
899 - fi
900 -
901 - set -- "${S}/configure" \
902 - --prefix="${EPREFIX}/usr" \
903 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
904 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
905 - --mandir="${EPREFIX}/usr/share/man" \
906 - --enable-shared \
907 - --cc="$(tc-getCC)" \
908 - --cxx="$(tc-getCXX)" \
909 - --ar="$(tc-getAR)" \
910 - --optflags=" " \
911 - $(use_enable static-libs static) \
912 - "${myconf[@]}"
913 - echo "${@}"
914 - "${@}" || die
915 -}
916 -
917 -multilib_src_compile() {
918 - emake V=1
919 -
920 - if multilib_is_native_abi; then
921 - for i in "${FFTOOLS[@]}" ; do
922 - if use fftools_${i} ; then
923 - emake V=1 tools/${i}
924 - fi
925 - done
926 - fi
927 -}
928 -
929 -multilib_src_install() {
930 - emake V=1 DESTDIR="${D}" install install-man
931 -
932 - if multilib_is_native_abi; then
933 - for i in "${FFTOOLS[@]}" ; do
934 - if use fftools_${i} ; then
935 - dobin tools/${i}
936 - fi
937 - done
938 - fi
939 -}
940 -
941 -multilib_src_install_all() {
942 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
943 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
944 - use doc && dohtml -r doc/*
945 - if use examples ; then
946 - dodoc -r doc/examples
947 - docompress -x /usr/share/doc/${PF}/examples
948 - fi
949 -}
950 -
951 -multilib_src_test() {
952 - 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" \
953 - emake V=1 fate
954 -}
955
956 diff --git a/media-video/ffmpeg/ffmpeg-2.8.2.ebuild b/media-video/ffmpeg/ffmpeg-2.8.2.ebuild
957 deleted file mode 100644
958 index 2603f85..0000000
959 --- a/media-video/ffmpeg/ffmpeg-2.8.2.ebuild
960 +++ /dev/null
961 @@ -1,456 +0,0 @@
962 -# Copyright 1999-2015 Gentoo Foundation
963 -# Distributed under the terms of the GNU General Public License v2
964 -# $Id$
965 -
966 -EAPI="5"
967 -
968 -# Subslot: libavutil major.libavcodec major.libavformat major
969 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
970 -# Most consumers will use those three libraries, if a "less used" library
971 -# changes its soname, consumers will have to be rebuilt the old way
972 -# (preserve-libs).
973 -# If, for example, a package does not link to libavformat and only libavformat
974 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
975 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
976 -# doing so since such a case is unlikely.
977 -FFMPEG_SUBSLOT=54.56.56
978 -
979 -SCM=""
980 -if [ "${PV#9999}" != "${PV}" ] ; then
981 - SCM="git-2"
982 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
983 -fi
984 -
985 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
986 -
987 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
988 -HOMEPAGE="http://ffmpeg.org/"
989 -if [ "${PV#9999}" != "${PV}" ] ; then
990 - SRC_URI=""
991 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
992 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
993 -else # Release
994 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
995 -fi
996 -FFMPEG_REVISION="${PV#*_p}"
997 -
998 -SLOT="0/${FFMPEG_SUBSLOT}"
999 -LICENSE="
1000 - !gpl? ( LGPL-2.1 )
1001 - gpl? ( GPL-2 )
1002 - amr? (
1003 - gpl? ( GPL-3 )
1004 - !gpl? ( LGPL-3 )
1005 - )
1006 - encode? (
1007 - aac? (
1008 - gpl? ( GPL-3 )
1009 - !gpl? ( LGPL-3 )
1010 - )
1011 - amrenc? (
1012 - gpl? ( GPL-3 )
1013 - !gpl? ( LGPL-3 )
1014 - )
1015 - )
1016 - samba? ( GPL-3 )
1017 -"
1018 -if [ "${PV#9999}" = "${PV}" ] ; then
1019 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
1020 -fi
1021 -
1022 -# Options to use as use_enable in the foo[:bar] form.
1023 -# This will feed configure with $(use_enable foo bar)
1024 -# or $(use_enable foo foo) if no :bar is set.
1025 -# foo is added to IUSE.
1026 -FFMPEG_FLAG_MAP=(
1027 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
1028 - +hardcoded-tables +iconv lzma +network openssl +postproc
1029 - samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb
1030 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
1031 - # libavdevice options
1032 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
1033 - opengl
1034 - # indevs
1035 - libv4l:libv4l2 pulseaudio:libpulse
1036 - # decoders
1037 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
1038 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
1039 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
1040 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
1041 - zvbi:libzvbi
1042 - # libavfilter options
1043 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
1044 - libass truetype:libfreetype
1045 - # libswresample options
1046 - libsoxr
1047 - # Threads; we only support pthread for now but ffmpeg supports more
1048 - +threads:pthreads
1049 -)
1050 -
1051 -# Same as above but for encoders, i.e. they do something only with USE=encode.
1052 -FFMPEG_ENCODER_FLAG_MAP=(
1053 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
1054 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
1055 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
1056 - xvid:libxvid
1057 -)
1058 -
1059 -IUSE="
1060 - alsa +encode examples jack libressl oss pic static-libs test v4l
1061 - ${FFMPEG_FLAG_MAP[@]%:*}
1062 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
1063 -"
1064 -
1065 -# Strings for CPU features in the useflag[:configure_option] form
1066 -# if :configure_option isn't set, it will use 'useflag' as configure option
1067 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
1068 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
1069 -PPC_CPU_FEATURES=( altivec )
1070 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext 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 )
1071 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
1072 -X86_CPU_REQUIRED_USE="
1073 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
1074 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
1075 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
1076 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
1077 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
1078 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
1079 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
1080 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
1081 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
1082 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
1083 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
1084 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
1085 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
1086 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
1087 -"
1088 -
1089 -IUSE="${IUSE}
1090 - ${ARM_CPU_FEATURES[@]%:*}
1091 - ${MIPS_CPU_FEATURES[@]%:*}
1092 - ${PPC_CPU_FEATURES[@]%:*}
1093 - ${X86_CPU_FEATURES[@]%:*}
1094 -"
1095 -
1096 -CPU_REQUIRED_USE="
1097 - ${X86_CPU_REQUIRED_USE}
1098 -"
1099 -
1100 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
1101 -# $(tc-arch).
1102 -CPU_FEATURES_MAP="
1103 - arm:ARM
1104 - arm64:ARM
1105 - mips:MIPS
1106 - ppc:PPC
1107 - ppc64:PPC
1108 - x86:X86
1109 - amd64:X86
1110 -"
1111 -
1112 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
1113 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
1114 -
1115 -RDEPEND="
1116 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
1117 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
1118 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
1119 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
1120 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
1121 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
1122 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
1123 - encode? (
1124 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
1125 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
1126 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
1127 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
1128 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
1129 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
1130 - theora? (
1131 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
1132 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
1133 - )
1134 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
1135 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
1136 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
1137 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
1138 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
1139 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
1140 - )
1141 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
1142 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
1143 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
1144 - frei0r? ( media-plugins/frei0r-plugins )
1145 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
1146 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
1147 - gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
1148 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
1149 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
1150 - iec61883? (
1151 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
1152 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
1153 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
1154 - )
1155 - ieee1394? (
1156 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
1157 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
1158 - )
1159 - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
1160 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
1161 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
1162 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
1163 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
1164 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
1165 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
1166 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
1167 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
1168 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
1169 - openssl? (
1170 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
1171 - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
1172 - )
1173 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
1174 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
1175 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
1176 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
1177 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
1178 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
1179 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
1180 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
1181 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
1182 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
1183 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
1184 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
1185 - vorbis? (
1186 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
1187 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
1188 - )
1189 - vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
1190 - X? (
1191 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
1192 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
1193 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
1194 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
1195 - )
1196 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
1197 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
1198 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
1199 - !media-video/qt-faststart
1200 - postproc? ( !media-libs/libpostproc )
1201 -"
1202 -
1203 -DEPEND="${RDEPEND}
1204 - >=sys-devel/make-3.81
1205 - doc? ( app-text/texi2html )
1206 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1207 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1208 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1209 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
1210 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1211 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
1212 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1213 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1214 - test? ( net-misc/wget sys-devel/bc )
1215 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1216 - v4l? ( sys-kernel/linux-headers )
1217 -"
1218 -
1219 -RDEPEND="${RDEPEND}
1220 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
1221 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
1222 -
1223 -# Code requiring FFmpeg to be built under gpl license
1224 -GPL_REQUIRED_USE="
1225 - postproc? ( gpl )
1226 - frei0r? ( gpl )
1227 - cdio? ( gpl )
1228 - samba? ( gpl )
1229 - zvbi? ( gpl )
1230 - encode? (
1231 - x264? ( gpl )
1232 - x265? ( gpl )
1233 - xvid? ( gpl )
1234 - X? ( !xcb? ( gpl ) )
1235 - )
1236 -"
1237 -REQUIRED_USE="
1238 - libv4l? ( v4l )
1239 - fftools_cws2fws? ( zlib )
1240 - test? ( encode )
1241 - ${GPL_REQUIRED_USE}
1242 - ${CPU_REQUIRED_USE}"
1243 -RESTRICT="
1244 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
1245 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
1246 -"
1247 -
1248 -S=${WORKDIR}/${P/_/-}
1249 -
1250 -MULTILIB_WRAPPED_HEADERS=(
1251 - /usr/include/libavutil/avconfig.h
1252 -)
1253 -
1254 -src_prepare() {
1255 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
1256 - export revision=git-N-${FFMPEG_REVISION}
1257 - fi
1258 - epatch "${FILESDIR}/libvpx15.patch"
1259 - epatch_user
1260 -}
1261 -
1262 -multilib_src_configure() {
1263 - local myconf=( ${EXTRA_FFMPEG_CONF} )
1264 -
1265 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
1266 - use openssl && use gpl && myconf+=( --enable-nonfree )
1267 - use samba && myconf+=( --enable-version3 )
1268 -
1269 - # Encoders
1270 - if use encode ; then
1271 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
1272 -
1273 - # Licensing.
1274 - if use aac || use amrenc ; then
1275 - myconf+=( --enable-version3 )
1276 - fi
1277 - if use aacplus || use faac ; then
1278 - myconf+=( --enable-nonfree )
1279 - fi
1280 - else
1281 - myconf+=( --disable-encoders )
1282 - fi
1283 -
1284 - # Indevs
1285 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
1286 - for i in alsa oss jack ; do
1287 - use ${i} || myconf+=( --disable-indev=${i} )
1288 - done
1289 - use xcb || ffuse+=( X:x11grab )
1290 -
1291 - # Outdevs
1292 - for i in alsa oss sdl ; do
1293 - use ${i} || myconf+=( --disable-outdev=${i} )
1294 - done
1295 -
1296 - # Decoders
1297 - use amr && myconf+=( --enable-version3 )
1298 - use fdk && use gpl && myconf+=( --enable-nonfree )
1299 -
1300 - for i in "${ffuse[@]#+}" ; do
1301 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
1302 - done
1303 -
1304 - # (temporarily) disable non-multilib deps
1305 - if ! multilib_is_native_abi; then
1306 - for i in frei0r ; do
1307 - myconf+=( --disable-${i} )
1308 - done
1309 - fi
1310 -
1311 - # CPU features
1312 - for i in ${CPU_FEATURES_MAP} ; do
1313 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
1314 - local var="${i#*:}_CPU_FEATURES[@]"
1315 - for j in ${!var} ; do
1316 - use ${j%:*} || myconf+=( --disable-${j#*:} )
1317 - done
1318 - fi
1319 - done
1320 -
1321 - if use pic ; then
1322 - myconf+=( --enable-pic )
1323 - # disable asm code if PIC is required
1324 - # as the provided asm decidedly is not PIC for x86.
1325 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
1326 - fi
1327 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
1328 -
1329 - # Try to get cpu type based on CFLAGS.
1330 - # Bug #172723
1331 - # We need to do this so that features of that CPU will be better used
1332 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
1333 - # will just ignore it.
1334 - for i in $(get-flag mcpu) $(get-flag march) $(get-flag mtune) ; do
1335 - [[ ${i} = native ]] && i="host" # bug #273421
1336 - myconf+=( --cpu=${i} )
1337 - break
1338 - done
1339 -
1340 - # Mandatory configuration
1341 - myconf=(
1342 - --enable-avfilter
1343 - --enable-avresample
1344 - --disable-stripping
1345 - "${myconf[@]}"
1346 - )
1347 -
1348 - # cross compile support
1349 - if tc-is-cross-compiler ; then
1350 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
1351 - case ${CHOST} in
1352 - *freebsd*)
1353 - myconf+=( --target-os=freebsd )
1354 - ;;
1355 - mingw32*)
1356 - myconf+=( --target-os=mingw32 )
1357 - ;;
1358 - *linux*)
1359 - myconf+=( --target-os=linux )
1360 - ;;
1361 - esac
1362 - fi
1363 -
1364 - set -- "${S}/configure" \
1365 - --prefix="${EPREFIX}/usr" \
1366 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
1367 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
1368 - --mandir="${EPREFIX}/usr/share/man" \
1369 - --enable-shared \
1370 - --cc="$(tc-getCC)" \
1371 - --cxx="$(tc-getCXX)" \
1372 - --ar="$(tc-getAR)" \
1373 - --optflags=" " \
1374 - $(use_enable static-libs static) \
1375 - "${myconf[@]}"
1376 - echo "${@}"
1377 - "${@}" || die
1378 -}
1379 -
1380 -multilib_src_compile() {
1381 - emake V=1
1382 -
1383 - if multilib_is_native_abi; then
1384 - for i in "${FFTOOLS[@]}" ; do
1385 - if use fftools_${i} ; then
1386 - emake V=1 tools/${i}
1387 - fi
1388 - done
1389 - fi
1390 -}
1391 -
1392 -multilib_src_install() {
1393 - emake V=1 DESTDIR="${D}" install install-man
1394 -
1395 - if multilib_is_native_abi; then
1396 - for i in "${FFTOOLS[@]}" ; do
1397 - if use fftools_${i} ; then
1398 - dobin tools/${i}
1399 - fi
1400 - done
1401 - fi
1402 -}
1403 -
1404 -multilib_src_install_all() {
1405 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
1406 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
1407 - use doc && dohtml -r doc/*
1408 - if use examples ; then
1409 - dodoc -r doc/examples
1410 - docompress -x /usr/share/doc/${PF}/examples
1411 - fi
1412 -}
1413 -
1414 -multilib_src_test() {
1415 - 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" \
1416 - emake V=1 fate
1417 -}
1418
1419 diff --git a/media-video/ffmpeg/ffmpeg-2.8.3.ebuild b/media-video/ffmpeg/ffmpeg-2.8.3.ebuild
1420 deleted file mode 100644
1421 index 2603f85..0000000
1422 --- a/media-video/ffmpeg/ffmpeg-2.8.3.ebuild
1423 +++ /dev/null
1424 @@ -1,456 +0,0 @@
1425 -# Copyright 1999-2015 Gentoo Foundation
1426 -# Distributed under the terms of the GNU General Public License v2
1427 -# $Id$
1428 -
1429 -EAPI="5"
1430 -
1431 -# Subslot: libavutil major.libavcodec major.libavformat major
1432 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
1433 -# Most consumers will use those three libraries, if a "less used" library
1434 -# changes its soname, consumers will have to be rebuilt the old way
1435 -# (preserve-libs).
1436 -# If, for example, a package does not link to libavformat and only libavformat
1437 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
1438 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
1439 -# doing so since such a case is unlikely.
1440 -FFMPEG_SUBSLOT=54.56.56
1441 -
1442 -SCM=""
1443 -if [ "${PV#9999}" != "${PV}" ] ; then
1444 - SCM="git-2"
1445 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
1446 -fi
1447 -
1448 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
1449 -
1450 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
1451 -HOMEPAGE="http://ffmpeg.org/"
1452 -if [ "${PV#9999}" != "${PV}" ] ; then
1453 - SRC_URI=""
1454 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
1455 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
1456 -else # Release
1457 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
1458 -fi
1459 -FFMPEG_REVISION="${PV#*_p}"
1460 -
1461 -SLOT="0/${FFMPEG_SUBSLOT}"
1462 -LICENSE="
1463 - !gpl? ( LGPL-2.1 )
1464 - gpl? ( GPL-2 )
1465 - amr? (
1466 - gpl? ( GPL-3 )
1467 - !gpl? ( LGPL-3 )
1468 - )
1469 - encode? (
1470 - aac? (
1471 - gpl? ( GPL-3 )
1472 - !gpl? ( LGPL-3 )
1473 - )
1474 - amrenc? (
1475 - gpl? ( GPL-3 )
1476 - !gpl? ( LGPL-3 )
1477 - )
1478 - )
1479 - samba? ( GPL-3 )
1480 -"
1481 -if [ "${PV#9999}" = "${PV}" ] ; then
1482 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
1483 -fi
1484 -
1485 -# Options to use as use_enable in the foo[:bar] form.
1486 -# This will feed configure with $(use_enable foo bar)
1487 -# or $(use_enable foo foo) if no :bar is set.
1488 -# foo is added to IUSE.
1489 -FFMPEG_FLAG_MAP=(
1490 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
1491 - +hardcoded-tables +iconv lzma +network openssl +postproc
1492 - samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb
1493 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
1494 - # libavdevice options
1495 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
1496 - opengl
1497 - # indevs
1498 - libv4l:libv4l2 pulseaudio:libpulse
1499 - # decoders
1500 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
1501 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
1502 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
1503 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
1504 - zvbi:libzvbi
1505 - # libavfilter options
1506 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
1507 - libass truetype:libfreetype
1508 - # libswresample options
1509 - libsoxr
1510 - # Threads; we only support pthread for now but ffmpeg supports more
1511 - +threads:pthreads
1512 -)
1513 -
1514 -# Same as above but for encoders, i.e. they do something only with USE=encode.
1515 -FFMPEG_ENCODER_FLAG_MAP=(
1516 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
1517 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
1518 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
1519 - xvid:libxvid
1520 -)
1521 -
1522 -IUSE="
1523 - alsa +encode examples jack libressl oss pic static-libs test v4l
1524 - ${FFMPEG_FLAG_MAP[@]%:*}
1525 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
1526 -"
1527 -
1528 -# Strings for CPU features in the useflag[:configure_option] form
1529 -# if :configure_option isn't set, it will use 'useflag' as configure option
1530 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
1531 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
1532 -PPC_CPU_FEATURES=( altivec )
1533 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext 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 )
1534 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
1535 -X86_CPU_REQUIRED_USE="
1536 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
1537 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
1538 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
1539 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
1540 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
1541 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
1542 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
1543 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
1544 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
1545 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
1546 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
1547 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
1548 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
1549 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
1550 -"
1551 -
1552 -IUSE="${IUSE}
1553 - ${ARM_CPU_FEATURES[@]%:*}
1554 - ${MIPS_CPU_FEATURES[@]%:*}
1555 - ${PPC_CPU_FEATURES[@]%:*}
1556 - ${X86_CPU_FEATURES[@]%:*}
1557 -"
1558 -
1559 -CPU_REQUIRED_USE="
1560 - ${X86_CPU_REQUIRED_USE}
1561 -"
1562 -
1563 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
1564 -# $(tc-arch).
1565 -CPU_FEATURES_MAP="
1566 - arm:ARM
1567 - arm64:ARM
1568 - mips:MIPS
1569 - ppc:PPC
1570 - ppc64:PPC
1571 - x86:X86
1572 - amd64:X86
1573 -"
1574 -
1575 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
1576 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
1577 -
1578 -RDEPEND="
1579 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
1580 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
1581 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
1582 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
1583 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
1584 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
1585 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
1586 - encode? (
1587 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
1588 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
1589 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
1590 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
1591 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
1592 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
1593 - theora? (
1594 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
1595 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
1596 - )
1597 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
1598 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
1599 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
1600 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
1601 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
1602 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
1603 - )
1604 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
1605 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
1606 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
1607 - frei0r? ( media-plugins/frei0r-plugins )
1608 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
1609 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
1610 - gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
1611 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
1612 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
1613 - iec61883? (
1614 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
1615 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
1616 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
1617 - )
1618 - ieee1394? (
1619 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
1620 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
1621 - )
1622 - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
1623 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
1624 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
1625 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
1626 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
1627 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
1628 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
1629 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
1630 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
1631 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
1632 - openssl? (
1633 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
1634 - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
1635 - )
1636 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
1637 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
1638 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
1639 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
1640 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
1641 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
1642 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
1643 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
1644 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
1645 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
1646 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
1647 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
1648 - vorbis? (
1649 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
1650 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
1651 - )
1652 - vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
1653 - X? (
1654 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
1655 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
1656 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
1657 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
1658 - )
1659 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
1660 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
1661 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
1662 - !media-video/qt-faststart
1663 - postproc? ( !media-libs/libpostproc )
1664 -"
1665 -
1666 -DEPEND="${RDEPEND}
1667 - >=sys-devel/make-3.81
1668 - doc? ( app-text/texi2html )
1669 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1670 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1671 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1672 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
1673 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1674 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
1675 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1676 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1677 - test? ( net-misc/wget sys-devel/bc )
1678 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
1679 - v4l? ( sys-kernel/linux-headers )
1680 -"
1681 -
1682 -RDEPEND="${RDEPEND}
1683 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
1684 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
1685 -
1686 -# Code requiring FFmpeg to be built under gpl license
1687 -GPL_REQUIRED_USE="
1688 - postproc? ( gpl )
1689 - frei0r? ( gpl )
1690 - cdio? ( gpl )
1691 - samba? ( gpl )
1692 - zvbi? ( gpl )
1693 - encode? (
1694 - x264? ( gpl )
1695 - x265? ( gpl )
1696 - xvid? ( gpl )
1697 - X? ( !xcb? ( gpl ) )
1698 - )
1699 -"
1700 -REQUIRED_USE="
1701 - libv4l? ( v4l )
1702 - fftools_cws2fws? ( zlib )
1703 - test? ( encode )
1704 - ${GPL_REQUIRED_USE}
1705 - ${CPU_REQUIRED_USE}"
1706 -RESTRICT="
1707 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
1708 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
1709 -"
1710 -
1711 -S=${WORKDIR}/${P/_/-}
1712 -
1713 -MULTILIB_WRAPPED_HEADERS=(
1714 - /usr/include/libavutil/avconfig.h
1715 -)
1716 -
1717 -src_prepare() {
1718 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
1719 - export revision=git-N-${FFMPEG_REVISION}
1720 - fi
1721 - epatch "${FILESDIR}/libvpx15.patch"
1722 - epatch_user
1723 -}
1724 -
1725 -multilib_src_configure() {
1726 - local myconf=( ${EXTRA_FFMPEG_CONF} )
1727 -
1728 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
1729 - use openssl && use gpl && myconf+=( --enable-nonfree )
1730 - use samba && myconf+=( --enable-version3 )
1731 -
1732 - # Encoders
1733 - if use encode ; then
1734 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
1735 -
1736 - # Licensing.
1737 - if use aac || use amrenc ; then
1738 - myconf+=( --enable-version3 )
1739 - fi
1740 - if use aacplus || use faac ; then
1741 - myconf+=( --enable-nonfree )
1742 - fi
1743 - else
1744 - myconf+=( --disable-encoders )
1745 - fi
1746 -
1747 - # Indevs
1748 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
1749 - for i in alsa oss jack ; do
1750 - use ${i} || myconf+=( --disable-indev=${i} )
1751 - done
1752 - use xcb || ffuse+=( X:x11grab )
1753 -
1754 - # Outdevs
1755 - for i in alsa oss sdl ; do
1756 - use ${i} || myconf+=( --disable-outdev=${i} )
1757 - done
1758 -
1759 - # Decoders
1760 - use amr && myconf+=( --enable-version3 )
1761 - use fdk && use gpl && myconf+=( --enable-nonfree )
1762 -
1763 - for i in "${ffuse[@]#+}" ; do
1764 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
1765 - done
1766 -
1767 - # (temporarily) disable non-multilib deps
1768 - if ! multilib_is_native_abi; then
1769 - for i in frei0r ; do
1770 - myconf+=( --disable-${i} )
1771 - done
1772 - fi
1773 -
1774 - # CPU features
1775 - for i in ${CPU_FEATURES_MAP} ; do
1776 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
1777 - local var="${i#*:}_CPU_FEATURES[@]"
1778 - for j in ${!var} ; do
1779 - use ${j%:*} || myconf+=( --disable-${j#*:} )
1780 - done
1781 - fi
1782 - done
1783 -
1784 - if use pic ; then
1785 - myconf+=( --enable-pic )
1786 - # disable asm code if PIC is required
1787 - # as the provided asm decidedly is not PIC for x86.
1788 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
1789 - fi
1790 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
1791 -
1792 - # Try to get cpu type based on CFLAGS.
1793 - # Bug #172723
1794 - # We need to do this so that features of that CPU will be better used
1795 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
1796 - # will just ignore it.
1797 - for i in $(get-flag mcpu) $(get-flag march) $(get-flag mtune) ; do
1798 - [[ ${i} = native ]] && i="host" # bug #273421
1799 - myconf+=( --cpu=${i} )
1800 - break
1801 - done
1802 -
1803 - # Mandatory configuration
1804 - myconf=(
1805 - --enable-avfilter
1806 - --enable-avresample
1807 - --disable-stripping
1808 - "${myconf[@]}"
1809 - )
1810 -
1811 - # cross compile support
1812 - if tc-is-cross-compiler ; then
1813 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
1814 - case ${CHOST} in
1815 - *freebsd*)
1816 - myconf+=( --target-os=freebsd )
1817 - ;;
1818 - mingw32*)
1819 - myconf+=( --target-os=mingw32 )
1820 - ;;
1821 - *linux*)
1822 - myconf+=( --target-os=linux )
1823 - ;;
1824 - esac
1825 - fi
1826 -
1827 - set -- "${S}/configure" \
1828 - --prefix="${EPREFIX}/usr" \
1829 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
1830 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
1831 - --mandir="${EPREFIX}/usr/share/man" \
1832 - --enable-shared \
1833 - --cc="$(tc-getCC)" \
1834 - --cxx="$(tc-getCXX)" \
1835 - --ar="$(tc-getAR)" \
1836 - --optflags=" " \
1837 - $(use_enable static-libs static) \
1838 - "${myconf[@]}"
1839 - echo "${@}"
1840 - "${@}" || die
1841 -}
1842 -
1843 -multilib_src_compile() {
1844 - emake V=1
1845 -
1846 - if multilib_is_native_abi; then
1847 - for i in "${FFTOOLS[@]}" ; do
1848 - if use fftools_${i} ; then
1849 - emake V=1 tools/${i}
1850 - fi
1851 - done
1852 - fi
1853 -}
1854 -
1855 -multilib_src_install() {
1856 - emake V=1 DESTDIR="${D}" install install-man
1857 -
1858 - if multilib_is_native_abi; then
1859 - for i in "${FFTOOLS[@]}" ; do
1860 - if use fftools_${i} ; then
1861 - dobin tools/${i}
1862 - fi
1863 - done
1864 - fi
1865 -}
1866 -
1867 -multilib_src_install_all() {
1868 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
1869 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
1870 - use doc && dohtml -r doc/*
1871 - if use examples ; then
1872 - dodoc -r doc/examples
1873 - docompress -x /usr/share/doc/${PF}/examples
1874 - fi
1875 -}
1876 -
1877 -multilib_src_test() {
1878 - 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" \
1879 - emake V=1 fate
1880 -}
1881
1882 diff --git a/media-video/ffmpeg/ffmpeg-2.8.4.ebuild b/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
1883 deleted file mode 100644
1884 index 83454bb..0000000
1885 --- a/media-video/ffmpeg/ffmpeg-2.8.4.ebuild
1886 +++ /dev/null
1887 @@ -1,458 +0,0 @@
1888 -# Copyright 1999-2015 Gentoo Foundation
1889 -# Distributed under the terms of the GNU General Public License v2
1890 -# $Id$
1891 -
1892 -EAPI="5"
1893 -
1894 -# Subslot: libavutil major.libavcodec major.libavformat major
1895 -# Since FFmpeg ships several libraries, subslot is kind of limited here.
1896 -# Most consumers will use those three libraries, if a "less used" library
1897 -# changes its soname, consumers will have to be rebuilt the old way
1898 -# (preserve-libs).
1899 -# If, for example, a package does not link to libavformat and only libavformat
1900 -# changes its ABI then this package will be rebuilt needlessly. Hence, such a
1901 -# package is free _not_ to := depend on FFmpeg but I would strongly encourage
1902 -# doing so since such a case is unlikely.
1903 -FFMPEG_SUBSLOT=54.56.56
1904 -
1905 -SCM=""
1906 -if [ "${PV#9999}" != "${PV}" ] ; then
1907 - SCM="git-2"
1908 - EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
1909 -fi
1910 -
1911 -inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
1912 -
1913 -DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec"
1914 -HOMEPAGE="http://ffmpeg.org/"
1915 -if [ "${PV#9999}" != "${PV}" ] ; then
1916 - SRC_URI=""
1917 -elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
1918 - SRC_URI="mirror://gentoo/${P}.tar.bz2"
1919 -else # Release
1920 - SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
1921 -fi
1922 -FFMPEG_REVISION="${PV#*_p}"
1923 -
1924 -SLOT="0/${FFMPEG_SUBSLOT}"
1925 -LICENSE="
1926 - !gpl? ( LGPL-2.1 )
1927 - gpl? ( GPL-2 )
1928 - amr? (
1929 - gpl? ( GPL-3 )
1930 - !gpl? ( LGPL-3 )
1931 - )
1932 - encode? (
1933 - aac? (
1934 - gpl? ( GPL-3 )
1935 - !gpl? ( LGPL-3 )
1936 - )
1937 - amrenc? (
1938 - gpl? ( GPL-3 )
1939 - !gpl? ( LGPL-3 )
1940 - )
1941 - )
1942 - samba? ( GPL-3 )
1943 -"
1944 -if [ "${PV#9999}" = "${PV}" ] ; then
1945 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
1946 -fi
1947 -
1948 -# Options to use as use_enable in the foo[:bar] form.
1949 -# This will feed configure with $(use_enable foo bar)
1950 -# or $(use_enable foo foo) if no :bar is set.
1951 -# foo is added to IUSE.
1952 -FFMPEG_FLAG_MAP=(
1953 - +bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl
1954 - +hardcoded-tables +iconv lzma +network openssl +postproc
1955 - samba:libsmbclient sdl:ffplay sdl vaapi vdpau X:xlib xcb:libxcb
1956 - xcb:libxcb-shm xcb:libxcb-xfixes +zlib
1957 - # libavdevice options
1958 - cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal
1959 - opengl
1960 - # indevs
1961 - libv4l:libv4l2 pulseaudio:libpulse
1962 - # decoders
1963 - amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac
1964 - jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm
1965 - modplug:libmodplug opus:libopus quvi:libquvi librtmp ssh:libssh
1966 - schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx
1967 - zvbi:libzvbi
1968 - # libavfilter options
1969 - bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa
1970 - libass truetype:libfreetype
1971 - # libswresample options
1972 - libsoxr
1973 - # Threads; we only support pthread for now but ffmpeg supports more
1974 - +threads:pthreads
1975 -)
1976 -
1977 -# Same as above but for encoders, i.e. they do something only with USE=encode.
1978 -FFMPEG_ENCODER_FLAG_MAP=(
1979 - aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame
1980 - aacplus:libaacplus faac:libfaac snappy:libsnappy theora:libtheora
1981 - twolame:libtwolame wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265
1982 - xvid:libxvid
1983 -)
1984 -
1985 -IUSE="
1986 - alsa +encode examples jack libressl oss pic static-libs test v4l
1987 - ${FFMPEG_FLAG_MAP[@]%:*}
1988 - ${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
1989 -"
1990 -
1991 -# Strings for CPU features in the useflag[:configure_option] form
1992 -# if :configure_option isn't set, it will use 'useflag' as configure option
1993 -ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
1994 -MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu )
1995 -PPC_CPU_FEATURES=( altivec )
1996 -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext 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 )
1997 -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
1998 -X86_CPU_REQUIRED_USE="
1999 - cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
2000 - cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
2001 - cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
2002 - cpu_flags_x86_xop? ( cpu_flags_x86_avx )
2003 - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
2004 - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
2005 - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
2006 - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
2007 - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
2008 - cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
2009 - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
2010 - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
2011 - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
2012 - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
2013 -"
2014 -
2015 -IUSE="${IUSE}
2016 - ${ARM_CPU_FEATURES[@]%:*}
2017 - ${MIPS_CPU_FEATURES[@]%:*}
2018 - ${PPC_CPU_FEATURES[@]%:*}
2019 - ${X86_CPU_FEATURES[@]%:*}
2020 -"
2021 -
2022 -CPU_REQUIRED_USE="
2023 - ${X86_CPU_REQUIRED_USE}
2024 -"
2025 -
2026 -# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
2027 -# $(tc-arch).
2028 -CPU_FEATURES_MAP="
2029 - arm:ARM
2030 - arm64:ARM
2031 - mips:MIPS
2032 - ppc:PPC
2033 - ppc64:PPC
2034 - x86:X86
2035 - amd64:X86
2036 -"
2037 -
2038 -FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher )
2039 -IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}"
2040 -
2041 -RDEPEND="
2042 - alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
2043 - amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
2044 - bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
2045 - bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
2046 - bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
2047 - cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] )
2048 - celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
2049 - encode? (
2050 - aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
2051 - aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
2052 - amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
2053 - faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
2054 - mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
2055 - snappy? ( >=app-arch/snappy-1.1.2-r1[${MULTILIB_USEDEP}] )
2056 - theora? (
2057 - >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
2058 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
2059 - )
2060 - twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
2061 - wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
2062 - webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
2063 - x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
2064 - x265? ( >=media-libs/x265-1.6:=[${MULTILIB_USEDEP}] )
2065 - xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
2066 - )
2067 - fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] )
2068 - flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
2069 - fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
2070 - frei0r? ( media-plugins/frei0r-plugins )
2071 - fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
2072 - gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
2073 - gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
2074 - gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
2075 - iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
2076 - iec61883? (
2077 - >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
2078 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
2079 - >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
2080 - )
2081 - ieee1394? (
2082 - >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
2083 - >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
2084 - )
2085 - jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
2086 - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
2087 - libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
2088 - libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
2089 - libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
2090 - libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
2091 - lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
2092 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
2093 - openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
2094 - opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
2095 - openssl? (
2096 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
2097 - libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
2098 - )
2099 - opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
2100 - pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
2101 - quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
2102 - librtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
2103 - samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
2104 - schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
2105 - sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
2106 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
2107 - ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
2108 - truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
2109 - vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
2110 - vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
2111 - vorbis? (
2112 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
2113 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
2114 - )
2115 - vpx? ( >=media-libs/libvpx-1.4.0:=[${MULTILIB_USEDEP}] )
2116 - X? (
2117 - >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
2118 - >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
2119 - !xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] )
2120 - >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}]
2121 - )
2122 - xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] )
2123 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
2124 - zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
2125 - !media-video/qt-faststart
2126 - postproc? ( !media-libs/libpostproc )
2127 -"
2128 -
2129 -DEPEND="${RDEPEND}
2130 - >=sys-devel/make-3.81
2131 - doc? ( app-text/texi2html )
2132 - fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
2133 - gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
2134 - ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
2135 - ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
2136 - libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
2137 - cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 )
2138 - librtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
2139 - schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
2140 - test? ( net-misc/wget sys-devel/bc )
2141 - truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
2142 - v4l? ( sys-kernel/linux-headers )
2143 -"
2144 -
2145 -RDEPEND="${RDEPEND}
2146 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
2147 - !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
2148 -
2149 -# Code requiring FFmpeg to be built under gpl license
2150 -GPL_REQUIRED_USE="
2151 - postproc? ( gpl )
2152 - frei0r? ( gpl )
2153 - cdio? ( gpl )
2154 - samba? ( gpl )
2155 - zvbi? ( gpl )
2156 - encode? (
2157 - x264? ( gpl )
2158 - x265? ( gpl )
2159 - xvid? ( gpl )
2160 - X? ( !xcb? ( gpl ) )
2161 - )
2162 -"
2163 -REQUIRED_USE="
2164 - libv4l? ( v4l )
2165 - fftools_cws2fws? ( zlib )
2166 - test? ( encode )
2167 - ${GPL_REQUIRED_USE}
2168 - ${CPU_REQUIRED_USE}"
2169 -RESTRICT="
2170 - encode? ( faac? ( bindist ) aacplus? ( bindist ) )
2171 - gpl? ( openssl? ( bindist ) fdk? ( bindist ) )
2172 -"
2173 -
2174 -S=${WORKDIR}/${P/_/-}
2175 -
2176 -MULTILIB_WRAPPED_HEADERS=(
2177 - /usr/include/libavutil/avconfig.h
2178 -)
2179 -
2180 -src_prepare() {
2181 - if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
2182 - export revision=git-N-${FFMPEG_REVISION}
2183 - fi
2184 - epatch_user
2185 -}
2186 -
2187 -multilib_src_configure() {
2188 - local myconf=( ${EXTRA_FFMPEG_CONF} )
2189 -
2190 - local ffuse=( "${FFMPEG_FLAG_MAP[@]}" )
2191 - use openssl && use gpl && myconf+=( --enable-nonfree )
2192 - use samba && myconf+=( --enable-version3 )
2193 -
2194 - # Encoders
2195 - if use encode ; then
2196 - ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" )
2197 -
2198 - # Licensing.
2199 - if use aac || use amrenc ; then
2200 - myconf+=( --enable-version3 )
2201 - fi
2202 - if use aacplus || use faac ; then
2203 - myconf+=( --enable-nonfree )
2204 - fi
2205 - else
2206 - myconf+=( --disable-encoders )
2207 - fi
2208 -
2209 - # Indevs
2210 - use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
2211 - for i in alsa oss jack ; do
2212 - use ${i} || myconf+=( --disable-indev=${i} )
2213 - done
2214 - use xcb || ffuse+=( X:x11grab )
2215 -
2216 - # Outdevs
2217 - for i in alsa oss sdl ; do
2218 - use ${i} || myconf+=( --disable-outdev=${i} )
2219 - done
2220 -
2221 - # Decoders
2222 - use amr && myconf+=( --enable-version3 )
2223 - use fdk && use gpl && myconf+=( --enable-nonfree )
2224 -
2225 - for i in "${ffuse[@]#+}" ; do
2226 - myconf+=( $(use_enable ${i%:*} ${i#*:}) )
2227 - done
2228 -
2229 - # (temporarily) disable non-multilib deps
2230 - if ! multilib_is_native_abi; then
2231 - for i in frei0r ; do
2232 - myconf+=( --disable-${i} )
2233 - done
2234 - fi
2235 -
2236 - # CPU features
2237 - for i in ${CPU_FEATURES_MAP} ; do
2238 - if [ "$(tc-arch)" = "${i%:*}" ] ; then
2239 - local var="${i#*:}_CPU_FEATURES[@]"
2240 - for j in ${!var} ; do
2241 - use ${j%:*} || myconf+=( --disable-${j#*:} )
2242 - done
2243 - fi
2244 - done
2245 -
2246 - if use pic ; then
2247 - myconf+=( --enable-pic )
2248 - # disable asm code if PIC is required
2249 - # as the provided asm decidedly is not PIC for x86.
2250 - [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
2251 - fi
2252 - [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
2253 -
2254 - # Try to get cpu type based on CFLAGS.
2255 - # Bug #172723
2256 - # We need to do this so that features of that CPU will be better used
2257 - # If they contain an unknown CPU it will not hurt since ffmpeg's configure
2258 - # will just ignore it.
2259 - for i in $(get-flag mcpu) $(get-flag march) $(get-flag mtune) ; do
2260 - [[ ${i} = native ]] && i="host" # bug #273421
2261 - myconf+=( --cpu=${i} )
2262 - break
2263 - done
2264 -
2265 - # LTO support, bug #566282
2266 - is-flagq "-flto*" && myconf+=( "--enable-lto" )
2267 -
2268 - # Mandatory configuration
2269 - myconf=(
2270 - --enable-avfilter
2271 - --enable-avresample
2272 - --disable-stripping
2273 - "${myconf[@]}"
2274 - )
2275 -
2276 - # cross compile support
2277 - if tc-is-cross-compiler ; then
2278 - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
2279 - case ${CHOST} in
2280 - *freebsd*)
2281 - myconf+=( --target-os=freebsd )
2282 - ;;
2283 - mingw32*)
2284 - myconf+=( --target-os=mingw32 )
2285 - ;;
2286 - *linux*)
2287 - myconf+=( --target-os=linux )
2288 - ;;
2289 - esac
2290 - fi
2291 -
2292 - set -- "${S}/configure" \
2293 - --prefix="${EPREFIX}/usr" \
2294 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
2295 - --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
2296 - --mandir="${EPREFIX}/usr/share/man" \
2297 - --enable-shared \
2298 - --cc="$(tc-getCC)" \
2299 - --cxx="$(tc-getCXX)" \
2300 - --ar="$(tc-getAR)" \
2301 - --optflags="${CFLAGS}" \
2302 - $(use_enable static-libs static) \
2303 - "${myconf[@]}"
2304 - echo "${@}"
2305 - "${@}" || die
2306 -}
2307 -
2308 -multilib_src_compile() {
2309 - emake V=1
2310 -
2311 - if multilib_is_native_abi; then
2312 - for i in "${FFTOOLS[@]}" ; do
2313 - if use fftools_${i} ; then
2314 - emake V=1 tools/${i}
2315 - fi
2316 - done
2317 - fi
2318 -}
2319 -
2320 -multilib_src_install() {
2321 - emake V=1 DESTDIR="${D}" install install-man
2322 -
2323 - if multilib_is_native_abi; then
2324 - for i in "${FFTOOLS[@]}" ; do
2325 - if use fftools_${i} ; then
2326 - dobin tools/${i}
2327 - fi
2328 - done
2329 - fi
2330 -}
2331 -
2332 -multilib_src_install_all() {
2333 - dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
2334 - [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
2335 - use doc && dohtml -r doc/*
2336 - if use examples ; then
2337 - dodoc -r doc/examples
2338 - docompress -x /usr/share/doc/${PF}/examples
2339 - fi
2340 -}
2341 -
2342 -multilib_src_test() {
2343 - 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" \
2344 - emake V=1 fate
2345 -}
2346
2347 diff --git a/media-video/ffmpeg/files/libvpx15.patch b/media-video/ffmpeg/files/libvpx15.patch
2348 deleted file mode 100644
2349 index ae3770c..0000000
2350 --- a/media-video/ffmpeg/files/libvpx15.patch
2351 +++ /dev/null
2352 @@ -1,36 +0,0 @@
2353 -commit 6540fe04a3f9a11ba7084a49b3ee5fa2fc5b32ab
2354 -Author: James Zern <jzern@××××××.com>
2355 -Date: Mon Oct 19 22:44:11 2015 -0700
2356 -
2357 - libvpxenc: remove some unused ctrl id mappings
2358 -
2359 - VP8E_UPD_ENTROPY, VP8E_UPD_REFERENCE, VP8E_USE_REFERENCE were removed
2360 - from libvpx and the remaining values were never used here
2361 -
2362 - Reviewed-by: Michael Niedermayer <michael@×××××××××××.cc>
2363 - Signed-off-by: James Zern <jzern@××××××.com>
2364 -
2365 -diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
2366 -index 5f39783..992122c 100644
2367 ---- a/libavcodec/libvpxenc.c
2368 -+++ b/libavcodec/libvpxenc.c
2369 -@@ -104,19 +104,11 @@ typedef struct VP8EncoderContext {
2370 -
2371 - /** String mappings for enum vp8e_enc_control_id */
2372 - static const char *const ctlidstr[] = {
2373 -- [VP8E_UPD_ENTROPY] = "VP8E_UPD_ENTROPY",
2374 -- [VP8E_UPD_REFERENCE] = "VP8E_UPD_REFERENCE",
2375 -- [VP8E_USE_REFERENCE] = "VP8E_USE_REFERENCE",
2376 -- [VP8E_SET_ROI_MAP] = "VP8E_SET_ROI_MAP",
2377 -- [VP8E_SET_ACTIVEMAP] = "VP8E_SET_ACTIVEMAP",
2378 -- [VP8E_SET_SCALEMODE] = "VP8E_SET_SCALEMODE",
2379 - [VP8E_SET_CPUUSED] = "VP8E_SET_CPUUSED",
2380 - [VP8E_SET_ENABLEAUTOALTREF] = "VP8E_SET_ENABLEAUTOALTREF",
2381 - [VP8E_SET_NOISE_SENSITIVITY] = "VP8E_SET_NOISE_SENSITIVITY",
2382 -- [VP8E_SET_SHARPNESS] = "VP8E_SET_SHARPNESS",
2383 - [VP8E_SET_STATIC_THRESHOLD] = "VP8E_SET_STATIC_THRESHOLD",
2384 - [VP8E_SET_TOKEN_PARTITIONS] = "VP8E_SET_TOKEN_PARTITIONS",
2385 -- [VP8E_GET_LAST_QUANTIZER] = "VP8E_GET_LAST_QUANTIZER",
2386 - [VP8E_SET_ARNR_MAXFRAMES] = "VP8E_SET_ARNR_MAXFRAMES",
2387 - [VP8E_SET_ARNR_STRENGTH] = "VP8E_SET_ARNR_STRENGTH",
2388 - [VP8E_SET_ARNR_TYPE] = "VP8E_SET_ARNR_TYPE",