Gentoo Archives: gentoo-commits

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