Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/ffmpeg: ChangeLog ffmpeg-2.3.1.ebuild
Date: Thu, 31 Jul 2014 20:46:21
Message-Id: 20140731204614.D2CB22004E@flycatcher.gentoo.org
1 aballier 14/07/31 20:46:13
2
3 Modified: ChangeLog
4 Added: ffmpeg-2.3.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.775 media-video/ffmpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.775&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.775&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.774&r2=1.775
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
20 retrieving revision 1.774
21 retrieving revision 1.775
22 diff -u -r1.774 -r1.775
23 --- ChangeLog 28 Jul 2014 13:48:34 -0000 1.774
24 +++ ChangeLog 31 Jul 2014 20:46:13 -0000 1.775
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-video/ffmpeg
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.774 2014/07/28 13:48:34 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.775 2014/07/31 20:46:13 aballier Exp $
30 +
31 +*ffmpeg-2.3.1 (31 Jul 2014)
32 +
33 + 31 Jul 2014; Alexis Ballier <aballier@g.o> +ffmpeg-2.3.1.ebuild:
34 + version bump
35
36 28 Jul 2014; Agostino Sarubbo <ago@g.o> ffmpeg-1.2.6-r1.ebuild:
37 Stable for ppc, wrt bug #512012
38
39
40
41 1.1 media-video/ffmpeg/ffmpeg-2.3.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.3.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.3.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ffmpeg-2.3.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.3.1.ebuild,v 1.1 2014/07/31 20:46:13 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=52.55.55
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 LICENSE="GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) ) samba? ( GPL-3 )"
85 SLOT="0/${FFMPEG_SUBSLOT}"
86 if [ "${PV#9999}" = "${PV}" ] ; then
87 KEYWORDS="~amd64 ~arm ~hppa ~mips ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
88 fi
89 IUSE="
90 aac aacplus alsa amr amrenc bindist bluray bs2b +bzip2 cdio celt
91 cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r
92 fribidi gme gnutls gsm +hardcoded-tables +iconv iec61883 ieee1394 jack
93 jpeg2k ladspa libass libcaca libsoxr libv4l modplug mp3 +network openal
94 opengl openssl opus oss pic pulseaudio quvi rtmp samba schroedinger sdl
95 speex ssh static-libs test theora threads truetype twolame v4l vaapi vdpau
96 vorbis vpx wavpack webp X x264 x265 xvid +zlib zvbi
97 "
98
99 ARM_CPU_FEATURES="armv5te armv6 armv6t2 neon armvfp:vfp"
100 MIPS_CPU_FEATURES="mips32r2 mipsdspr1 mipsdspr2 mipsfpu"
101 PPC_CPU_FEATURES="altivec"
102 X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext avx avx2 fma3 fma4 mmx mmxext sse sse2 sse3 ssse3 sse4 sse4_2:sse42 xop"
103
104 # String for CPU features in the useflag[:configure_option] form
105 # if :configure_option isn't set, it will use 'useflag' as configure option
106 CPU_FEATURES="
107 ${ARM_CPU_FEATURES}
108 ${MIPS_CPU_FEATURES}
109 ${PPC_CPU_FEATURES}
110 ${X86_CPU_FEATURES}
111 "
112
113 for i in ${CPU_FEATURES}; do
114 IUSE="${IUSE} ${i%:*}"
115 done
116
117 FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
118
119 for i in ${FFTOOLS}; do
120 IUSE="${IUSE} +fftools_$i"
121 done
122
123 RDEPEND="
124 alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
125 amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] )
126 bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] )
127 bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] )
128 bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
129 cdio? (
130 || (
131 >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}]
132 <dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}]
133 )
134 )
135 celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
136 encode? (
137 aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
138 aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
139 amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
140 faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
141 mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
142 theora? (
143 >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
144 >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
145 )
146 twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
147 wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
148 webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
149 x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
150 x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] )
151 xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
152 )
153 fdk? ( >=media-libs/fdk-aac-0.1.3[${MULTILIB_USEDEP}] )
154 flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
155 fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
156 frei0r? ( media-plugins/frei0r-plugins )
157 fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] )
158 gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
159 gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
160 gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
161 iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
162 iec61883? (
163 >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
164 >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
165 >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
166 )
167 ieee1394? (
168 >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
169 >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
170 )
171 jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
172 jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
173 libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
174 libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
175 libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
176 libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
177 modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
178 openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
179 opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
180 openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
181 opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
182 pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
183 quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] )
184 rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
185 samba? ( >=net-fs/samba-3.6.23-r1[${MULTILIB_USEDEP}] )
186 schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
187 sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
188 speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
189 ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
190 truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
191 vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
192 vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
193 vorbis? (
194 >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
195 >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
196 )
197 vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] )
198 X? (
199 >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
200 >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
201 >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}]
202 )
203 zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
204 zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] )
205 !media-video/qt-faststart
206 !media-libs/libpostproc
207 "
208
209 DEPEND="${RDEPEND}
210 >=sys-devel/make-3.81
211 doc? ( app-text/texi2html )
212 fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
213 gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
214 ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
215 ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] )
216 libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
217 mmx? ( >=dev-lang/yasm-1.2 )
218 rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
219 schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
220 test? ( net-misc/wget )
221 truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )
222 v4l? ( sys-kernel/linux-headers )
223 "
224
225 RDEPEND="${RDEPEND}
226 abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3
227 !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
228
229 # faac is license-incompatible with ffmpeg
230 REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
231 libv4l? ( v4l )
232 fftools_cws2fws? ( zlib )
233 test? ( encode )"
234
235 S=${WORKDIR}/${P/_/-}
236
237 MULTILIB_WRAPPED_HEADERS=(
238 /usr/include/libavutil/avconfig.h
239 )
240
241 src_prepare() {
242 if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
243 export revision=git-N-${FFMPEG_REVISION}
244 fi
245 epatch_user
246 }
247
248 multilib_src_configure() {
249 local myconf=( ${EXTRA_FFMPEG_CONF} )
250
251 # options to use as use_enable in the foo[:bar] form.
252 # This will feed configure with $(use_enable foo bar)
253 # or $(use_enable foo foo) if no :bar is set.
254 local ffuse=(
255 bzip2:bzlib cpudetection:runtime-cpudetect debug doc
256 gnutls hardcoded-tables iconv network openssl samba:libsmbclient
257 sdl:ffplay vaapi vdpau X:xlib zlib
258 )
259 use openssl && myconf+=( --enable-nonfree )
260 use samba && myconf+=( --enable-version3 )
261
262 # Encoders
263 if use encode
264 then
265 ffuse+=( aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame )
266 for i in aacplus faac theora twolame wavpack webp x264 x265 xvid; do
267 ffuse+=( ${i}:lib${i} )
268 done
269
270 # Licensing.
271 if use aac || use amrenc ; then
272 myconf+=( --enable-version3 )
273 fi
274 if use aacplus || use faac ; then
275 myconf+=( --enable-nonfree )
276 fi
277 else
278 myconf+=( --disable-encoders )
279 fi
280
281 # libavdevice options
282 ffuse+=( cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl )
283
284 # Indevs
285 use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
286 for i in alsa oss jack ; do
287 use ${i} || myconf+=( --disable-indev=${i} )
288 done
289 ffuse+=( libv4l:libv4l2 pulseaudio:libpulse X:x11grab )
290
291 # Outdevs
292 for i in alsa oss sdl ; do
293 use ${i} || myconf+=( --disable-outdev=${i} )
294 done
295
296 # libavfilter options
297 ffuse+=( bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype )
298
299 # libswresample options
300 ffuse+=( libsoxr )
301
302 # Threads; we only support pthread for now but ffmpeg supports more
303 ffuse+=( threads:pthreads )
304
305 # Decoders
306 ffuse+=( amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg )
307 use amr && myconf+=( --enable-version3 )
308 for i in bluray celt gme gsm modplug opus quvi rtmp ssh schroedinger speex vorbis vpx zvbi; do
309 ffuse+=( ${i}:lib${i} )
310 done
311 use fdk && myconf+=( --enable-nonfree )
312
313 for i in "${ffuse[@]}" ; do
314 myconf+=( $(use_enable ${i%:*} ${i#*:}) )
315 done
316
317 # (temporarily) disable non-multilib deps
318 if ! multilib_is_native_abi; then
319 for i in frei0r ; do
320 myconf+=( --disable-${i} )
321 done
322 fi
323
324 # CPU features
325 for i in ${CPU_FEATURES}; do
326 use ${i%:*} || myconf+=( --disable-${i#*:} )
327 done
328 if use pic ; then
329 myconf+=( --enable-pic )
330 # disable asm code if PIC is required
331 # as the provided asm decidedly is not PIC for x86.
332 [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
333 fi
334 [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
335
336 # Try to get cpu type based on CFLAGS.
337 # Bug #172723
338 # We need to do this so that features of that CPU will be better used
339 # If they contain an unknown CPU it will not hurt since ffmpeg's configure
340 # will just ignore it.
341 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
342 [[ ${i} = native ]] && i="host" # bug #273421
343 myconf+=( --cpu=${i} )
344 break
345 done
346
347 # Mandatory configuration
348 myconf=(
349 --enable-gpl
350 --enable-postproc
351 --enable-avfilter
352 --enable-avresample
353 --disable-stripping
354 "${myconf[@]}"
355 )
356
357 # cross compile support
358 if tc-is-cross-compiler ; then
359 myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
360 case ${CHOST} in
361 *freebsd*)
362 myconf+=( --target-os=freebsd )
363 ;;
364 mingw32*)
365 myconf+=( --target-os=mingw32 )
366 ;;
367 *linux*)
368 myconf+=( --target-os=linux )
369 ;;
370 esac
371 fi
372
373 set -- "${S}/configure" \
374 --prefix="${EPREFIX}/usr" \
375 --libdir="${EPREFIX}/usr/$(get_libdir)" \
376 --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
377 --mandir="${EPREFIX}/usr/share/man" \
378 --enable-shared \
379 --cc="$(tc-getCC)" \
380 --cxx="$(tc-getCXX)" \
381 --ar="$(tc-getAR)" \
382 --optflags="${CFLAGS}" \
383 --extra-cflags="${CFLAGS}" \
384 --extra-cxxflags="${CXXFLAGS}" \
385 $(use_enable static-libs static) \
386 "${myconf[@]}"
387 echo "${@}"
388 "${@}" || die
389 }
390
391 multilib_src_compile() {
392 emake V=1
393
394 if multilib_is_native_abi; then
395 for i in ${FFTOOLS} ; do
396 if use fftools_${i} ; then
397 emake V=1 tools/${i}
398 fi
399 done
400 fi
401 }
402
403 multilib_src_install() {
404 emake V=1 DESTDIR="${D}" install install-man
405
406 if multilib_is_native_abi; then
407 for i in ${FFTOOLS} ; do
408 if use fftools_${i} ; then
409 dobin tools/${i}
410 fi
411 done
412 fi
413 }
414
415 multilib_src_install_all() {
416 dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges
417 [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES"
418 use doc && dohtml -r doc/*
419 if use examples ; then
420 dodoc -r doc/examples
421 docompress -x /usr/share/doc/${PF}/examples
422 fi
423 }
424
425 multilib_src_test() {
426 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" \
427 emake V=1 fate
428 }