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.10.ebuild
Date: Sun, 27 Jul 2014 07:57:27
Message-Id: 20140727075722.988D92004E@flycatcher.gentoo.org
1 aballier 14/07/27 07:57:22
2
3 Modified: ChangeLog
4 Added: ffmpeg-1.0.10.ebuild
5 Log:
6 version bump for 1.0 branch
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.762 media-video/ffmpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.762&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.762&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.761&r2=1.762
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
20 retrieving revision 1.761
21 retrieving revision 1.762
22 diff -u -r1.761 -r1.762
23 --- ChangeLog 27 Jul 2014 07:53:08 -0000 1.761
24 +++ ChangeLog 27 Jul 2014 07:57:22 -0000 1.762
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.761 2014/07/27 07:53:08 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.762 2014/07/27 07:57:22 aballier Exp $
30 +
31 +*ffmpeg-1.0.10 (27 Jul 2014)
32 +
33 + 27 Jul 2014; Alexis Ballier <aballier@g.o> +ffmpeg-1.0.10.ebuild:
34 + version bump for 1.0 branch
35
36 *ffmpeg-2.2.5 (27 Jul 2014)
37
38
39
40
41 1.1 media-video/ffmpeg/ffmpeg-1.0.10.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.0.10.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.0.10.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ffmpeg-1.0.10.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-1.0.10.ebuild,v 1.1 2014/07/27 07:57:22 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 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:0 )
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 openssl? ( dev-libs/openssl )
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[sound,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
179 if has_version dev-libs/libcdio-paranoia; then
180 sed -i \
181 -e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
182 -e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
183 configure libavdevice/libcdio.c || die
184 fi
185
186 epatch "${FILESDIR}"/${PN}-1.0.8-freetype251.patch
187 }
188
189 src_configure() {
190 local myconf="${EXTRA_FFMPEG_CONF}"
191 # Set to --enable-version3 if (L)GPL-3 is required
192 local version3=""
193
194 # enabled by default
195 for i in debug doc network vaapi vdpau zlib; do
196 use ${i} || myconf="${myconf} --disable-${i}"
197 done
198 use bzip2 || myconf="${myconf} --disable-bzlib"
199 use sdl || myconf="${myconf} --disable-ffplay"
200
201 use cpudetection || myconf="${myconf} --disable-runtime-cpudetect"
202 use openssl && myconf="${myconf} --enable-openssl --enable-nonfree"
203 for i in gnutls ; do
204 use $i && myconf="${myconf} --enable-$i"
205 done
206
207 # Encoders
208 if use encode
209 then
210 use mp3 && myconf="${myconf} --enable-libmp3lame"
211 use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; }
212 use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; }
213 for i in theora twolame x264 xvid; do
214 use ${i} && myconf="${myconf} --enable-lib${i}"
215 done
216 use aacplus && myconf="${myconf} --enable-libaacplus --enable-nonfree"
217 use faac && myconf="${myconf} --enable-libfaac --enable-nonfree"
218 use fdk && myconf="${myconf} --enable-libfdk-aac --enable-nonfree"
219 else
220 myconf="${myconf} --disable-encoders"
221 fi
222
223 # libavdevice options
224 for i in cdio iec61883 ; do
225 use ${i} && myconf="${myconf} --enable-lib${i}"
226 done
227 use ieee1394 && myconf="${myconf} --enable-libdc1394"
228 use libcaca && myconf="${myconf} --enable-libcaca"
229 use openal && myconf="${myconf} --enable-openal"
230 # Indevs
231 use v4l || myconf="${myconf} --disable-indev=v4l2"
232 for i in alsa oss jack ; do
233 use ${i} || myconf="${myconf} --disable-indev=${i}"
234 done
235 use X && myconf="${myconf} --enable-x11grab"
236 use pulseaudio && myconf="${myconf} --enable-libpulse"
237 use libv4l && myconf="${myconf} --enable-libv4l2"
238 # Outdevs
239 for i in alsa oss sdl ; do
240 use ${i} || myconf="${myconf} --disable-outdev=${i}"
241 done
242 # libavfilter options
243 for i in frei0r fontconfig libass ; do
244 use ${i} && myconf="${myconf} --enable-${i}"
245 done
246 use truetype && myconf="${myconf} --enable-libfreetype"
247 use flite && myconf="${myconf} --enable-libflite"
248
249 # Threads; we only support pthread for now but ffmpeg supports more
250 use threads && myconf="${myconf} --enable-pthreads"
251
252 # Decoders
253 use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; }
254 for i in bluray celt gsm modplug opus rtmp schroedinger speex vorbis vpx; do
255 use ${i} && myconf="${myconf} --enable-lib${i}"
256 done
257 use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
258
259 # CPU features
260 for i in ${CPU_FEATURES}; do
261 use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
262 done
263 if use pic ; then
264 myconf="${myconf} --enable-pic"
265 # disable asm code if PIC is required
266 # as the provided asm decidedly is not PIC for x86.
267 use x86 && myconf="${myconf} --disable-asm"
268 fi
269 [[ ${ABI} == "x32" ]] && myconf+=" --disable-asm" #427004
270
271 # Try to get cpu type based on CFLAGS.
272 # Bug #172723
273 # We need to do this so that features of that CPU will be better used
274 # If they contain an unknown CPU it will not hurt since ffmpeg's configure
275 # will just ignore it.
276 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
277 [ "${i}" = "native" ] && i="host" # bug #273421
278 myconf="${myconf} --cpu=${i}"
279 break
280 done
281
282 # Mandatory configuration
283 myconf="
284 --enable-gpl
285 ${version3}
286 --enable-postproc
287 --enable-avfilter
288 --enable-avresample
289 --disable-stripping
290 ${myconf}"
291
292 # cross compile support
293 if tc-is-cross-compiler ; then
294 myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
295 case ${CHOST} in
296 *freebsd*)
297 myconf="${myconf} --target-os=freebsd"
298 ;;
299 mingw32*)
300 myconf="${myconf} --target-os=mingw32"
301 ;;
302 *linux*)
303 myconf="${myconf} --target-os=linux"
304 ;;
305 esac
306 fi
307
308 # Misc stuff
309 use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
310
311 cd "${S}"
312 ./configure \
313 --prefix="${EPREFIX}/usr" \
314 --libdir="${EPREFIX}/usr/$(get_libdir)" \
315 --shlibdir="${EPREFIX}/usr/$(get_libdir)" \
316 --mandir="${EPREFIX}/usr/share/man" \
317 --enable-shared \
318 --cc="$(tc-getCC)" \
319 --cxx="$(tc-getCXX)" \
320 --ar="$(tc-getAR)" \
321 --optflags="${CFLAGS}" \
322 --extra-cflags="${CFLAGS}" \
323 --extra-cxxflags="${CXXFLAGS}" \
324 $(use_enable static-libs static) \
325 ${myconf} || die
326 }
327
328 src_compile() {
329 emake V=1
330
331 for i in ${FFTOOLS} ; do
332 if use fftools_$i ; then
333 emake V=1 tools/$i
334 fi
335 done
336 }
337
338 src_install() {
339 emake V=1 DESTDIR="${D}" install install-man
340
341 dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
342 use doc && dohtml -r doc/*
343 if use examples ; then
344 insinto "/usr/share/doc/${PF}/examples"
345 doins -r doc/examples/*
346 fi
347
348 for i in ${FFTOOLS} ; do
349 if use fftools_$i ; then
350 dobin tools/$i
351 fi
352 done
353 }
354
355 src_test() {
356 LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libswresample:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil:${S}/libavresample" \
357 emake V=1 fate
358 }