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-0.7.8.ebuild
Date: Wed, 23 Nov 2011 21:28:55
Message-Id: 20111123212844.0B07E2004B@flycatcher.gentoo.org
1 aballier 11/11/23 21:28:44
2
3 Modified: ChangeLog
4 Added: ffmpeg-0.7.8.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.489 media-video/ffmpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.489&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.489&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.488&r2=1.489
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
20 retrieving revision 1.488
21 retrieving revision 1.489
22 diff -u -r1.488 -r1.489
23 --- ChangeLog 19 Nov 2011 17:39:08 -0000 1.488
24 +++ ChangeLog 23 Nov 2011 21:28:43 -0000 1.489
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-video/ffmpeg
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.488 2011/11/19 17:39:08 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.489 2011/11/23 21:28:43 aballier Exp $
30 +
31 +*ffmpeg-0.7.8 (23 Nov 2011)
32 +
33 + 23 Nov 2011; Alexis Ballier <aballier@g.o> +ffmpeg-0.7.8.ebuild:
34 + version bump
35
36 19 Nov 2011; Raúl Porcel <armin76@g.o> ffmpeg-0.7.7.ebuild:
37 alpha/ia64/sparc stable wrt #389807
38
39
40
41 1.1 media-video/ffmpeg/ffmpeg-0.7.8.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-0.7.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-0.7.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ffmpeg-0.7.8.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.7.8.ebuild,v 1.1 2011/11/23 21:28:43 aballier Exp $
51
52 EAPI="2"
53
54 SCM=""
55 if [ "${PV#9999}" != "${PV}" ] ; then
56 SCM="git-2"
57 EGIT_REPO_URI="git://git.videolan.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 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
77 fi
78 IUSE="
79 +3dnow +3dnowext aac alsa altivec amr avx bindist +bzip2 celt cpudetection
80 custom-cflags debug dirac doc +encode faac frei0r gsm +hardcoded-tables
81 ieee1394 jack jpeg2k +mmx +mmxext mp3 network oss pic qt-faststart rtmp
82 schroedinger sdl speex +ssse3 static-libs test theora threads truetype
83 v4l vaapi vdpau vorbis vpx X x264 xvid +zlib
84 "
85
86 VIDEO_CARDS="nvidia"
87
88 for x in ${VIDEO_CARDS}; do
89 IUSE="${IUSE} video_cards_${x}"
90 done
91
92 RDEPEND="
93 alsa? ( media-libs/alsa-lib )
94 amr? ( media-libs/opencore-amr )
95 bzip2? ( app-arch/bzip2 )
96 celt? ( >=media-libs/celt-0.11.1 )
97 dirac? ( media-video/dirac )
98 encode? (
99 aac? ( media-libs/vo-aacenc )
100 amr? ( media-libs/vo-amrwbenc )
101 faac? ( media-libs/faac )
102 mp3? ( >=media-sound/lame-3.98.3 )
103 theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
104 vorbis? ( media-libs/libvorbis media-libs/libogg )
105 x264? ( >=media-libs/x264-0.0.20110426 )
106 xvid? ( >=media-libs/xvid-1.1.0 )
107 )
108 frei0r? ( media-plugins/frei0r-plugins )
109 gsm? ( >=media-sound/gsm-1.0.12-r1 )
110 ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
111 jack? ( media-sound/jack-audio-connection-kit )
112 jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
113 rtmp? ( >=media-video/rtmpdump-2.2f )
114 sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
115 schroedinger? ( media-libs/schroedinger )
116 speex? ( >=media-libs/speex-1.2_beta3 )
117 truetype? ( media-libs/freetype:2 )
118 vaapi? ( >=x11-libs/libva-0.32 )
119 video_cards_nvidia? ( vdpau? ( x11-libs/libvdpau ) )
120 vpx? ( >=media-libs/libvpx-0.9.6 )
121 X? ( x11-libs/libX11 x11-libs/libXext )
122 zlib? ( sys-libs/zlib )
123 !media-video/qt-faststart
124 "
125
126 DEPEND="${RDEPEND}
127 >=sys-devel/make-3.81
128 dirac? ( dev-util/pkgconfig )
129 doc? ( app-text/texi2html )
130 ieee1394? ( dev-util/pkgconfig )
131 mmx? ( dev-lang/yasm )
132 rtmp? ( dev-util/pkgconfig )
133 schroedinger? ( dev-util/pkgconfig )
134 test? ( net-misc/wget )
135 truetype? ( dev-util/pkgconfig )
136 v4l? ( sys-kernel/linux-headers )
137 "
138
139 S=${WORKDIR}/${P/_/-}
140
141 src_prepare() {
142 if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
143 export revision=git-N-${FFMPEG_REVISION}
144 fi
145 epatch "${FILESDIR}"/${PN}-0.7.6-fix_ppc64_32ul.patch #387207
146 }
147
148 src_configure() {
149 local myconf="${EXTRA_FFMPEG_CONF}"
150 # Set to --enable-version3 if (L)GPL-3 is required
151 local version3=""
152
153 # enabled by default
154 for i in debug doc network vaapi zlib; do
155 use ${i} || myconf="${myconf} --disable-${i}"
156 done
157 use bzip2 || myconf="${myconf} --disable-bzlib"
158 use sdl || myconf="${myconf} --disable-ffplay"
159
160 use custom-cflags && myconf="${myconf} --disable-optimizations"
161 use cpudetection && myconf="${myconf} --enable-runtime-cpudetect"
162
163 #for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do
164 # use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}"
165 # use vdpau || myconf="${myconf} --disable-decoder=${i}"
166 #done
167 use video_cards_nvidia && use vdpau || myconf="${myconf} --disable-vdpau"
168
169 # Encoders
170 if use encode
171 then
172 use mp3 && myconf="${myconf} --enable-libmp3lame"
173 use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; }
174 use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; }
175 for i in theora vorbis x264 xvid; do
176 use ${i} && myconf="${myconf} --enable-lib${i}"
177 done
178 if use bindist
179 then
180 use faac && ewarn "faac is nonfree and cannot be distributed;
181 disabling faac support."
182 else
183 use faac && myconf="${myconf} --enable-libfaac --enable-nonfree"
184 fi
185 else
186 myconf="${myconf} --disable-encoders"
187 fi
188
189 # libavdevice options
190 use ieee1394 && myconf="${myconf} --enable-libdc1394"
191 # Indevs
192 # v4l1 gone since linux-headers-2.6.38
193 myconf="${myconf} --disable-indev=v4l"
194 use v4l || myconf="${myconf} --disable-indev=v4l2"
195 for i in alsa oss jack ; do
196 use ${i} || myconf="${myconf} --disable-indev=${i}"
197 done
198 use X && myconf="${myconf} --enable-x11grab"
199 # Outdevs
200 for i in alsa oss ; do
201 use ${i} || myconf="${myconf} --disable-outdev=${i}"
202 done
203 # libavfilter options
204 use frei0r && myconf="${myconf} --enable-frei0r"
205 use truetype && myconf="${myconf} --enable-libfreetype"
206
207 # Threads; we only support pthread for now but ffmpeg supports more
208 use threads && myconf="${myconf} --enable-pthreads"
209
210 # Decoders
211 use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; }
212 for i in celt gsm dirac rtmp schroedinger speex vpx; do
213 use ${i} && myconf="${myconf} --enable-lib${i}"
214 done
215 use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
216
217 # CPU features
218 for i in mmx ssse3 altivec avx ; do
219 use ${i} || myconf="${myconf} --disable-${i}"
220 done
221 use mmxext || myconf="${myconf} --disable-mmx2"
222 use 3dnow || myconf="${myconf} --disable-amd3dnow"
223 use 3dnowext || myconf="${myconf} --disable-amd3dnowext"
224 # disable mmx accelerated code if PIC is required
225 # as the provided asm decidedly is not PIC for x86.
226 if use pic && use x86 ; then
227 myconf="${myconf} --disable-mmx --disable-mmx2"
228 fi
229
230 # Option to force building pic
231 use pic && myconf="${myconf} --enable-pic"
232
233 # Try to get cpu type based on CFLAGS.
234 # Bug #172723
235 # We need to do this so that features of that CPU will be better used
236 # If they contain an unknown CPU it will not hurt since ffmpeg's configure
237 # will just ignore it.
238 for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
239 [ "${i}" = "native" ] && i="host" # bug #273421
240 [[ ${i} = *-sse3 ]] && i="${i%-sse3}" # bug 283968
241 myconf="${myconf} --cpu=${i}"
242 break
243 done
244
245 # Mandatory configuration
246 myconf="
247 --enable-gpl
248 ${version3}
249 --enable-postproc
250 --enable-avfilter
251 --disable-stripping
252 ${myconf}"
253
254 # cross compile support
255 if tc-is-cross-compiler ; then
256 myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
257 case ${CHOST} in
258 *freebsd*)
259 myconf="${myconf} --target-os=freebsd"
260 ;;
261 mingw32*)
262 myconf="${myconf} --target-os=mingw32"
263 ;;
264 *linux*)
265 myconf="${myconf} --target-os=linux"
266 ;;
267 esac
268 fi
269
270 # Misc stuff
271 use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
272
273 # Specific workarounds for too-few-registers arch...
274 if [[ $(tc-arch) == "x86" ]]; then
275 filter-flags -fforce-addr -momit-leaf-frame-pointer
276 append-flags -fomit-frame-pointer
277 is-flag -O? || append-flags -O2
278 if (use debug); then
279 # no need to warn about debug if not using debug flag
280 ewarn ""
281 ewarn "Debug information will be almost useless as the frame pointer is omitted."
282 ewarn "This makes debugging harder, so crashes that has no fixed behavior are"
283 ewarn "difficult to fix. Please have that in mind."
284 ewarn ""
285 fi
286 fi
287
288 cd "${S}"
289 ./configure \
290 --prefix=/usr \
291 --libdir=/usr/$(get_libdir) \
292 --shlibdir=/usr/$(get_libdir) \
293 --mandir=/usr/share/man \
294 --enable-shared \
295 --cc="$(tc-getCC)" \
296 $(use_enable static-libs static) \
297 ${myconf} || die
298 }
299
300 src_compile() {
301 emake version.h || die #252269
302 emake || die
303
304 if use qt-faststart; then
305 tc-export CC
306 emake -C tools qt-faststart || die
307 fi
308 }
309
310 src_install() {
311 emake DESTDIR="${D}" install install-man || die
312
313 dodoc README INSTALL
314 dodoc doc/*
315
316 if use qt-faststart; then
317 dobin tools/qt-faststart || die
318 fi
319 }
320
321 src_test() {
322 if use encode ; then
323 LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
324 emake test || die "Some tests failed"
325 else
326 ewarn "Tests fail without USE=encode, skipping"
327 fi
328 }