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.1.1.ebuild ChangeLog
Date: Fri, 22 Nov 2013 06:26:32
Message-Id: 20131122062626.4B8A42004B@flycatcher.gentoo.org
1 aballier 13/11/22 06:26:26
2
3 Modified: ChangeLog
4 Added: ffmpeg-2.1.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.692 media-video/ffmpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.692&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.692&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.691&r2=1.692
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
20 retrieving revision 1.691
21 retrieving revision 1.692
22 diff -u -r1.691 -r1.692
23 --- ChangeLog 14 Nov 2013 19:38:57 -0000 1.691
24 +++ ChangeLog 22 Nov 2013 06:26:26 -0000 1.692
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-video/ffmpeg
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.691 2013/11/14 19:38:57 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.692 2013/11/22 06:26:26 aballier Exp $
30 +
31 +*ffmpeg-2.1.1 (22 Nov 2013)
32 +
33 + 22 Nov 2013; Alexis Ballier <aballier@g.o> +ffmpeg-2.1.1.ebuild:
34 + version bump
35
36 *ffmpeg-0.10.10 (14 Nov 2013)
37
38
39
40
41 1.1 media-video/ffmpeg/ffmpeg-2.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-2.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ffmpeg-2.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.1.1.ebuild,v 1.1 2013/11/22 06:26:26 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 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="~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 +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 openssl opus
94 oss pic pulseaudio quvi rtmp schroedinger sdl speex ssh static-libs test theora
95 threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack X x264 xvid
96 +zlib zvbi
97 "
98
99 # String for CPU features in the useflag[:configure_option] form
100 # if :configure_option isn't set, it will use 'useflag' as configure option
101 CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx avx2 mmx mmxext ssse3 vis neon"
102
103 for i in ${CPU_FEATURES}; do
104 IUSE="${IUSE} ${i%:*}"
105 done
106
107 FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
108
109 for i in ${FFTOOLS}; do
110 IUSE="${IUSE} +fftools_$i"
111 done
112
113 RDEPEND="
114 alsa? ( media-libs/alsa-lib )
115 amr? ( media-libs/opencore-amr )
116 bluray? ( media-libs/libbluray )
117 bzip2? ( app-arch/bzip2 )
118 cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
119 celt? ( >=media-libs/celt-0.11.1 )
120 encode? (
121 aac? ( media-libs/vo-aacenc )
122 aacplus? ( media-libs/libaacplus )
123 amrenc? ( media-libs/vo-amrwbenc )
124 faac? ( media-libs/faac )
125 mp3? ( >=media-sound/lame-3.98.3 )
126 theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
127 twolame? ( media-sound/twolame )
128 wavpack? ( media-sound/wavpack )
129 x264? ( >=media-libs/x264-0.0.20111017:= )
130 xvid? ( >=media-libs/xvid-1.1.0 )
131 )
132 fdk? ( media-libs/fdk-aac )
133 flite? ( app-accessibility/flite )
134 fontconfig? ( media-libs/fontconfig )
135 frei0r? ( media-plugins/frei0r-plugins )
136 gme? ( media-libs/game-music-emu )
137 gnutls? ( >=net-libs/gnutls-2.12.16 )
138 gsm? ( >=media-sound/gsm-1.0.12-r1 )
139 iconv? ( virtual/libiconv )
140 iec61883? ( media-libs/libiec61883 sys-libs/libraw1394 sys-libs/libavc1394 )
141 ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
142 jack? ( media-sound/jack-audio-connection-kit )
143 jpeg2k? ( >=media-libs/openjpeg-1.3-r2:0 )
144 libass? ( media-libs/libass )
145 libcaca? ( media-libs/libcaca )
146 libsoxr? ( media-libs/soxr )
147 libv4l? ( media-libs/libv4l )
148 modplug? ( media-libs/libmodplug )
149 openal? ( >=media-libs/openal-1.1 )
150 openssl? ( dev-libs/openssl )
151 opus? ( media-libs/opus )
152 pulseaudio? ( media-sound/pulseaudio )
153 quvi? ( media-libs/libquvi )
154 rtmp? ( >=media-video/rtmpdump-2.2f )
155 sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
156 schroedinger? ( media-libs/schroedinger )
157 speex? ( >=media-libs/speex-1.2_beta3 )
158 ssh? ( net-libs/libssh )
159 truetype? ( media-libs/freetype:2 )
160 vaapi? ( >=x11-libs/libva-0.32 )
161 vdpau? ( x11-libs/libvdpau )
162 vorbis? ( media-libs/libvorbis media-libs/libogg )
163 vpx? ( >=media-libs/libvpx-0.9.6 )
164 X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
165 zlib? ( sys-libs/zlib )
166 zvbi? ( media-libs/zvbi )
167 !media-video/qt-faststart
168 !media-libs/libpostproc
169 "
170
171 DEPEND="${RDEPEND}
172 >=sys-devel/make-3.81
173 doc? ( app-text/texi2html )
174 fontconfig? ( virtual/pkgconfig )
175 gnutls? ( virtual/pkgconfig )
176 ieee1394? ( virtual/pkgconfig )
177 ladspa? ( media-libs/ladspa-sdk )
178 libv4l? ( virtual/pkgconfig )
179 mmx? ( >=dev-lang/yasm-1.2 )
180 rtmp? ( virtual/pkgconfig )
181 schroedinger? ( virtual/pkgconfig )
182 test? ( net-misc/wget )
183 truetype? ( virtual/pkgconfig )
184 v4l? ( sys-kernel/linux-headers )
185 "
186 # faac is license-incompatible with ffmpeg
187 REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
188 libv4l? ( v4l )
189 fftools_cws2fws? ( zlib )
190 test? ( encode )"
191
192 S=${WORKDIR}/${P/_/-}
193 BUILD_DIR=${S}_build
194
195 src_prepare() {
196 if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
197 export revision=git-N-${FFMPEG_REVISION}
198 fi
199 epatch_user
200 }
201
202 src_configure() {
203 mkdir -p "${BUILD_DIR}"
204 cd "${BUILD_DIR}"
205
206 local myconf="${EXTRA_FFMPEG_CONF}"
207
208 # options to use as use_enable in the foo[:bar] form.
209 # This will feed configure with $(use_enable foo bar)
210 # or $(use_enable foo foo) if no :bar is set.
211 local ffuse="bzip2:bzlib cpudetection:runtime-cpudetect debug doc
212 gnutls hardcoded-tables iconv network openssl sdl:ffplay vaapi vdpau zlib"
213 use openssl && myconf="${myconf} --enable-nonfree"
214
215 # Encoders
216 if use encode
217 then
218 ffuse="${ffuse} aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame"
219 for i in aacplus faac theora twolame wavpack x264 xvid; do
220 ffuse="${ffuse} ${i}:lib${i}"
221 done
222
223 # Licensing.
224 if use aac || use amrenc ; then
225 myconf="${myconf} --enable-version3"
226 fi
227 if use aacplus || use faac ; then
228 myconf="${myconf} --enable-nonfree"
229 fi
230 else
231 myconf="${myconf} --disable-encoders"
232 fi
233
234 # libavdevice options
235 ffuse="${ffuse} cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal"
236
237 # Indevs
238 use v4l || myconf="${myconf} --disable-indev=v4l2 --disable-outdev=v4l2"
239 for i in alsa oss jack ; do
240 use ${i} || myconf="${myconf} --disable-indev=${i}"
241 done
242 ffuse="${ffuse} libv4l:libv4l2 pulseaudio:libpulse X:x11grab"
243
244 # Outdevs
245 for i in alsa oss sdl ; do
246 use ${i} || myconf="${myconf} --disable-outdev=${i}"
247 done
248
249 # libavfilter options
250 ffuse="${ffuse} flite:libflite frei0r fontconfig ladspa libass truetype:libfreetype"
251
252 # libswresample options
253 ffuse="${ffuse} libsoxr"
254
255 # Threads; we only support pthread for now but ffmpeg supports more
256 ffuse="${ffuse} threads:pthreads"
257
258 # Decoders
259 ffuse="${ffuse} amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg"
260 use amr && myconf="${myconf} --enable-version3"
261 for i in bluray celt gme gsm modplug opus quvi rtmp ssh schroedinger speex vorbis vpx zvbi; do
262 ffuse="${ffuse} ${i}:lib${i}"
263 done
264 use fdk && myconf="${myconf} --enable-nonfree"
265
266 for i in ${ffuse} ; do
267 myconf="${myconf} $(use_enable ${i%:*} ${i#*:})"
268 done
269
270 # CPU features
271 for i in ${CPU_FEATURES}; do
272 use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
273 done
274 if use pic ; then
275 myconf="${myconf} --enable-pic"
276 # disable asm code if PIC is required
277 # as the provided asm decidedly is not PIC for x86.
278 use x86 && myconf="${myconf} --disable-asm"
279 fi
280 [[ ${ABI} == "x32" ]] && myconf+=" --disable-asm" #427004
281
282 # Try to get cpu type based on CFLAGS.
283 # Bug #172723
284 # We need to do this so that features of that CPU will be better used
285 # If they contain an unknown CPU it will not hurt since ffmpeg's configure
286 # will just ignore it.
287 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
288 [ "${i}" = "native" ] && i="host" # bug #273421
289 myconf="${myconf} --cpu=${i}"
290 break
291 done
292
293 # Mandatory configuration
294 myconf="
295 --enable-gpl
296 --enable-postproc
297 --enable-avfilter
298 --enable-avresample
299 --disable-stripping
300 ${myconf}"
301
302 # cross compile support
303 if tc-is-cross-compiler ; then
304 myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
305 case ${CHOST} in
306 *freebsd*)
307 myconf="${myconf} --target-os=freebsd"
308 ;;
309 mingw32*)
310 myconf="${myconf} --target-os=mingw32"
311 ;;
312 *linux*)
313 myconf="${myconf} --target-os=linux"
314 ;;
315 esac
316 fi
317
318 "${S}/configure" \
319 --prefix="${EPREFIX}/usr" \
320 --libdir="${EPREFIX}/usr/$(get_libdir)" \
321 --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
322 --mandir="${EPREFIX}/usr/share/man" \
323 --enable-shared \
324 --cc="$(tc-getCC)" \
325 --cxx="$(tc-getCXX)" \
326 --ar="$(tc-getAR)" \
327 --optflags="${CFLAGS}" \
328 --extra-cflags="${CFLAGS}" \
329 --extra-cxxflags="${CXXFLAGS}" \
330 $(use_enable static-libs static) \
331 ${myconf} || die
332 }
333
334 src_compile() {
335 cd "${BUILD_DIR}"
336 emake V=1
337
338 for i in ${FFTOOLS} ; do
339 if use fftools_$i ; then
340 emake V=1 tools/$i
341 fi
342 done
343 }
344
345 src_install() {
346 cd "${BUILD_DIR}"
347 emake V=1 DESTDIR="${D}" install install-man
348
349 for i in ${FFTOOLS} ; do
350 if use fftools_$i ; then
351 dobin tools/$i
352 fi
353 done
354
355 cd "${S}"
356 dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
357 use doc && dohtml -r doc/*
358 if use examples ; then
359 dodoc -r doc/examples
360 docompress -x /usr/share/doc/${PF}/examples
361 fi
362 }
363
364 src_test() {
365 cd "${BUILD_DIR}"
366 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" \
367 emake V=1 fate
368 }