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: ffmpeg-2.2.5.ebuild ChangeLog
Date: Sun, 27 Jul 2014 07:53:13
Message-Id: 20140727075308.B84382004E@flycatcher.gentoo.org
1 aballier 14/07/27 07:53:08
2
3 Modified: ChangeLog
4 Added: ffmpeg-2.2.5.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.761 media-video/ffmpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.761&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.761&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.760&r2=1.761
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
20 retrieving revision 1.760
21 retrieving revision 1.761
22 diff -u -r1.760 -r1.761
23 --- ChangeLog 23 Jul 2014 15:23:18 -0000 1.760
24 +++ ChangeLog 27 Jul 2014 07:53:08 -0000 1.761
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.760 2014/07/23 15:23:18 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.761 2014/07/27 07:53:08 aballier Exp $
30 +
31 +*ffmpeg-2.2.5 (27 Jul 2014)
32 +
33 + 27 Jul 2014; Alexis Ballier <aballier@g.o> +ffmpeg-2.2.5.ebuild:
34 + version bump
35
36 23 Jul 2014; Agostino Sarubbo <ago@g.o> ffmpeg-1.2.6-r1.ebuild:
37 Stable for x86, wrt bug #512012
38
39
40
41 1.1 media-video/ffmpeg/ffmpeg-2.2.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.2.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.2.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ffmpeg-2.2.5.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.2.5.ebuild,v 1.1 2014/07/27 07:53:08 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 ) )"
85 SLOT="0/${FFMPEG_SUBSLOT}"
86 if [ "${PV#9999}" = "${PV}" ] ; then
87 KEYWORDS="~amd64 ~hppa ~mips ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
88 fi
89 IUSE="
90 aac aacplus alsa amr amrenc bindist bluray +bzip2 cdio celt
91 cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r
92 gme gnutls gsm +hardcoded-tables +iconv iec61883 ieee1394 jack jpeg2k
93 ladspa libass libcaca libsoxr libv4l modplug mp3 +network openal opengl
94 openssl opus oss pic pulseaudio quvi rtmp schroedinger sdl speex ssh
95 static-libs test theora threads truetype twolame v4l vaapi vdpau vorbis vpx
96 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"
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 bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
128 cdio? (
129 || (
130 >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}]
131 <dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}]
132 )
133 )
134 celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] )
135 encode? (
136 aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] )
137 aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] )
138 amrenc? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] )
139 faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] )
140 mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] )
141 theora? (
142 >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
143 >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
144 )
145 twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] )
146 wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] )
147 webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] )
148 x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] )
149 x265? ( >=media-libs/x265-0.8:=[${MULTILIB_USEDEP}] )
150 xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] )
151 )
152 fdk? ( >=media-libs/fdk-aac-0.1.3[${MULTILIB_USEDEP}] )
153 flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] )
154 fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
155 frei0r? ( media-plugins/frei0r-plugins )
156 gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] )
157 gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] )
158 gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] )
159 iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
160 iec61883? (
161 >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}]
162 >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
163 >=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}]
164 )
165 ieee1394? (
166 >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}]
167 >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}]
168 )
169 jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] )
170 jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] )
171 libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] )
172 libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] )
173 libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] )
174 libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
175 modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
176 openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
177 opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] )
178 openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
179 opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] )
180 pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
181 quvi? ( media-libs/libquvi:0.4 )
182 rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] )
183 sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] )
184 schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] )
185 speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
186 ssh? ( >=net-libs/libssh-0.5.5[${MULTILIB_USEDEP}] )
187 truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] )
188 vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] )
189 vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] )
190 vorbis? (
191 >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
192 >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
193 )
194 vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] )
195 X? (
196 >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
197 >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
198 >=x11-libs/libXfixes-5.0.1[${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 "${FILESDIR}/ladspadl.patch"
243 epatch_user
244 }
245
246 multilib_src_configure() {
247 local myconf=( ${EXTRA_FFMPEG_CONF} )
248
249 # options to use as use_enable in the foo[:bar] form.
250 # This will feed configure with $(use_enable foo bar)
251 # or $(use_enable foo foo) if no :bar is set.
252 local ffuse=(
253 bzip2:bzlib cpudetection:runtime-cpudetect debug doc
254 gnutls hardcoded-tables iconv network openssl sdl:ffplay vaapi
255 vdpau zlib
256 )
257 use openssl && myconf+=( --enable-nonfree )
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+=( flite:libflite frei0r 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 libquvi; 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 CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
414 use doc && dohtml -r doc/*
415 if use examples ; then
416 dodoc -r doc/examples
417 docompress -x /usr/share/doc/${PF}/examples
418 fi
419 }
420
421 multilib_src_test() {
422 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" \
423 emake V=1 fate
424 }