1 |
aballier 14/07/05 13:27:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ffmpeg-0.10.14.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.756 media-video/ffmpeg/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.756&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.756&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.755&r2=1.756 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v |
20 |
retrieving revision 1.755 |
21 |
retrieving revision 1.756 |
22 |
diff -u -r1.755 -r1.756 |
23 |
--- ChangeLog 5 Jul 2014 13:16:45 -0000 1.755 |
24 |
+++ ChangeLog 5 Jul 2014 13:27:16 -0000 1.756 |
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.755 2014/07/05 13:16:45 aballier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.756 2014/07/05 13:27:16 aballier Exp $ |
30 |
+ |
31 |
+*ffmpeg-0.10.14 (05 Jul 2014) |
32 |
+ |
33 |
+ 05 Jul 2014; Alexis Ballier <aballier@g.o> +ffmpeg-0.10.14.ebuild: |
34 |
+ version bump |
35 |
|
36 |
*ffmpeg-1.2.7 (05 Jul 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 media-video/ffmpeg/ffmpeg-0.10.14.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-0.10.14.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-0.10.14.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ffmpeg-0.10.14.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-0.10.14.ebuild,v 1.1 2014/07/05 13:27:16 aballier Exp $ |
51 |
|
52 |
EAPI="5" |
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} multilib-minimal |
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.10" |
75 |
if [ "${PV#9999}" = "${PV}" ] ; then |
76 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
77 |
fi |
78 |
IUSE=" |
79 |
aac aacplus alsa amr bindist +bzip2 cdio celt cpudetection debug |
80 |
dirac doc +encode faac frei0r gnutls gsm +hardcoded-tables ieee1394 jack |
81 |
jpeg2k libass libv4l modplug mp3 +network openal openssl oss pic pulseaudio |
82 |
rtmp schroedinger sdl speex static-libs test theora threads |
83 |
truetype v4l vaapi vdpau vorbis vpx X x264 xvid +zlib |
84 |
" |
85 |
|
86 |
# String for CPU features in the useflag[:configure_option] form |
87 |
# if :configure_option isn't set, it will use 'useflag' as configure option |
88 |
CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext:mmx2 ssse3 vis neon" |
89 |
|
90 |
for i in ${CPU_FEATURES}; do |
91 |
IUSE="${IUSE} ${i%:*}" |
92 |
done |
93 |
|
94 |
DOCS="" |
95 |
|
96 |
RDEPEND=" |
97 |
alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
98 |
amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) |
99 |
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) |
100 |
cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) |
101 |
celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) |
102 |
dirac? ( >=media-video/dirac-1.0.2-r1[${MULTILIB_USEDEP}] ) |
103 |
encode? ( |
104 |
aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) |
105 |
aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] ) |
106 |
amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) |
107 |
faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) |
108 |
mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) |
109 |
theora? ( >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] ) |
110 |
vorbis? ( >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] ) |
111 |
x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) |
112 |
xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) |
113 |
) |
114 |
frei0r? ( media-plugins/frei0r-plugins[${MULTILIB_USEDEP}] ) |
115 |
gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) |
116 |
gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) |
117 |
ieee1394? ( >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] ) |
118 |
jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) |
119 |
jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) |
120 |
libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) |
121 |
libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) |
122 |
modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
123 |
openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) |
124 |
openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) |
125 |
pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
126 |
rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) |
127 |
schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) |
128 |
sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) |
129 |
speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) |
130 |
truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) |
131 |
vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) |
132 |
vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) |
133 |
vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) |
134 |
X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) |
135 |
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
136 |
!<media-video/ffmpeg-1.2 |
137 |
!<media-video/libav-9 |
138 |
abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r11 |
139 |
!app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" |
140 |
# !media-libs/libpostproc |
141 |
|
142 |
DEPEND="${RDEPEND} |
143 |
>=sys-devel/make-3.81 |
144 |
dirac? ( virtual/pkgconfig ) |
145 |
doc? ( app-text/texi2html ) |
146 |
gnutls? ( virtual/pkgconfig ) |
147 |
ieee1394? ( virtual/pkgconfig ) |
148 |
libv4l? ( virtual/pkgconfig ) |
149 |
mmx? ( dev-lang/yasm ) |
150 |
rtmp? ( virtual/pkgconfig ) |
151 |
schroedinger? ( virtual/pkgconfig ) |
152 |
test? ( net-misc/wget ) |
153 |
truetype? ( virtual/pkgconfig ) |
154 |
v4l? ( sys-kernel/linux-headers ) |
155 |
" |
156 |
# faac is license-incompatible with ffmpeg |
157 |
REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl ) |
158 |
libv4l? ( v4l ) |
159 |
test? ( encode zlib )" |
160 |
|
161 |
S=${WORKDIR}/${P/_/-} |
162 |
|
163 |
pkg_setup() { |
164 |
ewarn "This version is _terribly_ outdated with known security issues and" |
165 |
ewarn "bugs. It is provided only for binary compatibility." |
166 |
ewarn "Use at your own risks." |
167 |
} |
168 |
|
169 |
src_prepare() { |
170 |
if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot |
171 |
export revision=git-N-${FFMPEG_REVISION} |
172 |
fi |
173 |
epatch "${FILESDIR}/freiordl.patch" |
174 |
epatch "${FILESDIR}/flashtest.patch" |
175 |
|
176 |
if has_version dev-libs/libcdio-paranoia; then |
177 |
sed -i \ |
178 |
-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \ |
179 |
-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \ |
180 |
configure libavdevice/libcdio.c || die |
181 |
fi |
182 |
} |
183 |
|
184 |
multilib_src_configure() { |
185 |
local myconf="${EXTRA_FFMPEG_CONF}" |
186 |
# Set to --enable-version3 if (L)GPL-3 is required |
187 |
local version3="" |
188 |
|
189 |
# enabled by default |
190 |
for i in debug doc network vaapi vdpau zlib; do |
191 |
use ${i} || myconf="${myconf} --disable-${i}" |
192 |
done |
193 |
use bzip2 || myconf="${myconf} --disable-bzlib" |
194 |
|
195 |
use cpudetection && myconf="${myconf} --enable-runtime-cpudetect" |
196 |
use openssl && myconf="${myconf} --enable-openssl --enable-nonfree" |
197 |
for i in gnutls ; do |
198 |
use $i && myconf="${myconf} --enable-$i" |
199 |
done |
200 |
|
201 |
# Encoders |
202 |
if use encode |
203 |
then |
204 |
use mp3 && myconf="${myconf} --enable-libmp3lame" |
205 |
use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; } |
206 |
use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; } |
207 |
for i in theora vorbis x264 xvid; do |
208 |
use ${i} && myconf="${myconf} --enable-lib${i}" |
209 |
done |
210 |
use aacplus && myconf="${myconf} --enable-libaacplus --enable-nonfree" |
211 |
use faac && myconf="${myconf} --enable-libfaac --enable-nonfree" |
212 |
else |
213 |
myconf="${myconf} --disable-encoders" |
214 |
fi |
215 |
|
216 |
# libavdevice options |
217 |
use cdio && myconf="${myconf} --enable-libcdio" |
218 |
use ieee1394 && myconf="${myconf} --enable-libdc1394" |
219 |
use openal && myconf="${myconf} --enable-openal" |
220 |
# Indevs |
221 |
# v4l1 is gone since linux-headers-2.6.38 |
222 |
myconf="${myconf} --disable-indev=v4l" |
223 |
use v4l || myconf="${myconf} --disable-indev=v4l2" |
224 |
for i in alsa oss jack ; do |
225 |
use ${i} || myconf="${myconf} --disable-indev=${i}" |
226 |
done |
227 |
use X && myconf="${myconf} --enable-x11grab" |
228 |
use pulseaudio && myconf="${myconf} --enable-libpulse" |
229 |
use libv4l && myconf="${myconf} --enable-libv4l2" |
230 |
# Outdevs |
231 |
for i in alsa oss sdl ; do |
232 |
use ${i} || myconf="${myconf} --disable-outdev=${i}" |
233 |
done |
234 |
# libavfilter options |
235 |
use frei0r && myconf="${myconf} --enable-frei0r" |
236 |
use truetype && myconf="${myconf} --enable-libfreetype" |
237 |
use libass && myconf="${myconf} --enable-libass" |
238 |
|
239 |
# Threads; we only support pthread for now but ffmpeg supports more |
240 |
use threads && myconf="${myconf} --enable-pthreads" |
241 |
|
242 |
# Decoders |
243 |
use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; } |
244 |
for i in celt gsm dirac modplug rtmp schroedinger speex vpx; do |
245 |
use ${i} && myconf="${myconf} --enable-lib${i}" |
246 |
done |
247 |
use jpeg2k && myconf="${myconf} --enable-libopenjpeg" |
248 |
|
249 |
# CPU features |
250 |
for i in ${CPU_FEATURES}; do |
251 |
use ${i%:*} || myconf="${myconf} --disable-${i#*:}" |
252 |
done |
253 |
if use pic ; then |
254 |
myconf="${myconf} --enable-pic" |
255 |
# disable asm code if PIC is required |
256 |
# as the provided asm decidedly is not PIC for x86. |
257 |
[[ ${ABI} == x86* ]] && myconf="${myconf} --disable-asm" |
258 |
fi |
259 |
[[ ${ABI} == "x32" ]] && myconf+=" --disable-asm" #427004 |
260 |
|
261 |
# Try to get cpu type based on CFLAGS. |
262 |
# Bug #172723 |
263 |
# We need to do this so that features of that CPU will be better used |
264 |
# If they contain an unknown CPU it will not hurt since ffmpeg's configure |
265 |
# will just ignore it. |
266 |
for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do |
267 |
[ "${i}" = "native" ] && i="host" # bug #273421 |
268 |
myconf="${myconf} --cpu=${i}" |
269 |
break |
270 |
done |
271 |
|
272 |
# Mandatory configuration |
273 |
myconf=" |
274 |
--enable-gpl |
275 |
${version3} |
276 |
--enable-avfilter |
277 |
--disable-stripping |
278 |
${myconf}" |
279 |
|
280 |
# cross compile support |
281 |
if tc-is-cross-compiler ; then |
282 |
myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-" |
283 |
case ${CHOST} in |
284 |
*freebsd*) |
285 |
myconf="${myconf} --target-os=freebsd" |
286 |
;; |
287 |
mingw32*) |
288 |
myconf="${myconf} --target-os=mingw32" |
289 |
;; |
290 |
*linux*) |
291 |
myconf="${myconf} --target-os=linux" |
292 |
;; |
293 |
esac |
294 |
fi |
295 |
|
296 |
# Misc stuff |
297 |
use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables" |
298 |
|
299 |
"${S}"/configure \ |
300 |
--prefix="${EPREFIX}/usr" \ |
301 |
--libdir="${EPREFIX}/usr/$(get_libdir)" \ |
302 |
--shlibdir="${EPREFIX}/usr/$(get_libdir)" \ |
303 |
--mandir="${EPREFIX}/usr/share/man" \ |
304 |
--enable-shared \ |
305 |
--cc="$(tc-getCC)" \ |
306 |
--cxx="$(tc-getCXX)" \ |
307 |
--ar="$(tc-getAR)" \ |
308 |
--optflags="${CFLAGS}" \ |
309 |
--extra-cflags="${CFLAGS}" \ |
310 |
--extra-cxxflags="${CXXFLAGS}" \ |
311 |
--disable-static \ |
312 |
--disable-{ffplay,ffmpeg,ffprobe,ffserver} \ |
313 |
--disable-{swresample,postproc,swscale,avdevice} \ |
314 |
${myconf} || die |
315 |
} |
316 |
|
317 |
multilib_src_install() { |
318 |
emake DESTDIR="${D}" install-libs |
319 |
rm -f "${ED}"/usr/$(get_libdir)/*.so |
320 |
} |