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 metadata.xml ffmpeg-0.4.9_p20081014.ebuild
Date: Tue, 14 Oct 2008 08:53:12
Message-Id: E1KpfeQ-0000c5-Up@stork.gentoo.org
1 aballier 08/10/14 08:53:10
2
3 Modified: ChangeLog metadata.xml
4 Added: ffmpeg-0.4.9_p20081014.ebuild
5 Log:
6 Add a new snapshot, masked because it breaks a lot of consumers.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.26.6 x86_64)
8
9 Revision Changes Path
10 1.227 media-video/ffmpeg/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.227&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.227&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.226&r2=1.227
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
19 retrieving revision 1.226
20 retrieving revision 1.227
21 diff -u -r1.226 -r1.227
22 --- ChangeLog 11 Oct 2008 17:17:39 -0000 1.226
23 +++ ChangeLog 14 Oct 2008 08:53:10 -0000 1.227
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-video/ffmpeg
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.226 2008/10/11 17:17:39 dertobi123 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.227 2008/10/14 08:53:10 aballier Exp $
29 +
30 +*ffmpeg-0.4.9_p20081014 (14 Oct 2008)
31 +
32 + 14 Oct 2008; Alexis Ballier <aballier@g.o> metadata.xml,
33 + +ffmpeg-0.4.9_p20081014.ebuild:
34 + Add a new snapshot, masked because it breaks a lot of consumers.
35
36 11 Oct 2008; Tobias Scherbaum <dertobi123@g.o>
37 ffmpeg-0.4.9_p20070616-r3.ebuild:
38
39
40
41 1.4 media-video/ffmpeg/metadata.xml
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/metadata.xml?rev=1.4&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/metadata.xml?rev=1.4&content-type=text/plain
45 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/metadata.xml?r1=1.3&r2=1.4
46
47 Index: metadata.xml
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/metadata.xml,v
50 retrieving revision 1.3
51 retrieving revision 1.4
52 diff -u -r1.3 -r1.4
53 --- metadata.xml 7 Aug 2008 02:13:14 -0000 1.3
54 +++ metadata.xml 14 Oct 2008 08:53:10 -0000 1.4
55 @@ -7,7 +7,13 @@
56 </maintainer>
57 <use>
58 <flag name="amr">Enables Adaptive Multi-Rate Audio support</flag>
59 + <flag name="dirac">Enable Dirac video support (an advanced royalty-free video compression format) via the reference library: dirac.</flag>
60 + <flag name="gsm">Enables support for the gsm lossy speech compression codec via libgsm.</flag>
61 <flag name="hardcoded-tables">Use pre-calculated tables rather than calculating them on the fly.</flag>
62 + <flag name="mmxext">Enables mmx2 support</flag>
63 <flag name="network">Enables network streaming support</flag>
64 + <flag name="schroedinger">Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec).</flag>
65 + <flag name="ssse3">faster floating point optimization for SSSE3 capable chips (Intel Core 2 and later chips)</flag>
66 + <flag name="vhook">Enables video hooking support.</flag>
67 </use>
68 </pkgmetadata>
69
70
71
72 1.1 media-video/ffmpeg/ffmpeg-0.4.9_p20081014.ebuild
73
74 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20081014.ebuild?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20081014.ebuild?rev=1.1&content-type=text/plain
76
77 Index: ffmpeg-0.4.9_p20081014.ebuild
78 ===================================================================
79 # Copyright 1999-2008 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20081014.ebuild,v 1.1 2008/10/14 08:53:10 aballier Exp $
82
83 inherit eutils flag-o-matic multilib toolchain-funcs
84
85 DESCRIPTION="Complete solution to record, convert and stream audio and video.
86 Includes libavcodec. svn revision 15615"
87 HOMEPAGE="http://ffmpeg.org/"
88 MY_P=${P/_/-}
89 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
90
91 S=${WORKDIR}/ffmpeg
92
93 LICENSE="GPL-2"
94 SLOT="0"
95 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
96 IUSE="aac altivec amr debug dirac doc ieee1394 encode gsm ipv6 mmx mmxext vorbis
97 test theora threads x264 xvid network zlib sdl X mp3 schroedinger
98 hardcoded-tables bindist v4l v4l2 ssse3 vhook"
99
100 RDEPEND="vhook? ( media-libs/imlib2 >=media-libs/freetype-2 )
101 sdl? ( >=media-libs/libsdl-1.2.10 )
102 encode? (
103 aac? ( media-libs/faac )
104 mp3? ( media-sound/lame )
105 vorbis? ( media-libs/libvorbis media-libs/libogg )
106 theora? ( media-libs/libtheora media-libs/libogg )
107 x264? ( >=media-libs/x264-0.0.20081006 )
108 xvid? ( >=media-libs/xvid-1.1.0 ) )
109 aac? ( media-libs/faad2 )
110 zlib? ( sys-libs/zlib )
111 ieee1394? ( =media-libs/libdc1394-1*
112 sys-libs/libraw1394 )
113 dirac? ( media-video/dirac )
114 gsm? ( >=media-sound/gsm-1.0.12-r1 )
115 schroedinger? ( media-libs/schroedinger )
116 X? ( x11-libs/libX11 x11-libs/libXext )
117 amr? ( media-libs/amrnb media-libs/amrwb )"
118
119 DEPEND="${RDEPEND}
120 mmx? ( dev-lang/yasm )
121 doc? ( app-text/texi2html )
122 test? ( net-misc/wget )
123 v4l? ( sys-kernel/linux-headers )
124 v4l2? ( sys-kernel/linux-headers )"
125
126 src_unpack() {
127 unpack ${A}
128 cd "${S}"
129 epatch "${FILESDIR}/${PN}-shared-gcc4.1.patch"
130 }
131
132 src_compile() {
133 replace-flags -O0 -O2
134 #x86, what a wonderful arch....
135 replace-flags -O1 -O2
136 local myconf="${EXTRA_ECONF}"
137
138 # enabled by default
139 use debug || myconf="${myconf} --disable-debug"
140 use zlib || myconf="${myconf} --disable-zlib"
141 use sdl || myconf="${myconf} --disable-ffplay"
142
143 if use network; then
144 use ipv6 || myconf="${myconf} --disable-ipv6"
145 else
146 myconf="${myconf} --disable-network"
147 fi
148
149 myconf="${myconf} --disable-optimizations"
150
151 # disabled by default
152 if use encode
153 then
154 use aac && myconf="${myconf} --enable-libfaac"
155 use mp3 && myconf="${myconf} --enable-libmp3lame"
156 use vorbis && myconf="${myconf} --enable-libvorbis"
157 use theora && myconf="${myconf} --enable-libtheora"
158 use x264 && myconf="${myconf} --enable-libx264"
159 use xvid && myconf="${myconf} --enable-libxvid"
160 else
161 myconf="${myconf} --disable-encoders"
162 fi
163
164 # libavdevice options
165 use ieee1394 && myconf="${myconf} --enable-libdc1394"
166 for i in v4l v4l2 ; do
167 use $i || myconf="${myconf} --disable-demuxer=$i"
168 done
169 use X && myconf="${myconf} --enable-x11grab"
170
171 # Threads; we only support pthread for now but ffmpeg supports more
172 use threads && myconf="${myconf} --enable-pthreads"
173
174 # Decoders
175 use aac && myconf="${myconf} --enable-libfaad"
176 use dirac && myconf="${myconf} --enable-libdirac"
177 use schroedinger && myconf="${myconf} --enable-libschroedinger"
178 if use gsm; then
179 myconf="${myconf} --enable-libgsm"
180 # Crappy detection or our installation is weird, pick one (FIXME)
181 append-flags -I/usr/include/gsm
182 fi
183 if use bindist
184 then
185 use amr && ewarn "libamr is nonfree and cannot be distributed; disabling amr support."
186 else
187 use amr && myconf="${myconf} --enable-libamr-nb \
188 --enable-libamr-wb \
189 --enable-nonfree"
190 fi
191
192 # CPU features
193 for i in mmx ssse3 altivec ; do
194 use $i || myconf="${myconf} --disable-$i"
195 done
196 use mmxext || myconf="${myconf} --disable-mmx2"
197 # disable mmx accelerated code if PIC is required
198 # as the provided asm decidedly is not PIC.
199 if gcc-specs-pie ; then
200 myconf="${myconf} --disable-mmx --disable-mmx2"
201 fi
202
203 # video hooking support. replaced by libavfilter, probably needs to be
204 # dropped at some point.
205 use vhook || myconf="${myconf} --disable-vhook"
206
207 # Mandatory configuration
208 myconf="${myconf} --enable-gpl --enable-postproc \
209 --enable-avfilter --enable-avfilter-lavf \
210 --enable-swscale --disable-stripping"
211
212 # cross compile support (FIXME?)
213 tc-is-cross-compiler && myconf="${myconf} --cross-compile --arch=$(tc-arch-kernel)"
214
215 # Misc stuff
216 use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
217
218 # Specific workarounds for too-few-registers arch...
219 if [[ $(tc-arch) == "x86" ]]; then
220 filter-flags -fforce-addr -momit-leaf-frame-pointer
221 append-flags -fomit-frame-pointer
222 is-flag -O? || append-flags -O2
223 if (use debug); then
224 # no need to warn about debug if not using debug flag
225 ewarn ""
226 ewarn "Debug information will be almost useless as the frame pointer is omitted."
227 ewarn "This makes debugging harder, so crashes that has no fixed behavior are"
228 ewarn "difficult to fix. Please have that in mind."
229 ewarn ""
230 fi
231 fi
232
233 cd "${S}"
234 ./configure \
235 --prefix=/usr \
236 --libdir=/usr/$(get_libdir) \
237 --shlibdir=/usr/$(get_libdir) \
238 --mandir=/usr/share/man \
239 --enable-static --enable-shared \
240 --cc="$(tc-getCC)" \
241 ${myconf} || die "configure failed"
242
243 emake -j1 depend || die "depend failed"
244 emake || die "make failed"
245 }
246
247 src_install() {
248 emake -j1 DESTDIR="${D}" install || die "Install Failed"
249
250 use doc && emake -j1 documentation
251 dodoc Changelog README INSTALL
252 dodoc doc/*
253 }
254
255 # Never die for now...
256 src_test() {
257 for t in codectest libavtest servertest seektest ; do
258 emake ${t} || ewarn "Some tests in ${t} failed"
259 done
260 }
261
262 pkg_postinst() {
263 ewarn "ffmpeg may have had ABI changes, if ffmpeg based programs"
264 ewarn "like xine-lib or vlc stop working as expected please"
265 ewarn "rebuild them."
266 }