1 |
aballier 11/07/30 18:46:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ffmpeg-0.7.2.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.434 media-video/ffmpeg/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.434&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.434&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.433&r2=1.434 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v |
20 |
retrieving revision 1.433 |
21 |
retrieving revision 1.434 |
22 |
diff -u -r1.433 -r1.434 |
23 |
--- ChangeLog 10 Jul 2011 19:24:56 -0000 1.433 |
24 |
+++ ChangeLog 30 Jul 2011 18:46:28 -0000 1.434 |
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.433 2011/07/10 19:24:56 aballier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.434 2011/07/30 18:46:28 aballier Exp $ |
30 |
+ |
31 |
+*ffmpeg-0.7.2 (30 Jul 2011) |
32 |
+ |
33 |
+ 30 Jul 2011; Alexis Ballier <aballier@g.o> +ffmpeg-0.7.2.ebuild: |
34 |
+ version bump |
35 |
|
36 |
10 Jul 2011; Alexis Ballier <aballier@g.o> -ffmpeg-0.6.ebuild, |
37 |
-ffmpeg-0.6_p25767.ebuild, -ffmpeg-0.6.90_rc0-r2.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-video/ffmpeg/ffmpeg-0.7.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-0.7.2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-0.7.2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ffmpeg-0.7.2.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.2.ebuild,v 1.1 2011/07/30 18:46:28 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 ~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 v4l |
83 |
v4l2 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 |
mmx? ( dev-lang/yasm ) |
131 |
rtmp? ( dev-util/pkgconfig ) |
132 |
schroedinger? ( dev-util/pkgconfig ) |
133 |
test? ( net-misc/wget ) |
134 |
v4l? ( sys-kernel/linux-headers ) |
135 |
v4l2? ( sys-kernel/linux-headers ) |
136 |
" |
137 |
|
138 |
S=${WORKDIR}/${P/_/-} |
139 |
|
140 |
src_prepare() { |
141 |
if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
142 |
export revision=git-N-${FFMPEG_REVISION} |
143 |
fi |
144 |
} |
145 |
|
146 |
src_configure() { |
147 |
local myconf="${EXTRA_FFMPEG_CONF}" |
148 |
# Set to --enable-version3 if (L)GPL-3 is required |
149 |
local version3="" |
150 |
|
151 |
# enabled by default |
152 |
for i in debug doc network vaapi zlib; do |
153 |
use ${i} || myconf="${myconf} --disable-${i}" |
154 |
done |
155 |
use bzip2 || myconf="${myconf} --disable-bzlib" |
156 |
use sdl || myconf="${myconf} --disable-ffplay" |
157 |
|
158 |
use custom-cflags && myconf="${myconf} --disable-optimizations" |
159 |
use cpudetection && myconf="${myconf} --enable-runtime-cpudetect" |
160 |
|
161 |
#for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do |
162 |
# use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}" |
163 |
# use vdpau || myconf="${myconf} --disable-decoder=${i}" |
164 |
#done |
165 |
use video_cards_nvidia && use vdpau || myconf="${myconf} --disable-vdpau" |
166 |
|
167 |
# Encoders |
168 |
if use encode |
169 |
then |
170 |
use mp3 && myconf="${myconf} --enable-libmp3lame" |
171 |
use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; } |
172 |
use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; } |
173 |
for i in theora vorbis x264 xvid; do |
174 |
use ${i} && myconf="${myconf} --enable-lib${i}" |
175 |
done |
176 |
if use bindist |
177 |
then |
178 |
use faac && ewarn "faac is nonfree and cannot be distributed; |
179 |
disabling faac support." |
180 |
else |
181 |
use faac && myconf="${myconf} --enable-libfaac --enable-nonfree" |
182 |
fi |
183 |
else |
184 |
myconf="${myconf} --disable-encoders" |
185 |
fi |
186 |
|
187 |
# libavdevice options |
188 |
use ieee1394 && myconf="${myconf} --enable-libdc1394" |
189 |
# Indevs |
190 |
for i in v4l v4l2 alsa oss jack ; do |
191 |
use ${i} || myconf="${myconf} --disable-indev=${i}" |
192 |
done |
193 |
use X && myconf="${myconf} --enable-x11grab" |
194 |
# Outdevs |
195 |
for i in alsa oss ; do |
196 |
use ${i} || myconf="${myconf} --disable-outdev=${i}" |
197 |
done |
198 |
# libavfilter options |
199 |
use frei0r && myconf="${myconf} --enable-frei0r" |
200 |
use truetype && myconf="${myconf} --enable-libfreetype" |
201 |
|
202 |
# Threads; we only support pthread for now but ffmpeg supports more |
203 |
use threads && myconf="${myconf} --enable-pthreads" |
204 |
|
205 |
# Decoders |
206 |
use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; } |
207 |
for i in celt gsm dirac rtmp schroedinger speex vpx; do |
208 |
use ${i} && myconf="${myconf} --enable-lib${i}" |
209 |
done |
210 |
use jpeg2k && myconf="${myconf} --enable-libopenjpeg" |
211 |
|
212 |
# CPU features |
213 |
for i in mmx ssse3 altivec avx ; do |
214 |
use ${i} || myconf="${myconf} --disable-${i}" |
215 |
done |
216 |
use mmxext || myconf="${myconf} --disable-mmx2" |
217 |
use 3dnow || myconf="${myconf} --disable-amd3dnow" |
218 |
use 3dnowext || myconf="${myconf} --disable-amd3dnowext" |
219 |
# disable mmx accelerated code if PIC is required |
220 |
# as the provided asm decidedly is not PIC for x86. |
221 |
if use pic && use x86 ; then |
222 |
myconf="${myconf} --disable-mmx --disable-mmx2" |
223 |
fi |
224 |
|
225 |
# Option to force building pic |
226 |
use pic && myconf="${myconf} --enable-pic" |
227 |
|
228 |
# Try to get cpu type based on CFLAGS. |
229 |
# Bug #172723 |
230 |
# We need to do this so that features of that CPU will be better used |
231 |
# If they contain an unknown CPU it will not hurt since ffmpeg's configure |
232 |
# will just ignore it. |
233 |
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
234 |
[ "${i}" = "native" ] && i="host" # bug #273421 |
235 |
[[ ${i} = *-sse3 ]] && i="${i%-sse3}" # bug 283968 |
236 |
myconf="${myconf} --cpu=${i}" |
237 |
break |
238 |
done |
239 |
|
240 |
# Mandatory configuration |
241 |
myconf=" |
242 |
--enable-gpl |
243 |
${version3} |
244 |
--enable-postproc |
245 |
--enable-avfilter |
246 |
--disable-stripping |
247 |
${myconf}" |
248 |
|
249 |
# cross compile support |
250 |
if tc-is-cross-compiler ; then |
251 |
myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-" |
252 |
case ${CHOST} in |
253 |
*freebsd*) |
254 |
myconf="${myconf} --target-os=freebsd" |
255 |
;; |
256 |
mingw32*) |
257 |
myconf="${myconf} --target-os=mingw32" |
258 |
;; |
259 |
*linux*) |
260 |
myconf="${myconf} --target-os=linux" |
261 |
;; |
262 |
esac |
263 |
fi |
264 |
|
265 |
# Misc stuff |
266 |
use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables" |
267 |
|
268 |
# Specific workarounds for too-few-registers arch... |
269 |
if [[ $(tc-arch) == "x86" ]]; then |
270 |
filter-flags -fforce-addr -momit-leaf-frame-pointer |
271 |
append-flags -fomit-frame-pointer |
272 |
is-flag -O? || append-flags -O2 |
273 |
if (use debug); then |
274 |
# no need to warn about debug if not using debug flag |
275 |
ewarn "" |
276 |
ewarn "Debug information will be almost useless as the frame pointer is omitted." |
277 |
ewarn "This makes debugging harder, so crashes that has no fixed behavior are" |
278 |
ewarn "difficult to fix. Please have that in mind." |
279 |
ewarn "" |
280 |
fi |
281 |
fi |
282 |
|
283 |
cd "${S}" |
284 |
./configure \ |
285 |
--prefix=/usr \ |
286 |
--libdir=/usr/$(get_libdir) \ |
287 |
--shlibdir=/usr/$(get_libdir) \ |
288 |
--mandir=/usr/share/man \ |
289 |
--enable-shared \ |
290 |
--cc="$(tc-getCC)" \ |
291 |
$(use_enable static-libs static) \ |
292 |
${myconf} || die |
293 |
} |
294 |
|
295 |
src_compile() { |
296 |
emake version.h || die #252269 |
297 |
emake || die |
298 |
|
299 |
if use qt-faststart; then |
300 |
tc-export CC |
301 |
emake -C tools qt-faststart || die |
302 |
fi |
303 |
} |
304 |
|
305 |
src_install() { |
306 |
emake DESTDIR="${D}" install install-man || die |
307 |
|
308 |
dodoc Changelog README INSTALL |
309 |
dodoc doc/* |
310 |
|
311 |
if use qt-faststart; then |
312 |
dobin tools/qt-faststart || die |
313 |
fi |
314 |
} |
315 |
|
316 |
src_test() { |
317 |
if use encode ; then |
318 |
LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \ |
319 |
emake test || die "Some tests failed" |
320 |
else |
321 |
ewarn "Tests fail without USE=encode, skipping" |
322 |
fi |
323 |
} |