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