1 |
aballier 15/07/30 09:59:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ffmpeg-2.6.4.ebuild |
5 |
Log: |
6 |
bump the 2.6 branch |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.880 media-video/ffmpeg/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.880&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.880&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.879&r2=1.880 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v |
20 |
retrieving revision 1.879 |
21 |
retrieving revision 1.880 |
22 |
diff -u -r1.879 -r1.880 |
23 |
--- ChangeLog 23 Jul 2015 20:14:08 -0000 1.879 |
24 |
+++ ChangeLog 30 Jul 2015 09:59:35 -0000 1.880 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-video/ffmpeg |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.879 2015/07/23 20:14:08 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.880 2015/07/30 09:59:35 aballier Exp $ |
30 |
+ |
31 |
+*ffmpeg-2.6.4 (30 Jul 2015) |
32 |
+ |
33 |
+ 30 Jul 2015; Alexis Ballier <aballier@g.o> +ffmpeg-2.6.4.ebuild: |
34 |
+ bump the 2.6 branch |
35 |
|
36 |
23 Jul 2015; Pacho Ramos <pacho@g.o> ffmpeg-2.6.3.ebuild: |
37 |
ppc stable wrt bug #547462 |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-video/ffmpeg/ffmpeg-2.6.4.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.6.4.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.6.4.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ffmpeg-2.6.4.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2015 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-2.6.4.ebuild,v 1.1 2015/07/30 09:59:35 aballier Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
|
54 |
# Subslot: libavutil major.libavcodec major.libavformat major |
55 |
# Since FFmpeg ships several libraries, subslot is kind of limited here. |
56 |
# Most consumers will use those three libraries, if a "less used" library |
57 |
# changes its soname, consumers will have to be rebuilt the old way |
58 |
# (preserve-libs). |
59 |
# If, for example, a package does not link to libavformat and only libavformat |
60 |
# changes its ABI then this package will be rebuilt needlessly. Hence, such a |
61 |
# package is free _not_ to := depend on FFmpeg but I would strongly encourage |
62 |
# doing so since such a case is unlikely. |
63 |
FFMPEG_SUBSLOT=54.56.56 |
64 |
|
65 |
SCM="" |
66 |
if [ "${PV#9999}" != "${PV}" ] ; then |
67 |
SCM="git-2" |
68 |
EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
69 |
fi |
70 |
|
71 |
inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} |
72 |
|
73 |
DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec" |
74 |
HOMEPAGE="http://ffmpeg.org/" |
75 |
if [ "${PV#9999}" != "${PV}" ] ; then |
76 |
SRC_URI="" |
77 |
elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
78 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
79 |
else # Release |
80 |
SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" |
81 |
fi |
82 |
FFMPEG_REVISION="${PV#*_p}" |
83 |
|
84 |
SLOT="0/${FFMPEG_SUBSLOT}" |
85 |
LICENSE=" |
86 |
!gpl? ( LGPL-2.1 ) |
87 |
gpl? ( GPL-2 ) |
88 |
amr? ( |
89 |
gpl? ( GPL-3 ) |
90 |
!gpl? ( LGPL-3 ) |
91 |
) |
92 |
encode? ( |
93 |
aac? ( |
94 |
gpl? ( GPL-3 ) |
95 |
!gpl? ( LGPL-3 ) |
96 |
) |
97 |
amrenc? ( |
98 |
gpl? ( GPL-3 ) |
99 |
!gpl? ( LGPL-3 ) |
100 |
) |
101 |
) |
102 |
samba? ( GPL-3 ) |
103 |
" |
104 |
if [ "${PV#9999}" = "${PV}" ] ; then |
105 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
106 |
fi |
107 |
|
108 |
# Options to use as use_enable in the foo[:bar] form. |
109 |
# This will feed configure with $(use_enable foo bar) |
110 |
# or $(use_enable foo foo) if no :bar is set. |
111 |
# foo is added to IUSE. |
112 |
FFMPEG_FLAG_MAP=( |
113 |
+bzip2:bzlib cpudetection:runtime-cpudetect debug doc gnutls +gpl |
114 |
+hardcoded-tables +iconv lzma +network openssl +postproc |
115 |
samba:libsmbclient sdl:ffplay vaapi vdpau X:xlib xcb:libxcb |
116 |
xcb:libxcb-shm xcb:libxcb-xfixes +zlib |
117 |
# libavdevice options |
118 |
cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal |
119 |
opengl |
120 |
# indevs |
121 |
libv4l:libv4l2 pulseaudio:libpulse |
122 |
# decoders |
123 |
amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac |
124 |
jpeg2k:libopenjpeg bluray:libbluray celt:libcelt gme:libgme gsm:libgsm |
125 |
modplug:libmodplug opus:libopus quvi:libquvi rtmp:librtmp ssh:libssh |
126 |
schroedinger:libschroedinger speex:libspeex vorbis:libvorbis vpx:libvpx |
127 |
zvbi:libzvbi |
128 |
# libavfilter options |
129 |
bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa |
130 |
libass truetype:libfreetype |
131 |
# libswresample options |
132 |
libsoxr |
133 |
# Threads; we only support pthread for now but ffmpeg supports more |
134 |
+threads:pthreads |
135 |
) |
136 |
|
137 |
# Same as above but for encoders, i.e. they do something only with USE=encode. |
138 |
FFMPEG_ENCODER_FLAG_MAP=( |
139 |
aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame |
140 |
aacplus:libaacplus faac:libfaac theora:libtheora twolame:libtwolame |
141 |
wavpack:libwavpack webp:libwebp x264:libx264 x265:libx265 xvid:libxvid |
142 |
) |
143 |
|
144 |
IUSE=" |
145 |
alsa +encode examples jack oss pic static-libs test v4l |
146 |
${FFMPEG_FLAG_MAP[@]%:*} |
147 |
${FFMPEG_ENCODER_FLAG_MAP[@]%:*} |
148 |
" |
149 |
|
150 |
# Strings for CPU features in the useflag[:configure_option] form |
151 |
# if :configure_option isn't set, it will use 'useflag' as configure option |
152 |
ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp ) |
153 |
MIPS_CPU_FEATURES=( mipsdspr1 mipsdspr2 mipsfpu ) |
154 |
PPC_CPU_FEATURES=( altivec ) |
155 |
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 ) |
156 |
X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) |
157 |
X86_CPU_REQUIRED_USE=" |
158 |
cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) |
159 |
cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) |
160 |
cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) |
161 |
cpu_flags_x86_xop? ( cpu_flags_x86_avx ) |
162 |
cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) |
163 |
cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) |
164 |
cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) |
165 |
cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) |
166 |
cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) |
167 |
cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) |
168 |
cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) |
169 |
cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) |
170 |
cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) |
171 |
cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) |
172 |
" |
173 |
|
174 |
IUSE="${IUSE} |
175 |
${ARM_CPU_FEATURES[@]%:*} |
176 |
${MIPS_CPU_FEATURES[@]%:*} |
177 |
${PPC_CPU_FEATURES[@]%:*} |
178 |
${X86_CPU_FEATURES[@]%:*} |
179 |
" |
180 |
|
181 |
CPU_REQUIRED_USE=" |
182 |
${X86_CPU_REQUIRED_USE} |
183 |
" |
184 |
|
185 |
# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to |
186 |
# $(tc-arch). |
187 |
CPU_FEATURES_MAP=" |
188 |
arm:ARM |
189 |
arm64:ARM |
190 |
mips:MIPS |
191 |
ppc:PPC |
192 |
ppc64:PPC |
193 |
x86:X86 |
194 |
amd64:X86 |
195 |
" |
196 |
|
197 |
FFTOOLS=( aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher ) |
198 |
IUSE="${IUSE} ${FFTOOLS[@]/#/+fftools_}" |
199 |
|
200 |
RDEPEND=" |
201 |
alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
202 |
amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
203 |
bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
204 |
bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) |
205 |
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
206 |
cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
207 |
celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
208 |
encode? ( |
209 |
aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
210 |
aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] ) |
211 |
amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
212 |
faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
213 |
mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
214 |
theora? ( |
215 |
>=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] |
216 |
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
217 |
) |
218 |
twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
219 |
wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) |
220 |
webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) |
221 |
x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
222 |
x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) |
223 |
xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
224 |
) |
225 |
fdk? ( >=media-libs/fdk-aac-0.1.3:=[${MULTILIB_USEDEP}] ) |
226 |
flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
227 |
fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
228 |
frei0r? ( media-plugins/frei0r-plugins ) |
229 |
fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) |
230 |
gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) |
231 |
gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
232 |
gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
233 |
iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
234 |
iec61883? ( |
235 |
>=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
236 |
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
237 |
>=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
238 |
) |
239 |
ieee1394? ( |
240 |
>=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
241 |
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
242 |
) |
243 |
jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
244 |
jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
245 |
libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
246 |
libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
247 |
libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
248 |
libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
249 |
lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] ) |
250 |
modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
251 |
openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
252 |
opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) |
253 |
openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) |
254 |
opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
255 |
pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
256 |
quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] ) |
257 |
rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
258 |
samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] ) |
259 |
schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
260 |
sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
261 |
speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
262 |
ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] ) |
263 |
truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
264 |
vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
265 |
vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
266 |
vorbis? ( |
267 |
>=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
268 |
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
269 |
) |
270 |
vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
271 |
X? ( |
272 |
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
273 |
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
274 |
!xcb? ( >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
275 |
>=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] |
276 |
) |
277 |
xcb? ( >=x11-libs/libxcb-1.4[${MULTILIB_USEDEP}] ) |
278 |
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
279 |
zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) |
280 |
!media-video/qt-faststart |
281 |
postproc? ( !media-libs/libpostproc ) |
282 |
" |
283 |
|
284 |
DEPEND="${RDEPEND} |
285 |
>=sys-devel/make-3.81 |
286 |
doc? ( app-text/texi2html ) |
287 |
fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
288 |
gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
289 |
ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
290 |
ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) |
291 |
libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
292 |
cpu_flags_x86_mmx? ( >=dev-lang/yasm-1.2 ) |
293 |
rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
294 |
schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
295 |
test? ( net-misc/wget sys-devel/bc ) |
296 |
truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
297 |
v4l? ( sys-kernel/linux-headers ) |
298 |
" |
299 |
|
300 |
RDEPEND="${RDEPEND} |
301 |
abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
302 |
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
303 |
|
304 |
# Code requiring FFmpeg to be built under gpl license |
305 |
GPL_REQUIRED_USE=" |
306 |
postproc? ( gpl ) |
307 |
frei0r? ( gpl ) |
308 |
cdio? ( gpl ) |
309 |
samba? ( gpl ) |
310 |
zvbi? ( gpl ) |
311 |
encode? ( |
312 |
x264? ( gpl ) |
313 |
x265? ( gpl ) |
314 |
xvid? ( gpl ) |
315 |
X? ( !xcb? ( gpl ) ) |
316 |
) |
317 |
" |
318 |
REQUIRED_USE=" |
319 |
libv4l? ( v4l ) |
320 |
fftools_cws2fws? ( zlib ) |
321 |
test? ( encode ) |
322 |
${GPL_REQUIRED_USE} |
323 |
${CPU_REQUIRED_USE}" |
324 |
RESTRICT=" |
325 |
encode? ( faac? ( bindist ) aacplus? ( bindist ) ) |
326 |
gpl? ( openssl? ( bindist ) fdk? ( bindist ) ) |
327 |
" |
328 |
|
329 |
S=${WORKDIR}/${P/_/-} |
330 |
|
331 |
MULTILIB_WRAPPED_HEADERS=( |
332 |
/usr/include/libavutil/avconfig.h |
333 |
) |
334 |
|
335 |
src_prepare() { |
336 |
if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
337 |
export revision=git-N-${FFMPEG_REVISION} |
338 |
fi |
339 |
epatch_user |
340 |
} |
341 |
|
342 |
multilib_src_configure() { |
343 |
local myconf=( ${EXTRA_FFMPEG_CONF} ) |
344 |
|
345 |
local ffuse=( "${FFMPEG_FLAG_MAP[@]}" ) |
346 |
use openssl && use gpl && myconf+=( --enable-nonfree ) |
347 |
use samba && myconf+=( --enable-version3 ) |
348 |
|
349 |
# Encoders |
350 |
if use encode ; then |
351 |
ffuse+=( "${FFMPEG_ENCODER_FLAG_MAP[@]}" ) |
352 |
|
353 |
# Licensing. |
354 |
if use aac || use amrenc ; then |
355 |
myconf+=( --enable-version3 ) |
356 |
fi |
357 |
if use aacplus || use faac ; then |
358 |
myconf+=( --enable-nonfree ) |
359 |
fi |
360 |
else |
361 |
myconf+=( --disable-encoders ) |
362 |
fi |
363 |
|
364 |
# Indevs |
365 |
use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) |
366 |
for i in alsa oss jack ; do |
367 |
use ${i} || myconf+=( --disable-indev=${i} ) |
368 |
done |
369 |
use xcb || ffuse+=( X:x11grab ) |
370 |
|
371 |
# Outdevs |
372 |
for i in alsa oss sdl ; do |
373 |
use ${i} || myconf+=( --disable-outdev=${i} ) |
374 |
done |
375 |
|
376 |
# Decoders |
377 |
use amr && myconf+=( --enable-version3 ) |
378 |
use fdk && use gpl && myconf+=( --enable-nonfree ) |
379 |
|
380 |
for i in "${ffuse[@]#+}" ; do |
381 |
myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
382 |
done |
383 |
|
384 |
# (temporarily) disable non-multilib deps |
385 |
if ! multilib_is_native_abi; then |
386 |
for i in frei0r ; do |
387 |
myconf+=( --disable-${i} ) |
388 |
done |
389 |
fi |
390 |
|
391 |
# CPU features |
392 |
for i in ${CPU_FEATURES_MAP} ; do |
393 |
if [ "$(tc-arch)" = "${i%:*}" ] ; then |
394 |
local var="${i#*:}_CPU_FEATURES[@]" |
395 |
for j in ${!var} ; do |
396 |
use ${j%:*} || myconf+=( --disable-${j#*:} ) |
397 |
done |
398 |
fi |
399 |
done |
400 |
|
401 |
if use pic ; then |
402 |
myconf+=( --enable-pic ) |
403 |
# disable asm code if PIC is required |
404 |
# as the provided asm decidedly is not PIC for x86. |
405 |
[[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
406 |
fi |
407 |
[[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
408 |
|
409 |
# Try to get cpu type based on CFLAGS. |
410 |
# Bug #172723 |
411 |
# We need to do this so that features of that CPU will be better used |
412 |
# If they contain an unknown CPU it will not hurt since ffmpeg's configure |
413 |
# will just ignore it. |
414 |
for i in $(get-flag mcpu) $(get-flag mtune) $(get-flag march) ; do |
415 |
[[ ${i} = native ]] && i="host" # bug #273421 |
416 |
myconf+=( --cpu=${i} ) |
417 |
break |
418 |
done |
419 |
|
420 |
# Mandatory configuration |
421 |
myconf=( |
422 |
--enable-avfilter |
423 |
--enable-avresample |
424 |
--disable-stripping |
425 |
"${myconf[@]}" |
426 |
) |
427 |
|
428 |
# cross compile support |
429 |
if tc-is-cross-compiler ; then |
430 |
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
431 |
case ${CHOST} in |
432 |
*freebsd*) |
433 |
myconf+=( --target-os=freebsd ) |
434 |
;; |
435 |
mingw32*) |
436 |
myconf+=( --target-os=mingw32 ) |
437 |
;; |
438 |
*linux*) |
439 |
myconf+=( --target-os=linux ) |
440 |
;; |
441 |
esac |
442 |
fi |
443 |
|
444 |
set -- "${S}/configure" \ |
445 |
--prefix="${EPREFIX}/usr" \ |
446 |
--libdir="${EPREFIX}/usr/$(get_libdir)" \ |
447 |
--shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
448 |
--mandir="${EPREFIX}/usr/share/man" \ |
449 |
--enable-shared \ |
450 |
--cc="$(tc-getCC)" \ |
451 |
--cxx="$(tc-getCXX)" \ |
452 |
--ar="$(tc-getAR)" \ |
453 |
--optflags=" " \ |
454 |
$(use_enable static-libs static) \ |
455 |
"${myconf[@]}" |
456 |
echo "${@}" |
457 |
"${@}" || die |
458 |
} |
459 |
|
460 |
multilib_src_compile() { |
461 |
emake V=1 |
462 |
|
463 |
if multilib_is_native_abi; then |
464 |
for i in "${FFTOOLS[@]}" ; do |
465 |
if use fftools_${i} ; then |
466 |
emake V=1 tools/${i} |
467 |
fi |
468 |
done |
469 |
fi |
470 |
} |
471 |
|
472 |
multilib_src_install() { |
473 |
emake V=1 DESTDIR="${D}" install install-man |
474 |
|
475 |
if multilib_is_native_abi; then |
476 |
for i in "${FFTOOLS[@]}" ; do |
477 |
if use fftools_${i} ; then |
478 |
dobin tools/${i} |
479 |
fi |
480 |
done |
481 |
fi |
482 |
} |
483 |
|
484 |
multilib_src_install_all() { |
485 |
dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges |
486 |
[ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" |
487 |
use doc && dohtml -r doc/* |
488 |
if use examples ; then |
489 |
dodoc -r doc/examples |
490 |
docompress -x /usr/share/doc/${PF}/examples |
491 |
fi |
492 |
} |
493 |
|
494 |
multilib_src_test() { |
495 |
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" \ |
496 |
emake V=1 fate |
497 |
} |