summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2012-05-13 19:48:17 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2012-05-13 19:48:17 +0000
commita855243a0c3be6195663a045ae91bdd20f9854da (patch)
treee41141afdc2cf1bd1490012f07a782c74a7438d7 /media-video
parentkeyword ~amd64-fbsd (diff)
downloadhistorical-a855243a0c3be6195663a045ae91bdd20f9854da.tar.gz
historical-a855243a0c3be6195663a045ae91bdd20f9854da.tar.bz2
historical-a855243a0c3be6195663a045ae91bdd20f9854da.zip
Update live ebuild, cleanup various parts. Line up some changes from ffmpeg.
Package-Manager: portage-2.2.0_alpha104/cvs/Linux x86_64
Diffstat (limited to 'media-video')
-rw-r--r--media-video/libav/ChangeLog6
-rw-r--r--media-video/libav/Manifest32
-rw-r--r--media-video/libav/libav-9999.ebuild111
-rw-r--r--media-video/libav/metadata.xml15
4 files changed, 100 insertions, 64 deletions
diff --git a/media-video/libav/ChangeLog b/media-video/libav/ChangeLog
index c63baf00991d..c1cf2d3b4d44 100644
--- a/media-video/libav/ChangeLog
+++ b/media-video/libav/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-video/libav
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.75 2012/05/13 11:03:52 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.76 2012/05/13 19:48:17 scarabeus Exp $
+
+ 13 May 2012; Tomáš Chvátal <scarabeus@gentoo.org> libav-9999.ebuild,
+ metadata.xml:
+ Update live ebuild, cleanup various parts. Line up some changes from ffmpeg.
13 May 2012; Tomáš Chvátal <scarabeus@gentoo.org> -libav-0.8.1.ebuild:
Delete security affected version.
diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest
index f54f1256ee3d..ed529b1af113 100644
--- a/media-video/libav/Manifest
+++ b/media-video/libav/Manifest
@@ -4,23 +4,23 @@ Hash: SHA1
DIST libav-0.8.2.tar.xz 3807340 RMD160 599d8c385bf0ca25a053188fed4488508b501e50 SHA1 99e10a7132636652cf45ee3fc85ce36ff5818ce5 SHA256 96df20327396937add9df2693bba8ec109ef3eda7251065ddcaa86a8d9f3a7df
EBUILD libav-0.8.2.ebuild 8958 RMD160 1a6eb0f5e18c5cf1d8618a9f392503b388419eb2 SHA1 1b8f17204a79c951468c614110917d9483762738 SHA256 60080ac8b61e776e1cec27a28b3e9768d3817511581c3dbe4bb38badde059206
EBUILD libav-0.8.9999.ebuild 8965 RMD160 ed82c4eaae98188234b2210239cf9c47d43bb864 SHA1 3f8fc5e004f3b73c7de1935fef806d2923cdb73d SHA256 47ef34a662df5fd89999515fc406a974fe1468b030aead82ebfebcac3231afe8
-EBUILD libav-9999.ebuild 8979 RMD160 43be1cf02531895532d4bafdb833e7f0a8708c28 SHA1 22308c991255ca8c47e6182f2d64e2e90f68d801 SHA256 7019401eec15354d15c4efdd4cb154c251eb3d2f601b9398f071e40c4fc85d00
-MISC ChangeLog 11773 RMD160 335219d6375901ce5e87e25b5abb4f7efe834a5f SHA1 a998a553e0feeedf8d8f894dc67d9814b916ee0f SHA256 1802989549eface48815ba70f99254b9df8d0c1093ebf4350249b3b92690338a
-MISC metadata.xml 3016 RMD160 fc42812761795898df2b16a5237cb17d25e7eae0 SHA1 e3c253ef2c720e92c35a835fe13ca2be05f2a5b0 SHA256 0c095864751b4928ade42eeb6b1066ddcaa35c86c2e4f7620c76e7c7792c9047
+EBUILD libav-9999.ebuild 9722 RMD160 a339f4352dba6ffbf33a81ac75793cc6052f3699 SHA1 853b78844380e4dda99978c3eea71a464a90ba56 SHA256 46f09067d35c1d548fb3e7a97b7574d95a1a5ad9e3ba9faf53b8d18d035997c0
+MISC ChangeLog 11943 RMD160 e45b78be305cfe96eac60ef0d864802125d16570 SHA1 ea12ed71e574e35d4e9ee9c6511e1201fa76daac SHA256 3d895bc53c5bf2c403d94c63b724b140bc6904595935399fb5878839d25ce400
+MISC metadata.xml 3446 RMD160 043dba56bc894840d2cf09f38b81c6d744dfff93 SHA1 2bd84a3116290c2adf3b325decbb8224e71bb908 SHA256 3a02a24beb66adbaf7d91639fb56ea0bff7253656461d1aa2aeb53cf839272bf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iQIcBAEBAgAGBQJPr5WZAAoJEOSiRoyO7jvo/ccP/0BsYGnUWy0sOtv5gof8di5M
-rbqR5JuQCwXQnrvXP4W52Uxnsejz6syYDDFMXLP3QeEy7pcOmYMe1ySDHj7IbcxK
-CgxJZzmIJFbP0EmXyxyFTl4j8Shdrg7ghSHrby6ewcBu29PYVKOvNSC/H1FkMn0t
-MltAmpHawHWKk/KLoWjK3/JKCrC14XaFigWsETc+z8ImPKPM6C8DKAdvHrn5ctKd
-U5y2eFRmtF1QXhnkxwguwPcDECnsXHm8zZC8TAMiDgxRmaP0Mo2Ff3u46NHP11N/
-64mhNFw54tHYqL0tyE+LXJmrmeoDFSv6QEWBMKyR6IebOSKQ7H8NdFXuJfGUoLrN
-82pHR/rzsu3DjflXHQPuqMy8bqYQTkzK2ZdaDCbA5tGbXT5DqCWrHh/DI3E4Jkkb
-CF72V1EmVtDcf3ZMqY4B96lCU+FlxskaRq6PU6MuWj1fJ+FCHSAohtdShkthqzLH
-1edL3pJfwAkJHglvBbRgEQ28h2mrdV3b00jQmmpoyohkE/Mp2L48BG151Gcd/0nj
-TSefyMTqBSHlUgUT2yEv+YY3m9PiNuPow6Q9f+DFH+uIag68JOtShzmdfXRhB1YG
-rw+WHetJ8A9tRXrGRnfDdHGsxtyhDwiWaifRmSduncEh0VPFmR02WSOXg53uQe4y
-5kykEtzXmQjy2VFfmbLQ
-=NJCp
+iQIcBAEBAgAGBQJPsBASAAoJEOSiRoyO7jvoKfgP/06D3U0cnW4daBqKwCP66f06
+unp2yL1GE8XzAITzh9XWSQXCFChAk0RBLjbOlTvs05j1Jausy6ei8Ubficglp6LA
+YzFVxwSVsBEotS0d4Sch1kRUrnAD7kkoeT/GZBqCHw9NsRz/gGaAvN3lPdaV1jV2
+pL6hA6K1K0z8ZorWhOLbWYoIzZC4OEbFFdPithx9QyhnYHwCue47YtsXqp2ABqZC
+Dr6IhW5rdfwRW8OqylYM9dtEJpaajb4a2+pHfHGPC+jmZwTW6dtDkDJdeNiQOe/G
+0rBR14TVTmktVxeF5jbK4rY5jQ1gy4m+SUNfHnX+84htVq4m5DZWeBsmYesOSnCq
+OPRbWtWcQgiypGGQLAuHtu0Sn+jEKcaqLp6l3D6G/X080aLIWwnYGEsCGYVLdxMA
+XQcWcHVxKATanNq4DffnEj2uEiG0RVpgGicxFTtH3535AktxnkLcdRLxG9YgNmbQ
+Fx1dHQ/cqewgUkCPXtqdShxfXK+HwJjNUq0ojHPgGU7Ao2kLFCGoHNNEevTT4asV
++XHcXIjYp+UGiZPY8HYXNSxU5PT2feGlDouaHFPH8SgxZBR0+O/KtEcnzdks4Vvu
+yB4PwHHT6f58KM9inmO+9orOKFCtN7/dAhYydhUBimBg9H5jxV+RYgeknQKU+FyV
+4qNjAxhzWVQR5q2iJMVa
+=1EPG
-----END PGP SIGNATURE-----
diff --git a/media-video/libav/libav-9999.ebuild b/media-video/libav/libav-9999.ebuild
index c0eead188780..1458120d4d3a 100644
--- a/media-video/libav/libav-9999.ebuild
+++ b/media-video/libav/libav-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-9999.ebuild,v 1.38 2012/05/05 08:58:53 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-9999.ebuild,v 1.39 2012/05/13 19:48:17 scarabeus Exp $
EAPI=4
@@ -27,13 +27,16 @@ SLOT="0"
[[ ${PV} == *9999 ]] || KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64
~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
~x64-solaris ~x86-solaris"
-IUSE="+3dnow +3dnowext aac alsa altivec amr bindist +bzip2 cdio cpudetection
- custom-cflags debug dirac doc +encode faac truetype frei0r +gpl gsm
- +hardcoded-tables ieee1394 jack jpeg2k +mmx +mmxext mp3 network openssl
- oss pic pulseaudio rtmp schroedinger sdl speex ssl +ssse3 static-libs
- test theora threads tools v4l vaapi vdpau vorbis vpx X x264 xvid +zlib"
+IUSE=" aac aacplus alsa ass amr bindist bluray +bzip2 cdio celt cpudetection
+ custom-cflags debug doc +encode faac fontconfig frei0r +gpl gsm
+ +hardcoded-tables ieee1394 jack jpeg2k libv4l modplug mp3 network
+ openal openssl oss pic pulseaudio rtmp schroedinger sdl speex ssl
+ static-libs test theora threads tools truetype v4l vaapi vdpau vorbis
+ vpx X x264 xvid +zlib"
-CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext:mmx2 ssse3 vis neon"
+# String for CPU features in the useflag[:configure_option] form
+# if :configure_option isn't set, it will use 'useflag' as configure option
+CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext:mmx2 neon ssse3 vis"
for i in ${CPU_FEATURES}; do
IUSE="${IUSE} ${i%:*}"
@@ -43,46 +46,70 @@ RDEPEND="
!media-video/ffmpeg
alsa? ( media-libs/alsa-lib )
amr? ( media-libs/opencore-amr )
+ ass? ( media-libs/libass )
+ bluray? ( media-libs/libbluray )
bzip2? ( app-arch/bzip2 )
cdio? ( dev-libs/libcdio )
- dirac? ( media-video/dirac )
+ celt? ( >=media-libs/celt-0.11.1 )
encode? (
aac? ( media-libs/vo-aacenc )
+ aacplus? ( media-libs/libaacplus )
amr? ( media-libs/vo-amrwbenc )
faac? ( media-libs/faac )
mp3? ( >=media-sound/lame-3.98.3 )
- theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
+ theora? (
+ >=media-libs/libtheora-1.1.1[encode]
+ media-libs/libogg
+ )
vorbis? ( media-libs/libvorbis media-libs/libogg )
x264? ( >=media-libs/x264-0.0.20111017 )
xvid? ( >=media-libs/xvid-1.1.0 )
)
- truetype? ( media-libs/freetype )
+ fontconfig? ( media-libs/fontconfig )
frei0r? ( media-plugins/frei0r-plugins )
gsm? ( >=media-sound/gsm-1.0.12-r1 )
- ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
+ ieee1394? (
+ media-libs/libdc1394
+ sys-libs/libraw1394
+ )
jack? ( media-sound/jack-audio-connection-kit )
jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
+ libv4l? ( media-libs/libv4l )
+ modplug? ( media-libs/libmodplug )
+ openal? ( >=media-libs/openal-1.1 )
+ pulseaudio? ( media-sound/pulseaudio )
rtmp? ( >=media-video/rtmpdump-2.2f )
- ssl? ( openssl? ( dev-libs/openssl )
- !openssl? ( net-libs/gnutls ) )
+ ssl? (
+ openssl? ( dev-libs/openssl )
+ !openssl? ( net-libs/gnutls )
+ )
sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
schroedinger? ( media-libs/schroedinger )
speex? ( >=media-libs/speex-1.2_beta3 )
+ truetype? ( media-libs/freetype:2 )
vaapi? ( x11-libs/libva )
vdpau? ( x11-libs/libvdpau )
vpx? ( >=media-libs/libvpx-0.9.6 )
- X? ( x11-libs/libX11 x11-libs/libXext )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXfixes
+ )
zlib? ( sys-libs/zlib )
"
DEPEND="${RDEPEND}
>=sys-devel/make-3.81
- dirac? ( virtual/pkgconfig )
doc? ( app-text/texi2html )
+ fontconfig? ( virtual/pkgconfig )
+ ieee1394? ( virtual/pkgconfig )
+ libv4l? ( virtual/pkgconfig )
mmx? ( dev-lang/yasm )
rtmp? ( virtual/pkgconfig )
schroedinger? ( virtual/pkgconfig )
+ ssl? ( virtual/pkgconfig )
test? ( net-misc/wget )
+ truetype? ( virtual/pkgconfig )
v4l? ( sys-kernel/linux-headers )
"
@@ -91,11 +118,11 @@ DEPEND="${RDEPEND}
# faac and aac are concurent implementations
# amr and aac require at least lgpl3
# x264 requires gpl2
-REQUIRED_USE="bindist? ( !faac !openssl )
- rtmp? ( network )
- amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl )"
-
-RESTRICT="test"
+REQUIRED_USE="bindist? ( !aacplus !faac !openssl )
+ rtmp? ( network )
+ amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl )
+ test? ( encode zlib )
+"
src_prepare() {
# if we have snapshot then we need to hardcode the version
@@ -128,7 +155,7 @@ src_configure() {
if use ssl; then
use openssl && myconf+=" --enable-openssl --enable-nonfree" \
- || myconf+=" --enable-gnutls"
+ || myconf+=" --enable-gnutls"
fi
use custom-cflags && myconf+=" --disable-optimizations"
@@ -144,11 +171,12 @@ src_configure() {
# Encoders
if use encode; then
+ use aacplus && myconf+=" --enable-nonfree"
+ use faac && myconf+=" --enable-nonfree"
use mp3 && myconf+=" --enable-libmp3lame"
use amr && myconf+=" --enable-libvo-amrwbenc"
- use faac && myconf+=" --enable-libfaac --enable-nonfree"
use aac && myconf+=" --enable-libvo-aacenc"
- uses="theora vorbis x264 xvid"
+ uses="aacplus faac theora vorbis x264 xvid"
for i in ${uses}; do
use ${i} && myconf+=" --enable-lib${i}"
done
@@ -159,7 +187,9 @@ src_configure() {
# libavdevice options
use cdio && myconf+=" --enable-libcdio"
use ieee1394 && myconf+=" --enable-libdc1394"
+ use openal && myconf+=" --enable-openal"
use pulseaudio && myconf+=" --enable-libpulse"
+
# Indevs
# v4l1 is gone since linux-headers-2.6.38
myconf+=" --disable-indev=v4l"
@@ -168,20 +198,24 @@ src_configure() {
use ${i} || myconf+=" --disable-indev=${i}"
done
use X && myconf+=" --enable-x11grab"
+ use libv4l && myconf="${myconf} --enable-libv4l2"
# Outdevs
for i in alsa oss ; do
use ${i} || myconf+=" --disable-outdev=${i}"
done
# libavfilter options
- use frei0r && myconf+=" --enable-frei0r"
+ use ass && myconf+=" --enable-libass"
use truetype && myconf+=" --enable-libfreetype"
+ for i in frei0r fontconfig ; do
+ use ${i} && myconf+=" --enable-${i}"
+ done
# Threads; we only support pthread for now but ffmpeg supports more
use threads && myconf+=" --enable-pthreads"
# Decoders
use amr && myconf+=" --enable-libopencore-amrwb --enable-libopencore-amrnb"
- uses="gsm dirac rtmp schroedinger speex vpx"
+ uses="bluray celt gsm modplug rtmp schroedinger speex vpx"
for i in ${uses}; do
use ${i} && myconf+=" --enable-lib${i}"
done
@@ -252,22 +286,25 @@ src_configure() {
cd "${S}"
./configure \
- --prefix="$EPREFIX"/usr \
- --libdir="$EPREFIX"/usr/$(get_libdir) \
- --shlibdir="$EPREFIX"/usr/$(get_libdir) \
- --mandir="$EPREFIX"/usr/share/man \
+ --prefix="${EPREFIX}"/usr \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --shlibdir="${EPREFIX}"/usr/$(get_libdir) \
+ --mandir="${EPREFIX}"/usr/share/man \
--enable-shared \
--cc="$(tc-getCC)" \
+ --ar="$(tc-getAR)" \
+ --optflags="${CFLAGS}" \
+ --extra-cflags="${CFLAGS}" \
$(use_enable static-libs static) \
${myconf} || die
}
src_compile() {
+ local i
+
emake
if use tools; then
- tc-export CC
- local i
for i in ${TOOLS}; do
emake tools/${i}
done
@@ -301,14 +338,6 @@ pkg_postinst() {
}
src_test() {
- local i tests
- if use encode; then
- tests="codectest lavftest seektest"
- for i in ${tests}; do
- LD_LIBRARY_PATH="${S}/libavcore:${S}/libpostproc:${S}/libswscale:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
- emake ${i}
- done
- else
- ewarn "Tests fail without USE=encode, skipping"
- fi
+ LD_LIBRARY_PATH="${S}/libavcore:${S}/libpostproc:${S}/libswscale:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
+ emake -j1 fate
}
diff --git a/media-video/libav/metadata.xml b/media-video/libav/metadata.xml
index 9a9e1188b56b..85b256372e8f 100644
--- a/media-video/libav/metadata.xml
+++ b/media-video/libav/metadata.xml
@@ -11,21 +11,24 @@
instruction set, present in modern AMD CPUs. (Check for
3dnowext in /proc/cpuinfo to know whether your CPU supports it).
</flag>
+ <flag name="aac">Use external vo-aacenc library for AAC encoding</flag>
+ <flag name="aacplus">AAC+ encoding via <pkg>media-libs/libaacplus</pkg>.</flag>
<flag name="amr">Enable Adaptive Multi-Rate Audio support</flag>
+ <flag name="ass">Enables <pkg>media-libs/libass</pkg> based subtitle renderer.</flag>
<flag name="avx">Adds support for Advanced Vector Extensions instructions (Intel Sandy Bridge, AMD Bulldozer and later chips)</flag>
+ <flag name="bluray">Enable playback of Blu-ray filesystems</flag>
<flag name="cdio">Enable audio CD grabbing with <pkg>dev-libs/libcdio</pkg>.</flag>
+ <flag name="celt">Adds Xiph CELT audio decoding support via <pkg>media-libs/celt</pkg></flag>
<flag name="cpudetection">Enables runtime CPU detection (useful for bindist, compatibility on other CPUs).</flag>
<flag name="dirac">Enable Dirac video support (an advanced royalty-free video compression format) via the reference library: dirac.</flag>
- <flag name="faac">Use external faac library for AAC encoding
- (notice: the resulting binaries are unredistributable).</flag>
- <flag name="aac">Use external vo-aacenc library for AAC encoding</flag>
+ <flag name="faac">Use external faac library for AAC encoding</flag>
<flag name="frei0r">Enable frei0r wrapping in libavfilter</flag>
- <flag name="gpl">Build all GPL licensed code. Without this flag set the
- package is build under LGPL license.</flag>
- <flag name="openssl">Prefer <pkg>dev-libs/openssl</pkg> over <pkg>net-libs/gnutls</pkg> to provide SSL/TLS support (notice: the resulting binaries are unredistributable).</flag>
+ <flag name="gpl">Build all GPL licensed code. Without this flag set the package is build under LGPL license.</flag>
<flag name="hardcoded-tables">Use pre-calculated tables rather than calculating them on the fly.</flag>
+ <flag name="libv4l">Uses <pkg>media-libs/libv4l</pkg> for video4linux instead of direct calls. Adds support for more devices via the userspace library.</flag>
<flag name="mmxext">Enable mmx2 support.</flag>
<flag name="network">Enable network streaming support.</flag>
+ <flag name="openssl">Prefer <pkg>dev-libs/openssl</pkg> over <pkg>net-libs/gnutls</pkg> to provide SSL/TLS support (notice: the resulting binaries are unredistributable).</flag>
<flag name="pulseaudio">Enable pulseaudio input support.</flag>
<flag name="pic">Force shared libraries to be built as PIC (this is slower).</flag>
<flag name="qt-faststart">Build and install qt-faststart application.</flag>