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.1.3.ebuild
Date: Sat, 23 Feb 2013 13:21:38
Message-Id: 20130223132134.B94DB2171D@flycatcher.gentoo.org
1 aballier 13/02/23 13:21:34
2
3 Modified: ChangeLog
4 Added: ffmpeg-1.1.3.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.607 media-video/ffmpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.607&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.607&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.606&r2=1.607
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
20 retrieving revision 1.606
21 retrieving revision 1.607
22 diff -u -r1.606 -r1.607
23 --- ChangeLog 22 Feb 2013 19:08:22 -0000 1.606
24 +++ ChangeLog 23 Feb 2013 13:21:34 -0000 1.607
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.606 2013/02/22 19:08:22 zmedico Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.607 2013/02/23 13:21:34 aballier Exp $
30 +
31 +*ffmpeg-1.1.3 (23 Feb 2013)
32 +
33 + 23 Feb 2013; Alexis Ballier <aballier@g.o> +ffmpeg-1.1.3.ebuild:
34 + version bump
35
36 22 Feb 2013; Zac Medico <zmedico@g.o> ffmpeg-0.10.6.ebuild,
37 ffmpeg-1.0.4.ebuild, ffmpeg-1.1.2.ebuild, ffmpeg-9999.ebuild:
38
39
40
41 1.1 media-video/ffmpeg/ffmpeg-1.1.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.1.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.1.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ffmpeg-1.1.3.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.1.3.ebuild,v 1.1 2013/02/23 13:21:34 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="~alpha ~amd64 ~arm ~hppa ~ia64 ~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 libsoxr libv4l modplug mp3 network openal openssl opus oss pic pulseaudio
83 rtmp schroedinger sdl speex static-libs test theora threads truetype twolame
84 v4l 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 ffescape 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 libsoxr? ( media-libs/soxr )
132 libv4l? ( media-libs/libv4l )
133 modplug? ( media-libs/libmodplug )
134 openal? ( >=media-libs/openal-1.1 )
135 opus? ( media-libs/opus )
136 pulseaudio? ( media-sound/pulseaudio )
137 rtmp? ( >=media-video/rtmpdump-2.2f )
138 sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
139 schroedinger? ( media-libs/schroedinger )
140 speex? ( >=media-libs/speex-1.2_beta3 )
141 truetype? ( media-libs/freetype:2 )
142 vaapi? ( >=x11-libs/libva-0.32 )
143 vdpau? ( x11-libs/libvdpau )
144 vorbis? ( media-libs/libvorbis media-libs/libogg )
145 vpx? ( >=media-libs/libvpx-0.9.6 )
146 X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
147 zlib? ( sys-libs/zlib )
148 !media-video/qt-faststart
149 !media-libs/libpostproc
150 "
151
152 DEPEND="${RDEPEND}
153 >=sys-devel/make-3.81
154 doc? ( app-text/texi2html )
155 fontconfig? ( virtual/pkgconfig )
156 gnutls? ( virtual/pkgconfig )
157 ieee1394? ( virtual/pkgconfig )
158 libv4l? ( virtual/pkgconfig )
159 mmx? ( dev-lang/yasm )
160 rtmp? ( virtual/pkgconfig )
161 schroedinger? ( virtual/pkgconfig )
162 test? ( net-misc/wget )
163 truetype? ( virtual/pkgconfig )
164 v4l? ( sys-kernel/linux-headers )
165 "
166 # faac is license-incompatible with ffmpeg
167 REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
168 libv4l? ( v4l )
169 fftools_cws2fws? ( zlib )
170 test? ( encode )"
171
172 S=${WORKDIR}/${P/_/-}
173
174 src_prepare() {
175 if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
176 export revision=git-N-${FFMPEG_REVISION}
177 fi
178 epatch_user
179 }
180
181 src_configure() {
182 local myconf="${EXTRA_FFMPEG_CONF}"
183 # Set to --enable-version3 if (L)GPL-3 is required
184 local version3=""
185
186 # enabled by default
187 for i in debug doc network vaapi vdpau zlib; do
188 use ${i} || myconf="${myconf} --disable-${i}"
189 done
190 use bzip2 || myconf="${myconf} --disable-bzlib"
191 use sdl || myconf="${myconf} --disable-ffplay"
192
193 use cpudetection || myconf="${myconf} --disable-runtime-cpudetect"
194 use openssl && myconf="${myconf} --enable-openssl --enable-nonfree"
195 for i in gnutls ; do
196 use $i && myconf="${myconf} --enable-$i"
197 done
198
199 # Encoders
200 if use encode
201 then
202 use mp3 && myconf="${myconf} --enable-libmp3lame"
203 use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; }
204 use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; }
205 for i in theora twolame x264 xvid; do
206 use ${i} && myconf="${myconf} --enable-lib${i}"
207 done
208 use aacplus && myconf="${myconf} --enable-libaacplus --enable-nonfree"
209 use faac && myconf="${myconf} --enable-libfaac --enable-nonfree"
210 use fdk && myconf="${myconf} --enable-libfdk-aac --enable-nonfree"
211 else
212 myconf="${myconf} --disable-encoders"
213 fi
214
215 # libavdevice options
216 for i in cdio iec61883 ; do
217 use ${i} && myconf="${myconf} --enable-lib${i}"
218 done
219 use ieee1394 && myconf="${myconf} --enable-libdc1394"
220 use libcaca && myconf="${myconf} --enable-libcaca"
221 use openal && myconf="${myconf} --enable-openal"
222 # Indevs
223 use v4l || myconf="${myconf} --disable-indev=v4l2"
224 for i in alsa oss jack ; do
225 use ${i} || myconf="${myconf} --disable-indev=${i}"
226 done
227 use X && myconf="${myconf} --enable-x11grab"
228 use pulseaudio && myconf="${myconf} --enable-libpulse"
229 use libv4l && myconf="${myconf} --enable-libv4l2"
230 # Outdevs
231 for i in alsa oss sdl ; do
232 use ${i} || myconf="${myconf} --disable-outdev=${i}"
233 done
234 # libavfilter options
235 for i in frei0r fontconfig libass ; do
236 use ${i} && myconf="${myconf} --enable-${i}"
237 done
238 use truetype && myconf="${myconf} --enable-libfreetype"
239 use flite && myconf="${myconf} --enable-libflite"
240 # libswresample options
241 use libsoxr && myconf="${myconf} --enable-libsoxr"
242
243 # Threads; we only support pthread for now but ffmpeg supports more
244 use threads && myconf="${myconf} --enable-pthreads"
245
246 # Decoders
247 use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; }
248 for i in bluray celt gsm modplug opus rtmp schroedinger speex vorbis vpx; do
249 use ${i} && myconf="${myconf} --enable-lib${i}"
250 done
251 use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
252
253 # CPU features
254 for i in ${CPU_FEATURES}; do
255 use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
256 done
257 if use pic ; then
258 myconf="${myconf} --enable-pic"
259 # disable asm code if PIC is required
260 # as the provided asm decidedly is not PIC for x86.
261 use x86 && myconf="${myconf} --disable-asm"
262 fi
263
264 # Try to get cpu type based on CFLAGS.
265 # Bug #172723
266 # We need to do this so that features of that CPU will be better used
267 # If they contain an unknown CPU it will not hurt since ffmpeg's configure
268 # will just ignore it.
269 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
270 [ "${i}" = "native" ] && i="host" # bug #273421
271 myconf="${myconf} --cpu=${i}"
272 break
273 done
274
275 # Mandatory configuration
276 myconf="
277 --enable-gpl
278 ${version3}
279 --enable-postproc
280 --enable-avfilter
281 --disable-stripping
282 ${myconf}"
283
284 # cross compile support
285 if tc-is-cross-compiler ; then
286 myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
287 case ${CHOST} in
288 *freebsd*)
289 myconf="${myconf} --target-os=freebsd"
290 ;;
291 mingw32*)
292 myconf="${myconf} --target-os=mingw32"
293 ;;
294 *linux*)
295 myconf="${myconf} --target-os=linux"
296 ;;
297 esac
298 fi
299
300 # avresample support for libav compatibility
301 use avresample && myconf="${myconf} --enable-avresample"
302
303 # Misc stuff
304 use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
305
306 cd "${S}"
307 ./configure \
308 --prefix="${EPREFIX}/usr" \
309 --libdir="${EPREFIX}/usr/$(get_libdir)" \
310 --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
311 --mandir="${EPREFIX}/usr/share/man" \
312 --enable-shared \
313 --cc="$(tc-getCC)" \
314 --cxx="$(tc-getCXX)" \
315 --ar="$(tc-getAR)" \
316 --optflags="${CFLAGS}" \
317 --extra-cflags="${CFLAGS}" \
318 --extra-cxxflags="${CXXFLAGS}" \
319 $(use_enable static-libs static) \
320 ${myconf} || die
321 }
322
323 src_compile() {
324 emake V=1
325
326 for i in ${FFTOOLS} ; do
327 if use fftools_$i ; then
328 emake V=1 tools/$i
329 fi
330 done
331 }
332
333 src_install() {
334 emake V=1 DESTDIR="${D}" install install-man
335
336 dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
337 use doc && dohtml -r doc/*
338 if use examples ; then
339 insinto "/usr/share/doc/${PF}/examples"
340 doins -r doc/examples/*
341 fi
342
343 for i in ${FFTOOLS} ; do
344 if use fftools_$i ; then
345 dobin tools/$i
346 fi
347 done
348 }
349
350 src_test() {
351 LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libswresample:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil:${S}/libavresample" \
352 emake V=1 fate
353 }