Gentoo Archives: gentoo-commits

From: "Luca Barbato (lu_zero)" <lu_zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/ffmpeg: ChangeLog ffmpeg-0.4.9_p20080206.ebuild
Date: Wed, 06 Feb 2008 13:29:21
Message-Id: E1JMkKz-0005Sk-1W@stork.gentoo.org
1 lu_zero 08/02/06 13:29:17
2
3 Modified: ChangeLog
4 Added: ffmpeg-0.4.9_p20080206.ebuild
5 Log:
6 New snapshot
7 (Portage version: 2.1.4.1)
8
9 Revision Changes Path
10 1.213 media-video/ffmpeg/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.213&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.213&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.212&r2=1.213
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
19 retrieving revision 1.212
20 retrieving revision 1.213
21 diff -u -r1.212 -r1.213
22 --- ChangeLog 31 Oct 2007 11:54:03 -0000 1.212
23 +++ ChangeLog 6 Feb 2008 13:29:16 -0000 1.213
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-video/ffmpeg
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.212 2007/10/31 11:54:03 zzam Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.213 2008/02/06 13:29:16 lu_zero Exp $
30 +
31 +*ffmpeg-0.4.9_p20080206 (06 Feb 2008)
32 +
33 + 06 Feb 2008; Luca Barbato <lu_zero@g.o>
34 + +ffmpeg-0.4.9_p20080206.ebuild:
35 + New snapshot
36
37 31 Oct 2007; Matthias Schwarzott <zzam@g.o>
38 ffmpeg-0.4.9_p20051216.ebuild, ffmpeg-0.4.9_p20060302.ebuild,
39
40
41
42 1.1 media-video/ffmpeg/ffmpeg-0.4.9_p20080206.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20080206.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20080206.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ffmpeg-0.4.9_p20080206.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.9_p20080206.ebuild,v 1.1 2008/02/06 13:29:16 lu_zero Exp $
52
53 inherit eutils flag-o-matic multilib toolchain-funcs
54
55 DESCRIPTION="Complete solution to record, convert and stream audio and video.
56 Includes libavcodec. svn revision 11878"
57 HOMEPAGE="http://ffmpeg.org/"
58 MY_P=${P/_/-}
59 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
60
61 S=${WORKDIR}/ffmpeg
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
66 IUSE="aac altivec amr debug doc ieee1394 a52 encode imlib ipv6 mmx vorbis
67 test theora threads truetype x264 xvid network zlib sdl X mp3
68 hardcoded-tables bindist"
69
70 RDEPEND="imlib? ( media-libs/imlib2 )
71 truetype? ( >=media-libs/freetype-2 )
72 sdl? ( >=media-libs/libsdl-1.2.10 )
73 encode? (
74 aac? ( media-libs/faac )
75 mp3? ( media-sound/lame )
76 vorbis? ( media-libs/libvorbis )
77 theora? ( media-libs/libtheora )
78 x264? ( >=media-libs/x264-svn-20061014 )
79 xvid? ( >=media-libs/xvid-1.1.0 ) )
80 aac? ( media-libs/faad2 )
81 a52? ( >=media-libs/a52dec-0.7.4-r4 )
82 zlib? ( sys-libs/zlib )
83 ieee1394? ( =media-libs/libdc1394-1*
84 sys-libs/libraw1394 )
85 X? ( x11-libs/libX11 x11-libs/libXext )
86 amr? ( media-libs/amrnb media-libs/amrwb )"
87
88 DEPEND="${RDEPEND}
89 doc? ( app-text/texi2html )
90 test? ( net-misc/wget )"
91
92 src_unpack() {
93 unpack ${A}
94
95 cd "${S}"
96
97 #Append -DBROKEN_RELOCATIONS to build for bug 179872.
98 #Pretty please fix me if you can.
99 append-flags "-DBROKEN_RELOCATIONS"
100
101 # .pc files contain wrong libdir path
102 epatch ${FILESDIR}/${PN}-libdir-2007.patch
103 sed -i -e "s:GENTOOLIBDIR:$(get_libdir):" configure
104
105 # To make sure the ffserver test will work
106 sed -i -e "s:-e debug=off::" tests/server-regression.sh
107
108 epatch "${FILESDIR}/${PN}-shared-gcc4.1.patch"
109 # disable non pic safe asm, bug #172877, bug #172845 and dupes
110 # epatch "${FILESDIR}/${PN}-0.4.9_p20070330-asmpic.patch"
111 }
112
113 src_compile() {
114 replace-flags -O0 -O2
115 #x86, what a wonderful arch....
116 replace-flags -O1 -O2
117 local myconf="${EXTRA_ECONF}"
118
119 #disable mmx accelerated code if not requested, or if PIC is required
120 # as the provided asm decidedly is not PIC.
121 if ( gcc-specs-pie || ! use mmx ) ; then
122 myconf="${myconf} --disable-mmx"
123 fi
124
125 # enabled by default
126 use altivec || myconf="${myconf} --disable-altivec"
127 use debug || myconf="${myconf} --disable-debug"
128 use zlib || myconf="${myconf} --disable-zlib"
129 use sdl || myconf="${myconf} --disable-ffplay"
130
131 if use network; then
132 use ipv6 || myconf="${myconf} --disable-ipv6"
133 else
134 myconf="${myconf} --disable-network"
135 fi
136
137 myconf="${myconf} --disable-optimizations"
138
139 # disabled by default
140 if use encode
141 then
142 use aac && myconf="${myconf} --enable-libfaac"
143 use mp3 && myconf="${myconf} --enable-libmp3lame"
144 use vorbis && myconf="${myconf} --enable-libvorbis"
145 use theora && myconf="${myconf} --enable-libtheora"
146 use x264 && myconf="${myconf} --enable-libx264"
147 use xvid && myconf="${myconf} --enable-libxvid"
148 else
149 myconf="${myconf} --disable-encoders"
150 fi
151 use a52 && myconf="${myconf} --enable-liba52"
152 use ieee1394 && myconf="${myconf} --enable-dc1394"
153 use threads && myconf="${myconf} --enable-pthreads"
154 use X && myconf="${myconf} --enable-x11grab"
155 use aac && myconf="${myconf} --enable-libfaad"
156 if use bindist
157 then
158 use amr && einfo "libamr is nonfree and cannot be distributed"
159 else
160 use amr && myconf="${myconf} --enable-libamr-nb \
161 --enable-libamr-wb \
162 --enable-nonfree"
163 fi
164
165 myconf="${myconf} --enable-gpl --enable-pp \
166 --enable-swscaler --disable-strip"
167
168 tc-is-cross-compiler && myconf="${myconf} --cross-compile --arch=$(tc-arch-kernel)"
169
170 use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
171
172 # Specific workarounds for too-few-registers arch...
173 if [[ $(tc-arch) == "x86" ]]; then
174 filter-flags -fforce-addr -momit-leaf-frame-pointer
175 append-flags -fomit-frame-pointer
176 is-flag -O? || append-flags -O2
177 if (use debug); then
178 # no need to warn about debug if not using debug flag
179 ewarn ""
180 ewarn "Debug information will be almost useless as the frame pointer is omitted."
181 ewarn "This makes debugging harder, so crashes that has no fixed behavior are"
182 ewarn "difficult to fix. Please have that in mind."
183 ewarn ""
184 fi
185 fi
186
187 cd ${S}
188 ./configure \
189 --prefix=/usr \
190 --libdir=/usr/$(get_libdir) \
191 --shlibdir=/usr/$(get_libdir) \
192 --mandir=/usr/share/man \
193 --enable-static --enable-shared \
194 "--cc=$(tc-getCC)" \
195 ${myconf} || die "configure failed"
196
197 emake -j1 depend || die "depend failed"
198 emake || die "make failed"
199 }
200
201 src_install() {
202 emake -j1 LDCONFIG=true DESTDIR=${D} install || die "Install Failed"
203
204 use doc && emake -j1 documentation
205 dodoc Changelog README INSTALL
206 dodoc doc/*
207 }
208
209 # Never die for now...
210 src_test() {
211 cd ${S}/tests
212 for t in "codectest libavtest test-server" ; do
213 make ${t} || ewarn "Some tests in ${t} failed"
214 done
215 }
216
217 pkg_postinst() {
218 ewarn "ffmpeg may have had ABI changes, if ffmpeg based programs"
219 ewarn "like xine-lib or vlc stop working as expected please"
220 ewarn "rebuild them."
221 }
222
223
224
225 --
226 gentoo-commits@l.g.o mailing list