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-1.0.5.ebuild
Date: Mon, 04 Mar 2013 10:58:04
Message-Id: 20130304105801.169112171D@flycatcher.gentoo.org
1 aballier 13/03/04 10:58:00
2
3 Modified: ChangeLog
4 Added: ffmpeg-1.0.5.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha165/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.609 media-video/ffmpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.609&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.609&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.608&r2=1.609
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
20 retrieving revision 1.608
21 retrieving revision 1.609
22 diff -u -r1.608 -r1.609
23 --- ChangeLog 23 Feb 2013 13:24:23 -0000 1.608
24 +++ ChangeLog 4 Mar 2013 10:58:00 -0000 1.609
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.608 2013/02/23 13:24:23 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.609 2013/03/04 10:58:00 aballier Exp $
30 +
31 +*ffmpeg-1.0.5 (04 Mar 2013)
32 +
33 + 04 Mar 2013; Alexis Ballier <aballier@g.o> +ffmpeg-1.0.5.ebuild:
34 + version bump
35
36 23 Feb 2013; Alexis Ballier <aballier@g.o> ffmpeg-1.0.4.ebuild:
37 drop alpha/arm/ia64 keywords because of bug #458100
38
39
40
41 1.1 media-video/ffmpeg/ffmpeg-1.0.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.0.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.0.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ffmpeg-1.0.5.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-1.0.5.ebuild,v 1.1 2013/03/04 10:58:00 aballier Exp $
51
52 EAPI="4"
53
54 SCM=""
55 if [ "${PV#9999}" != "${PV}" ] ; then
56 SCM="git-2"
57 EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
58 fi
59
60 inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
61
62 DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec."
63 HOMEPAGE="http://ffmpeg.org/"
64 if [ "${PV#9999}" != "${PV}" ] ; then
65 SRC_URI=""
66 elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
67 SRC_URI="mirror://gentoo/${P}.tar.bz2"
68 else # Release
69 SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
70 fi
71 FFMPEG_REVISION="${PV#*_p}"
72
73 LICENSE="GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) )"
74 SLOT="0"
75 if [ "${PV#9999}" = "${PV}" ] ; then
76 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
77 fi
78 IUSE="
79 aac aacplus alsa amr avresample bindist bluray +bzip2 cdio celt
80 cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r
81 gnutls gsm +hardcoded-tables iec61883 ieee1394 jack jpeg2k libass libcaca
82 libv4l modplug mp3 network openal openssl opus oss pic pulseaudio rtmp
83 schroedinger sdl speex static-libs test theora threads truetype twolame v4l
84 vaapi vdpau vorbis vpx X x264 xvid +zlib
85 "
86
87 # String for CPU features in the useflag[:configure_option] form
88 # if :configure_option isn't set, it will use 'useflag' as configure option
89 CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext ssse3 vis neon"
90
91 for i in ${CPU_FEATURES}; do
92 IUSE="${IUSE} ${i%:*}"
93 done
94
95 FFTOOLS="aviocat cws2fws ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
96
97 for i in ${FFTOOLS}; do
98 IUSE="${IUSE} +fftools_$i"
99 done
100
101 RDEPEND="
102 alsa? ( media-libs/alsa-lib )
103 amr? ( media-libs/opencore-amr )
104 bluray? ( media-libs/libbluray )
105 bzip2? ( app-arch/bzip2 )
106 cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
107 celt? ( >=media-libs/celt-0.11.1 )
108 encode? (
109 aac? ( media-libs/vo-aacenc )
110 aacplus? ( media-libs/libaacplus )
111 amr? ( media-libs/vo-amrwbenc )
112 faac? ( media-libs/faac )
113 fdk? ( media-libs/fdk-aac )
114 mp3? ( >=media-sound/lame-3.98.3 )
115 theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
116 twolame? ( media-sound/twolame )
117 x264? ( >=media-libs/x264-0.0.20111017 )
118 xvid? ( >=media-libs/xvid-1.1.0 )
119 )
120 flite? ( app-accessibility/flite )
121 fontconfig? ( media-libs/fontconfig )
122 frei0r? ( media-plugins/frei0r-plugins )
123 gnutls? ( >=net-libs/gnutls-2.12.16 )
124 gsm? ( >=media-sound/gsm-1.0.12-r1 )
125 iec61883? ( media-libs/libiec61883 sys-libs/libraw1394 sys-libs/libavc1394 )
126 ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
127 jack? ( media-sound/jack-audio-connection-kit )
128 jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
129 libass? ( media-libs/libass )
130 libcaca? ( media-libs/libcaca )
131 libv4l? ( media-libs/libv4l )
132 modplug? ( media-libs/libmodplug )
133 openal? ( >=media-libs/openal-1.1 )
134 opus? ( media-libs/opus )
135 pulseaudio? ( media-sound/pulseaudio )
136 rtmp? ( >=media-video/rtmpdump-2.2f )
137 sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
138 schroedinger? ( media-libs/schroedinger )
139 speex? ( >=media-libs/speex-1.2_beta3 )
140 truetype? ( media-libs/freetype:2 )
141 vaapi? ( >=x11-libs/libva-0.32 )
142 vdpau? ( x11-libs/libvdpau )
143 vorbis? ( media-libs/libvorbis media-libs/libogg )
144 vpx? ( >=media-libs/libvpx-0.9.6 )
145 X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
146 zlib? ( sys-libs/zlib )
147 !media-video/qt-faststart
148 !media-libs/libpostproc
149 "
150
151 DEPEND="${RDEPEND}
152 >=sys-devel/make-3.81
153 doc? ( app-text/texi2html )
154 fontconfig? ( virtual/pkgconfig )
155 gnutls? ( virtual/pkgconfig )
156 ieee1394? ( virtual/pkgconfig )
157 libv4l? ( virtual/pkgconfig )
158 mmx? ( dev-lang/yasm )
159 rtmp? ( virtual/pkgconfig )
160 schroedinger? ( virtual/pkgconfig )
161 test? ( net-misc/wget )
162 truetype? ( virtual/pkgconfig )
163 v4l? ( sys-kernel/linux-headers )
164 "
165 # faac is license-incompatible with ffmpeg
166 REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
167 libv4l? ( v4l )
168 fftools_cws2fws? ( zlib )
169 test? ( encode )"
170
171 S=${WORKDIR}/${P/_/-}
172
173 src_prepare() {
174 if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
175 export revision=git-N-${FFMPEG_REVISION}
176 fi
177
178 if has_version dev-libs/libcdio-paranoia; then
179 sed -i \
180 -e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
181 -e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
182 configure libavdevice/libcdio.c || die
183 fi
184 }
185
186 src_configure() {
187 local myconf="${EXTRA_FFMPEG_CONF}"
188 # Set to --enable-version3 if (L)GPL-3 is required
189 local version3=""
190
191 # enabled by default
192 for i in debug doc network vaapi vdpau zlib; do
193 use ${i} || myconf="${myconf} --disable-${i}"
194 done
195 use bzip2 || myconf="${myconf} --disable-bzlib"
196 use sdl || myconf="${myconf} --disable-ffplay"
197
198 use cpudetection || myconf="${myconf} --disable-runtime-cpudetect"
199 use openssl && myconf="${myconf} --enable-openssl --enable-nonfree"
200 for i in gnutls ; do
201 use $i && myconf="${myconf} --enable-$i"
202 done
203
204 # Encoders
205 if use encode
206 then
207 use mp3 && myconf="${myconf} --enable-libmp3lame"
208 use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; }
209 use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; }
210 for i in theora twolame x264 xvid; do
211 use ${i} && myconf="${myconf} --enable-lib${i}"
212 done
213 use aacplus && myconf="${myconf} --enable-libaacplus --enable-nonfree"
214 use faac && myconf="${myconf} --enable-libfaac --enable-nonfree"
215 use fdk && myconf="${myconf} --enable-libfdk-aac --enable-nonfree"
216 else
217 myconf="${myconf} --disable-encoders"
218 fi
219
220 # libavdevice options
221 for i in cdio iec61883 ; do
222 use ${i} && myconf="${myconf} --enable-lib${i}"
223 done
224 use ieee1394 && myconf="${myconf} --enable-libdc1394"
225 use libcaca && myconf="${myconf} --enable-libcaca"
226 use openal && myconf="${myconf} --enable-openal"
227 # Indevs
228 use v4l || myconf="${myconf} --disable-indev=v4l2"
229 for i in alsa oss jack ; do
230 use ${i} || myconf="${myconf} --disable-indev=${i}"
231 done
232 use X && myconf="${myconf} --enable-x11grab"
233 use pulseaudio && myconf="${myconf} --enable-libpulse"
234 use libv4l && myconf="${myconf} --enable-libv4l2"
235 # Outdevs
236 for i in alsa oss sdl ; do
237 use ${i} || myconf="${myconf} --disable-outdev=${i}"
238 done
239 # libavfilter options
240 for i in frei0r fontconfig libass ; do
241 use ${i} && myconf="${myconf} --enable-${i}"
242 done
243 use truetype && myconf="${myconf} --enable-libfreetype"
244 use flite && myconf="${myconf} --enable-libflite"
245
246 # Threads; we only support pthread for now but ffmpeg supports more
247 use threads && myconf="${myconf} --enable-pthreads"
248
249 # Decoders
250 use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; }
251 for i in bluray celt gsm modplug opus rtmp schroedinger speex vorbis vpx; do
252 use ${i} && myconf="${myconf} --enable-lib${i}"
253 done
254 use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
255
256 # CPU features
257 for i in ${CPU_FEATURES}; do
258 use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
259 done
260 if use pic ; then
261 myconf="${myconf} --enable-pic"
262 # disable asm code if PIC is required
263 # as the provided asm decidedly is not PIC for x86.
264 use x86 && myconf="${myconf} --disable-asm"
265 fi
266
267 # Try to get cpu type based on CFLAGS.
268 # Bug #172723
269 # We need to do this so that features of that CPU will be better used
270 # If they contain an unknown CPU it will not hurt since ffmpeg's configure
271 # will just ignore it.
272 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
273 [ "${i}" = "native" ] && i="host" # bug #273421
274 myconf="${myconf} --cpu=${i}"
275 break
276 done
277
278 # Mandatory configuration
279 myconf="
280 --enable-gpl
281 ${version3}
282 --enable-postproc
283 --enable-avfilter
284 --disable-stripping
285 ${myconf}"
286
287 # cross compile support
288 if tc-is-cross-compiler ; then
289 myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
290 case ${CHOST} in
291 *freebsd*)
292 myconf="${myconf} --target-os=freebsd"
293 ;;
294 mingw32*)
295 myconf="${myconf} --target-os=mingw32"
296 ;;
297 *linux*)
298 myconf="${myconf} --target-os=linux"
299 ;;
300 esac
301 fi
302
303 # avresample support for libav compatibility
304 use avresample && myconf="${myconf} --enable-avresample"
305
306 # Misc stuff
307 use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
308
309 cd "${S}"
310 ./configure \
311 --prefix="${EPREFIX}/usr" \
312 --libdir="${EPREFIX}/usr/$(get_libdir)" \
313 --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
314 --mandir="${EPREFIX}/usr/share/man" \
315 --enable-shared \
316 --cc="$(tc-getCC)" \
317 --cxx="$(tc-getCXX)" \
318 --ar="$(tc-getAR)" \
319 --optflags="${CFLAGS}" \
320 --extra-cflags="${CFLAGS}" \
321 --extra-cxxflags="${CXXFLAGS}" \
322 $(use_enable static-libs static) \
323 ${myconf} || die
324 }
325
326 src_compile() {
327 emake V=1
328
329 for i in ${FFTOOLS} ; do
330 if use fftools_$i ; then
331 emake V=1 tools/$i
332 fi
333 done
334 }
335
336 src_install() {
337 emake V=1 DESTDIR="${D}" install install-man
338
339 dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
340 use doc && dohtml -r doc/*
341 if use examples ; then
342 insinto "/usr/share/doc/${PF}/examples"
343 doins -r doc/examples/*
344 fi
345
346 for i in ${FFTOOLS} ; do
347 if use fftools_$i ; then
348 dobin tools/$i
349 fi
350 done
351 }
352
353 src_test() {
354 LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libswresample:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
355 emake V=1 fate
356 }