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