1 |
aballier 14/08/29 18:11:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ffmpeg-1.2.8.ebuild |
5 |
Log: |
6 |
bump for 1.2 branch |
7 |
|
8 |
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.784 media-video/ffmpeg/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.784&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.784&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.783&r2=1.784 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v |
20 |
retrieving revision 1.783 |
21 |
retrieving revision 1.784 |
22 |
diff -u -r1.783 -r1.784 |
23 |
--- ChangeLog 25 Aug 2014 11:02:41 -0000 1.783 |
24 |
+++ ChangeLog 29 Aug 2014 18:11:14 -0000 1.784 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for media-video/ffmpeg |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.783 2014/08/25 11:02:41 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.784 2014/08/29 18:11:14 aballier Exp $ |
30 |
+ |
31 |
+*ffmpeg-1.2.8 (29 Aug 2014) |
32 |
+ |
33 |
+ 29 Aug 2014; Alexis Ballier <aballier@g.o> +ffmpeg-1.2.8.ebuild: |
34 |
+ bump for 1.2 branch |
35 |
|
36 |
25 Aug 2014; Agostino Sarubbo <ago@g.o> ffmpeg-1.2.6-r1.ebuild: |
37 |
Stable for alpha, wrt bug #512012 |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-video/ffmpeg/ffmpeg-1.2.8.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.2.8.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-1.2.8.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ffmpeg-1.2.8.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-1.2.8.ebuild,v 1.1 2014/08/29 18:11:14 aballier Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
|
54 |
SCM="" |
55 |
if [ "${PV#9999}" != "${PV}" ] ; then |
56 |
SCM="git-2" |
57 |
EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git" |
58 |
fi |
59 |
|
60 |
inherit eutils flag-o-matic multilib multilib-minimal 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 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
77 |
fi |
78 |
IUSE=" |
79 |
aac aacplus alsa amr bindist bluray +bzip2 cdio celt |
80 |
cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r |
81 |
gnutls gsm +hardcoded-tables +iconv iec61883 ieee1394 jack jpeg2k libass |
82 |
libcaca libsoxr libv4l modplug mp3 +network openal openssl opus oss pic |
83 |
pulseaudio rtmp schroedinger sdl speex static-libs test theora threads |
84 |
truetype twolame v4l vaapi vdpau vorbis vpx X x264 xvid +zlib |
85 |
" |
86 |
|
87 |
# String for CPU features in the useflag[:configure_option] form |
88 |
# if :configure_option isn't set, it will use 'useflag' as configure option |
89 |
CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext ssse3 vis neon" |
90 |
|
91 |
for i in ${CPU_FEATURES}; do |
92 |
IUSE="${IUSE} ${i%:*}" |
93 |
done |
94 |
|
95 |
FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" |
96 |
|
97 |
for i in ${FFTOOLS}; do |
98 |
IUSE="${IUSE} +fftools_$i" |
99 |
done |
100 |
|
101 |
RDEPEND=" |
102 |
alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
103 |
amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
104 |
bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) |
105 |
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
106 |
cdio? ( |
107 |
|| ( |
108 |
>=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] |
109 |
<dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}] |
110 |
) |
111 |
) |
112 |
celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
113 |
encode? ( |
114 |
aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
115 |
aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] ) |
116 |
amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
117 |
faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
118 |
fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) |
119 |
mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
120 |
theora? ( |
121 |
>=media-libs/libtheora-1.1.1[${MULTILIB_USEDEP},encode] |
122 |
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
123 |
) |
124 |
twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) |
125 |
x264? ( >=media-libs/x264-0.0.20130506[${MULTILIB_USEDEP}] ) |
126 |
xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
127 |
) |
128 |
flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) |
129 |
fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) |
130 |
frei0r? ( media-plugins/frei0r-plugins ) |
131 |
gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
132 |
gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
133 |
iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) |
134 |
iec61883? ( |
135 |
>=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] |
136 |
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
137 |
>=sys-libs/libavc1394-0.5.4-r1[${MULTILIB_USEDEP}] |
138 |
) |
139 |
ieee1394? ( |
140 |
>=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] |
141 |
>=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] |
142 |
) |
143 |
jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
144 |
jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
145 |
libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
146 |
libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) |
147 |
libsoxr? ( >=media-libs/soxr-0.1.0[${MULTILIB_USEDEP}] ) |
148 |
libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
149 |
modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
150 |
openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
151 |
openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) |
152 |
opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) |
153 |
pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
154 |
rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
155 |
sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
156 |
schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
157 |
speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
158 |
truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
159 |
vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
160 |
vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
161 |
vorbis? ( |
162 |
>=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
163 |
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
164 |
) |
165 |
vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
166 |
X? ( |
167 |
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
168 |
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
169 |
>=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] |
170 |
) |
171 |
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
172 |
!media-video/qt-faststart |
173 |
!media-libs/libpostproc |
174 |
" |
175 |
|
176 |
DEPEND="${RDEPEND} |
177 |
>=sys-devel/make-3.81 |
178 |
doc? ( app-text/texi2html ) |
179 |
fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
180 |
gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
181 |
ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
182 |
libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
183 |
mmx? ( dev-lang/yasm ) |
184 |
rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
185 |
schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
186 |
test? ( net-misc/wget ) |
187 |
truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) |
188 |
v4l? ( sys-kernel/linux-headers ) |
189 |
" |
190 |
|
191 |
RDEPEND="${RDEPEND} |
192 |
abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 |
193 |
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
194 |
|
195 |
# faac is license-incompatible with ffmpeg |
196 |
REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl ) |
197 |
libv4l? ( v4l ) |
198 |
fftools_cws2fws? ( zlib ) |
199 |
test? ( encode )" |
200 |
|
201 |
S=${WORKDIR}/${P/_/-} |
202 |
|
203 |
MULTILIB_WRAPPED_HEADERS=( |
204 |
/usr/include/libavutil/avconfig.h |
205 |
) |
206 |
|
207 |
src_prepare() { |
208 |
if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot |
209 |
export revision=git-N-${FFMPEG_REVISION} |
210 |
fi |
211 |
|
212 |
epatch_user |
213 |
} |
214 |
|
215 |
multilib_src_configure() { |
216 |
local myconf=( ${EXTRA_FFMPEG_CONF} ) |
217 |
|
218 |
# options to use as use_enable in the foo[:bar] form. |
219 |
# This will feed configure with $(use_enable foo bar) |
220 |
# or $(use_enable foo foo) if no :bar is set. |
221 |
local ffuse=( |
222 |
bzip2:bzlib cpudetection:runtime-cpudetect debug doc |
223 |
gnutls hardcoded-tables iconv network openssl sdl:ffplay vaapi vdpau zlib |
224 |
) |
225 |
use openssl && myconf+=( --enable-nonfree ) |
226 |
|
227 |
# Encoders |
228 |
if use encode |
229 |
then |
230 |
ffuse+=( aac:libvo-aacenc amr:libvo-amrwbenc mp3:libmp3lame fdk:libfdk-aac ) |
231 |
for i in aacplus faac theora twolame x264 xvid; do |
232 |
ffuse+=( ${i}:lib${i} ) |
233 |
done |
234 |
|
235 |
# Licensing. |
236 |
if use aac || use amr ; then |
237 |
myconf+=( --enable-version3 ) |
238 |
fi |
239 |
if use aacplus || use faac || use fdk ; then |
240 |
myconf+=( --enable-nonfree ) |
241 |
fi |
242 |
else |
243 |
myconf+=( --disable-encoders ) |
244 |
fi |
245 |
|
246 |
# libavdevice options |
247 |
ffuse+=( cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal ) |
248 |
|
249 |
# Indevs |
250 |
use v4l || myconf+=( --disable-indev=v4l2 ) |
251 |
for i in alsa oss jack ; do |
252 |
use ${i} || myconf+=( --disable-indev=${i} ) |
253 |
done |
254 |
ffuse+=( libv4l:libv4l2 pulseaudio:libpulse X:x11grab ) |
255 |
|
256 |
# Outdevs |
257 |
for i in alsa oss sdl ; do |
258 |
use ${i} || myconf+=( --disable-outdev=${i} ) |
259 |
done |
260 |
|
261 |
# libavfilter options |
262 |
ffuse+=( flite:libflite frei0r fontconfig libass truetype:libfreetype ) |
263 |
|
264 |
# libswresample options |
265 |
ffuse+=( libsoxr ) |
266 |
|
267 |
# Threads; we only support pthread for now but ffmpeg supports more |
268 |
ffuse+=( threads:pthreads ) |
269 |
|
270 |
# Decoders |
271 |
ffuse+=( amr:libopencore-amrwb amr:libopencore-amrnb jpeg2k:libopenjpeg ) |
272 |
use amr && myconf+=( --enable-version3 ) |
273 |
for i in bluray celt gsm modplug opus rtmp schroedinger speex vorbis vpx; do |
274 |
ffuse+=( ${i}:lib${i} ) |
275 |
done |
276 |
|
277 |
for i in "${ffuse[@]}" ; do |
278 |
myconf+=( $(use_enable ${i%:*} ${i#*:}) ) |
279 |
done |
280 |
|
281 |
# (temporarily) disable non-multilib deps |
282 |
if ! multilib_is_native_abi; then |
283 |
myconf+=( --disable-frei0r ) |
284 |
fi |
285 |
|
286 |
# CPU features |
287 |
for i in ${CPU_FEATURES}; do |
288 |
use ${i%:*} || myconf+=( --disable-${i#*:} ) |
289 |
done |
290 |
if use pic ; then |
291 |
myconf+=( --enable-pic ) |
292 |
# disable asm code if PIC is required |
293 |
# as the provided asm decidedly is not PIC for x86. |
294 |
[[ ${ABI} == x86 ]] && myconf+=( --disable-asm ) |
295 |
fi |
296 |
[[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004 |
297 |
|
298 |
# Try to get cpu type based on CFLAGS. |
299 |
# Bug #172723 |
300 |
# We need to do this so that features of that CPU will be better used |
301 |
# If they contain an unknown CPU it will not hurt since ffmpeg's configure |
302 |
# will just ignore it. |
303 |
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
304 |
[[ ${i} = native ]] && i="host" # bug #273421 |
305 |
myconf+=( --cpu=${i} ) |
306 |
break |
307 |
done |
308 |
|
309 |
# Mandatory configuration |
310 |
myconf=( |
311 |
--enable-gpl |
312 |
--enable-postproc |
313 |
--enable-avfilter |
314 |
--enable-avresample |
315 |
--disable-stripping |
316 |
"${myconf[@]}" |
317 |
) |
318 |
|
319 |
# cross compile support |
320 |
if tc-is-cross-compiler ; then |
321 |
myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) |
322 |
case ${CHOST} in |
323 |
*freebsd*) |
324 |
myconf+=( --target-os=freebsd ) |
325 |
;; |
326 |
mingw32*) |
327 |
myconf+=( --target-os=mingw32 ) |
328 |
;; |
329 |
*linux*) |
330 |
myconf+=( --target-os=linux ) |
331 |
;; |
332 |
esac |
333 |
fi |
334 |
|
335 |
set -- "${S}/configure" \ |
336 |
--prefix="${EPREFIX}/usr" \ |
337 |
--libdir="${EPREFIX}/usr/$(get_libdir)" \ |
338 |
--shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
339 |
--mandir="${EPREFIX}/usr/share/man" \ |
340 |
--enable-shared \ |
341 |
--cc="$(tc-getCC)" \ |
342 |
--cxx="$(tc-getCXX)" \ |
343 |
--ar="$(tc-getAR)" \ |
344 |
--optflags="${CFLAGS}" \ |
345 |
--extra-cflags="${CFLAGS}" \ |
346 |
--extra-cxxflags="${CXXFLAGS}" \ |
347 |
$(use_enable static-libs static) \ |
348 |
"${myconf[@]}" |
349 |
echo "${@}" |
350 |
"${@}" || die |
351 |
} |
352 |
|
353 |
multilib_src_compile() { |
354 |
emake V=1 |
355 |
|
356 |
if multilib_is_native_abi; then |
357 |
for i in ${FFTOOLS} ; do |
358 |
if use fftools_${i} ; then |
359 |
emake V=1 tools/${i} |
360 |
fi |
361 |
done |
362 |
fi |
363 |
} |
364 |
|
365 |
multilib_src_install() { |
366 |
emake V=1 DESTDIR="${D}" install install-man |
367 |
|
368 |
if multilib_is_native_abi; then |
369 |
for i in ${FFTOOLS} ; do |
370 |
if use fftools_${i} ; then |
371 |
dobin tools/${i} |
372 |
fi |
373 |
done |
374 |
fi |
375 |
} |
376 |
|
377 |
multilib_src_install_all() { |
378 |
dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES |
379 |
use doc && dohtml -r doc/* |
380 |
if use examples ; then |
381 |
dodoc -r doc/examples |
382 |
docompress -x /usr/share/doc/${PF}/examples |
383 |
fi |
384 |
} |
385 |
|
386 |
multilib_src_test() { |
387 |
LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \ |
388 |
emake V=1 fate |
389 |
} |