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