New beta version
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 3 Jan 2012 03:41:40 +0000 (03:41 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 3 Jan 2012 03:41:40 +0000 (03:41 +0000)
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64

media-video/libav/ChangeLog
media-video/libav/Manifest
media-video/libav/libav-0.8_beta1.ebuild [new file with mode: 0644]

index e5dfb6b1577f9bbe1bf4ef2839fbe7462af80ec0..926b54718c648d482ab6b7695115aa230dd9cde1 100644 (file)
@@ -1,6 +1,11 @@
 # 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.41 2012/01/02 13:46:20 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.42 2012/01/03 03:41:40 lu_zero Exp $
+
+*libav-0.8_beta1 (02 Jan 2012)
+
+  02 Jan 2012; Luca Barbato <lu_zero@gentoo.org> +libav-0.8_beta1.ebuild:
+  New beta version
 
   02 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> metadata.xml:
   USE description for flag "neon" is in use.desc now.
index bacab48f92848a1d737e5af8a4e0f3ba4f038f7d..aef2e079bcee7c19e5e8a77fe4d856ff0f319d38 100644 (file)
@@ -1,10 +1,11 @@
 -----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
 
 AUX 0.6.2-fix_enable_hardcoded_tables.patch 1387 RMD160 3ccd0be1f6612ad45dcd78dee17817cf03bcda87 SHA1 13d1e51c17c25ba9adfb9d878334343746f917e0 SHA256 2e72e53be9df93128fc75ad4adfa9208d31f496c7bb9924c8a2e14ee2cb8d9f6
 AUX 0.6.2-float_arrays.patch 1611 RMD160 960188d97261729526187c53a281a03c31a6a95a SHA1 92bb3062933cd9540eb8b05efc6cbebb38e94a0c SHA256 311e255309dfd6a045e38303d80b534aec9444cfe314d0b4d585688075c7dd7d
 DIST libav-0.6.2.tar.bz2 3639862 RMD160 fbdee25614940253e018e42a633da579704146fd SHA1 b79dc56a08f4ef07b41d1a78b2251f21fde8b81d SHA256 eb13f20bfa09664559e81ff9691cebcb77a763320ddf63c47a402351409697af
 DIST libav-0.7.2.tar.xz 3573280 RMD160 5f41d42375e66e681ac99b0183825ddc4f09b70d SHA1 938c52f122030a797e9c9ba5cab6a7cb812cd9d7 SHA256 450999ed097b0814247f44be1321c4997aee49d56cab6636b0a7257e13ba2729
+DIST libav-0.8_beta1.tar.xz 3774020 RMD160 ddff7504a75eaec36f19ebf21a5d359c48416fb2 SHA1 48c789b097d9af6c5716ed2dda17fbe1b37ecb7d SHA256 7f526fe2956c58ae642dd799bfbd859fec8a6459dfa28d53a1658ef0622005b5
 DIST libav-0.8_pre20110818.tar.xz 3588912 RMD160 ad289ef01a762fe1141a4a6db647006f98b82e98 SHA1 8d669f211edb11ca9504dc56fff3f2292b5da692 SHA256 00612c08a723cfa9885335e45db6c0083efd17229cbffeb67c5849443617f68d
 DIST libav-0.8_pre20111116.tar.xz 3672592 RMD160 dd5301bdd32e3d28472da7a4d260816bccfed312 SHA1 e1ad9963a36a602adb6dbfc3f7089a1de421da3e SHA256 fc172f67a4ba2ebacac0d57fa98e3e960be3e99262326721f3e55f3210d8c77b
 DIST libav-0.8_pre20111222.tar.xz 3751488 RMD160 4a2f1de7be0ab4c211c2a24055af97a5c0902613 SHA1 46b0d009ffa199bca247e0aa7f58a42519de5c2f SHA256 c397cd50e31af87e49bd5757b138cfdb50b8664f4a083bd05552d36b86aee615
@@ -12,20 +13,17 @@ EBUILD libav-0.6.2.ebuild 7601 RMD160 8b2329b0cfd64a38f2e72885773d6b18688e5f5a S
 EBUILD libav-0.6.9999.ebuild 7550 RMD160 6672751ade7f462a9134c08e44188879067d043e SHA1 86380647dbeb7c60c98badf9b5b3b8432598fe6e SHA256 28971104a9a4974163372f8ac60de0cb888c9834cb34d5954d221fca78200b9f
 EBUILD libav-0.7.2.ebuild 7996 RMD160 81b96e3ca6176f648ac34630f21977508ce41de4 SHA1 f7bdeb001903628a815cadd900d58dbf0e378db3 SHA256 cf238120e21b69bb6519ccba0984c542778cb756d9e2e8edf27c2853a25e9aff
 EBUILD libav-0.7.9999.ebuild 7946 RMD160 24ff053d192305c3ba9ececf6d09c6f21404637e SHA1 7de4f420d1ef49f2afca974cfc203dca32c7ec2a SHA256 df71abb32ba6fa7861f7d6b7bb623488f32fec628fe9b5d4652dc72b34887395
+EBUILD libav-0.8_beta1.ebuild 8969 RMD160 a2fae288b9eab9634e118bf9043e0da41182508c SHA1 bcf459f53e7b805fe1f8e8e0c21e8f8ec90e5105 SHA256 1174a6a2f61eca0fa64cb2c4c2d71a17481b8ea92b21357bea21813b3b4410a2
 EBUILD libav-0.8_pre20110818.ebuild 8362 RMD160 d85fee5ec8c1cd08449f9be2b22ccc961e6313ad SHA1 bf0859b5a7f9d0df163a4d9ec38b2494d082d329 SHA256 78390689a1a395a687f851de948db01ec559f755cf09b2a2733b3853e1496224
 EBUILD libav-0.8_pre20111116.ebuild 8975 RMD160 97bcdfd5b96ba70228f4a81fc21dc9cd15c5b4cf SHA1 6abcd889bf03caf5f65a75a010e38d45805999c6 SHA256 e6670215774617ba8a39ceabc38f6c5bffea3ce5fb48b4fd5d51a43393981095
 EBUILD libav-0.8_pre20111222.ebuild 8979 RMD160 fc889694924ed543248e5f80a64196a81b79c8e3 SHA1 250698887b2c579c52cd6c458b0acf2c74511d2e SHA256 2a335cd5b73f7e81e8d6d79ff9ca2cd367f0e2c99c25bf6a2142fb0dbb7c03fa
 EBUILD libav-9999.ebuild 8965 RMD160 34c0d0377d8c4c60d94a858bf6d2c7a26c48232f SHA1 2795a34e7712ecf89efc07552626598eb1bade55 SHA256 376a370b3b369e4f7821581d9625496aa35ef2f50492513312614bee59c1f4e8
-MISC ChangeLog 6537 RMD160 aef19e13adfc157da67c4cf26f4ae787cf1676a4 SHA1 a12b28d14976a4df41e583e95eae7b427e189d0f SHA256 1155737d048cbef128488a05f6db8644211972ea41b159f783ec76e3b3953dc7
+MISC ChangeLog 6661 RMD160 4c047c62509f95e5a3693fc52ad4037099f54530 SHA1 c3f96737e5e2081aa81a9044744103c4cbedf7db SHA256 df1aab9e1f39def468546a1d0637d02c15c406f964d843eca26e92a914a7dbdb
 MISC metadata.xml 2904 RMD160 d3635d2f979c63f22eadd94ea30f1923e6f4f03b SHA1 5f8dc5b79546cb7554aa89c55bbb55aceabd0d15 SHA256 d85a42bbac6df6bb7d12e2a2820c854353e0eecb9bc3ba4725e847eaf92e7130
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iQEcBAEBAgAGBQJPAbTBAAoJEEdUh39IaPFNP/sIAIDX7fY+FLQvy4YNolwb3DA4
-8G+fNW476UiBQLq4+NbbL4t5gHZOrA7YZWDyB/TuQNeFD5BDDFieQcEnRx9bz4nN
-oDgirwwicxkqtI17QiNC2dOoF6JzOgh4k9AXOCEjdkiHy2oTW0UImVZvB6DBX+ks
-lCj7MCm5BAkrQI6Bjk03EvTDUhv30Y8OkAGjW8ZxtCu5t5pADQLOihTJc2advl1y
-sgR4EzvLUCT5hHs5pkh3qSrFALPXitP/5vK9GGUNaZeclclnegmtFQwQNsDzgtkf
-WIt9sO2gY/Rq+KDAv9I27K4FDaP3HwMFXgUd3euIQeJCrGR8NjDOjP7O/2GIzMc=
-=aYz8
+iF4EAREIAAYFAk8CeQAACgkQYpJnKVbCxczJIAD8C4xSC6FmHYORV8BapNRYQP6T
+g2a+6AMWCvBfUu7gjsIBAI3emq6RLzMjldoJDZk58Q5xyZ56coQYFn0gWAR4fylc
+=pIrI
 -----END PGP SIGNATURE-----
diff --git a/media-video/libav/libav-0.8_beta1.ebuild b/media-video/libav/libav-0.8_beta1.ebuild
new file mode 100644 (file)
index 0000000..6ee1941
--- /dev/null
@@ -0,0 +1,309 @@
+# 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-0.8_beta1.ebuild,v 1.1 2012/01/03 03:41:40 lu_zero Exp $
+
+EAPI=4
+
+if [[ ${PV} == *9999 ]] ; then
+       SCM="git-2"
+       EGIT_REPO_URI="git://git.libav.org/libav.git"
+       [[ ${PV%9999} != "" ]] && EGIT_BRANCH="release/${PV%.9999}"
+fi
+
+inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
+
+DESCRIPTION="Complete solution to record, convert and stream audio and video."
+HOMEPAGE="http://libav.org/"
+if [[ ${PV} == *9999 ]] ; then
+       SRC_URI=""
+elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
+       SRC_URI="http://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz"
+else # Official release
+       SRC_URI="http://${PN}.org/releases/${P}.tar.xz"
+fi
+
+LICENSE="LGPL-2 gpl? ( GPL-3 )"
+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 +qt-faststart rtmp schroedinger sdl speex ssl +ssse3
+         static-libs test theora threads v4l vaapi vdpau vorbis vpx X x264 xvid
+         +zlib"
+
+VIDEO_CARDS="nvidia"
+for x in ${VIDEO_CARDS}; do
+       IUSE="${IUSE} video_cards_${x}"
+done
+
+CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext:mmx2 ssse3 vis neon iwmmxt"
+
+for i in ${CPU_FEATURES}; do
+       IUSE="${IUSE} ${i%:*}"
+done
+
+RDEPEND="
+       !media-video/ffmpeg
+       alsa? ( media-libs/alsa-lib )
+       amr? ( media-libs/opencore-amr )
+       bzip2? ( app-arch/bzip2 )
+       cdio? ( dev-libs/libcdio )
+       dirac? ( media-video/dirac )
+       encode? (
+               aac? ( media-libs/vo-aacenc )
+               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 )
+               vorbis? ( media-libs/libvorbis media-libs/libogg )
+               x264? ( >=media-libs/x264-0.0.20110426 )
+               xvid? ( >=media-libs/xvid-1.1.0 )
+       )
+       truetype? ( media-libs/freetype )
+       frei0r? ( media-plugins/frei0r-plugins )
+       gsm? ( >=media-sound/gsm-1.0.12-r1 )
+       ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
+       jack? ( media-sound/jack-audio-connection-kit )
+       jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
+       rtmp? ( >=media-video/rtmpdump-2.2f )
+       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 )
+       vaapi? ( x11-libs/libva )
+       video_cards_nvidia? ( vdpau? ( x11-libs/libvdpau ) )
+       vpx? ( >=media-libs/libvpx-0.9.6 )
+       X? ( x11-libs/libX11 x11-libs/libXext )
+       zlib? ( sys-libs/zlib )
+"
+
+DEPEND="${RDEPEND}
+       >=sys-devel/make-3.81
+       dirac? ( dev-util/pkgconfig )
+       doc? ( app-text/texi2html )
+       mmx? ( dev-lang/yasm )
+       rtmp? ( dev-util/pkgconfig )
+       schroedinger? ( dev-util/pkgconfig )
+       test? ( net-misc/wget )
+       v4l? ( sys-kernel/linux-headers )
+"
+
+# faac can't be binary distributed
+# openssl support marked as nonfree
+# faac and aac are concurent implementations
+# amr and aac require at least lgpl3
+REQUIRED_USE="bindist? ( !faac !openssl )
+       amr? ( gpl ) aac? ( gpl )"
+
+RESTRICT="test"
+
+src_prepare() {
+       # if we have snapshot then we need to hardcode the version
+       if [[ ${PV%_p*} != ${PV} ]]; then
+               sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die
+       fi
+}
+
+src_configure() {
+       local myconf="${EXTRA_FFMPEG_CONF}"
+       local uses i
+
+       myconf="
+               $(use_enable gpl)
+               $(use_enable gpl version3)
+               --enable-postproc
+               --enable-avfilter
+       "
+
+       # enabled by default
+       uses="debug doc network zlib"
+       for i in ${uses}; do
+               use ${i} || myconf+=" --disable-${i}"
+       done
+       use bzip2 || myconf+=" --disable-bzlib"
+       use sdl || myconf+=" --disable-avplay"
+
+       if use ssl; then
+               use openssl && myconf+=" --enable-openssl --enable-nonfree" \
+                                       || myconf+=" --enable-gnutls"
+       fi
+
+       use custom-cflags && myconf+=" --disable-optimizations"
+       use cpudetection && myconf+=" --enable-runtime-cpudetect"
+
+       #for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do
+       #       use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}"
+       #       use vdpau || myconf="${myconf} --disable-decoder=${i}"
+       #done
+       use video_cards_nvidia && use vdpau || myconf+=" --disable-vdpau"
+
+       use vaapi && myconf+=" --enable-vaapi"
+
+       # Encoders
+       if use encode; then
+               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"
+               for i in ${uses}; do
+                       use ${i} && myconf+=" --enable-lib${i}"
+               done
+       else
+               myconf+=" --disable-encoders"
+       fi
+
+       # libavdevice options
+       use cdio && myconf+=" --enable-libcdio"
+       use ieee1394 && myconf+=" --enable-libdc1394"
+       use pulseaudio && myconf+=" --enable-libpulse"
+       # Indevs
+       # v4l1 is gone since linux-headers-2.6.38
+       myconf+=" --disable-indev=v4l"
+       use v4l || myconf+=" --disable-indev=v4l2"
+       for i in alsa oss jack; do
+               use ${i} || myconf+=" --disable-indev=${i}"
+       done
+       use X && myconf+=" --enable-x11grab"
+       # Outdevs
+       for i in alsa oss ; do
+               use ${i} || myconf+=" --disable-outdev=${i}"
+       done
+       # libavfilter options
+       use frei0r && myconf+=" --enable-frei0r"
+       use truetype &&  myconf+=" --enable-libfreetype"
+
+       # 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"
+       for i in ${uses}; do
+               use ${i} && myconf+=" --enable-lib${i}"
+       done
+       use jpeg2k && myconf+=" --enable-libopenjpeg"
+
+       # CPU features
+       for i in ${CPU_FEATURES}; do
+               use ${i%:*} || myconf+=" --disable-${i#*:}"
+       done
+
+       # pass the right -mfpu as extra
+       use neon && myconf+=" --extra-cflags=-mfpu=neon"
+
+       # disable mmx accelerated code if PIC is required
+       # as the provided asm decidedly is not PIC for x86.
+       if use pic && use x86 ; then
+               myconf+=" --disable-mmx --disable-mmx2"
+       fi
+
+       # Option to force building pic
+       use pic && myconf+=" --enable-pic"
+
+       # Try to get cpu type based on CFLAGS.
+       # Bug #172723
+       # We need to do this so that features of that CPU will be better used
+       # If they contain an unknown CPU it will not hurt since ffmpeg's configure
+       # will just ignore it.
+       for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
+               [ "${i}" = "native" ] && i="host" # bug #273421
+               [[ ${i} = *-sse3 ]] && i="${i%-sse3}" # bug 283968
+               myconf+=" --cpu=${i}"
+               break
+       done
+
+       # cross compile support
+       if tc-is-cross-compiler ; then
+               myconf+=" --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
+               case ${CHOST} in
+                       *freebsd*)
+                               myconf+=" --target-os=freebsd"
+                               ;;
+                       mingw32*)
+                               myconf+=" --target-os=mingw32"
+                               ;;
+                       *linux*)
+                               myconf+=" --target-os=linux"
+                               ;;
+               esac
+       fi
+
+       # Misc stuff
+       use hardcoded-tables && myconf+=" --enable-hardcoded-tables"
+
+       # Specific workarounds for too-few-registers arch...
+       if [[ $(tc-arch) == "x86" ]]; then
+               filter-flags -fforce-addr -momit-leaf-frame-pointer
+               append-flags -fomit-frame-pointer
+               is-flag -O? || append-flags -O2
+               if use debug; then
+                       # no need to warn about debug if not using debug flag
+                       ewarn ""
+                       ewarn "Debug information will be almost useless as the frame pointer is omitted."
+                       ewarn "This makes debugging harder, so crashes that has no fixed behavior are"
+                       ewarn "difficult to fix. Please have that in mind."
+                       ewarn ""
+               fi
+       fi
+
+       cd "${S}"
+       ./configure \
+               --prefix="$EPREFIX"/usr \
+               --libdir="$EPREFIX"/usr/$(get_libdir) \
+               --shlibdir="$EPREFIX"/usr/$(get_libdir) \
+               --mandir="$EPREFIX"/usr/share/man \
+               --enable-shared \
+               --cc="$(tc-getCC)" \
+               $(use_enable static-libs static) \
+               ${myconf} || die
+}
+
+src_compile() {
+       emake
+
+       if use qt-faststart; then
+               tc-export CC
+               emake tools/qt-faststart
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install install-man
+
+       dodoc Changelog README INSTALL
+       dodoc doc/*
+
+       if use qt-faststart; then
+               dobin tools/qt-faststart
+       fi
+
+       for i in avplay avserver avprobe; do
+               dosym  ${i} /usr/bin/${i/av/ff}
+       done
+}
+
+pkg_postinst() {
+       elog "Please note that the programs formerly known as ffplay, ffserver"
+       elog "and ffprobe are now called avplay, avserver and avprobe."
+       elog
+       elog "ffmpeg had been replaced by the feature incompatible avconv thus"
+       elog "the legacy ffmpeg is provided for compatibility with older scripts"
+}
+
+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
+}