diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-01-25 20:12:59 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-01-25 20:12:59 +0000 |
commit | 2a6ef9822f1c8cf02efc0cda1da80a69d7eb0a47 (patch) | |
tree | 0e76b0a914775202c2bddb20d4e6970243590fc9 /media-video/libav | |
parent | Remove old. (diff) | |
download | historical-2a6ef9822f1c8cf02efc0cda1da80a69d7eb0a47.tar.gz historical-2a6ef9822f1c8cf02efc0cda1da80a69d7eb0a47.tar.bz2 historical-2a6ef9822f1c8cf02efc0cda1da80a69d7eb0a47.zip |
New version
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'media-video/libav')
-rw-r--r-- | media-video/libav/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/libav/Manifest | 10 | ||||
-rw-r--r-- | media-video/libav/libav-0.8.ebuild | 310 |
3 files changed, 322 insertions, 5 deletions
diff --git a/media-video/libav/ChangeLog b/media-video/libav/ChangeLog index 6b9ed29ead4a..b7cdd8961abb 100644 --- a/media-video/libav/ChangeLog +++ b/media-video/libav/ChangeLog @@ -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.44 2012/01/04 21:16:26 lu_zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.45 2012/01/25 20:12:59 lu_zero Exp $ + +*libav-0.8 (25 Jan 2012) + + 25 Jan 2012; Luca Barbato <lu_zero@gentoo.org> +libav-0.8.ebuild: + New version 04 Jan 2012; Luca Barbato <lu_zero@gentoo.org> libav-0.8_beta1.ebuild, libav-9999.ebuild: diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest index 903fd896ebac..a19243927c51 100644 --- a/media-video/libav/Manifest +++ b/media-video/libav/Manifest @@ -5,6 +5,7 @@ AUX 0.6.2-fix_enable_hardcoded_tables.patch 1387 RMD160 3ccd0be1f6612ad45dcd78de 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.tar.xz 3802608 RMD160 3a37ade904fea59f1e28fe1d51f09d37f4dde50f SHA1 be662d222dd7e53243257165a6aff2274d603072 SHA256 293e8b8037d5c7cc32478f57e4b81f733b9431d538a7d48c4ba91cb8b9c9c930 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 @@ -13,17 +14,18 @@ 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.ebuild 8996 RMD160 49a4bd626459f2060c3c9c778b086d92fbfb7aba SHA1 14f72c33d9585dbad854d9bfd9009e7a783fd5e4 SHA256 87ef07f125738bff64cf759390460bae2f8e429bbe462aeeb6c12a9e2d8c46de EBUILD libav-0.8_beta1.ebuild 9002 RMD160 dfb5d18675657ac2126187e2942c3b2028aa3b36 SHA1 90814b89162153e0d419e52d675b3cfd9b8259b8 SHA256 04625a2d86f66f83253d7b14f660aebc2801cd1484ce3e2c856ae2a69101f9a8 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 8998 RMD160 824d6dfa2c5685957aec5a970b8034d7d30057d2 SHA1 f5cf7a722fe7a7e9f0640a3f5d88d207fe7f299f SHA256 57fc948b603b00d1f092957745dce999542c752a56a52db3269c245efbf64cca -MISC ChangeLog 6924 RMD160 9aff280a0bac51c82c6903dd76b1a11a13fdddd5 SHA1 afdceb095c4582c3dacd5e04625ad5b76194d0f7 SHA256 38d94ef52afbb65d1691da5efc63a8212763c916eba9bdb3d5365ae25829ea3d +MISC ChangeLog 7033 RMD160 2df2ac4a8f5685dc12e89ec709412f238037e883 SHA1 ed2be162e2cf95babdeed6f1c13b69a1670936d0 SHA256 9bce02bdee1e2a8a1d94659b5b9f22ffa7a46c28a274e43e9e72b3da1518e6f1 MISC metadata.xml 2904 RMD160 d3635d2f979c63f22eadd94ea30f1923e6f4f03b SHA1 5f8dc5b79546cb7554aa89c55bbb55aceabd0d15 SHA256 d85a42bbac6df6bb7d12e2a2820c854353e0eecb9bc3ba4725e847eaf92e7130 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iF4EAREIAAYFAk8EwbwACgkQYpJnKVbCxcx4PgD+PsC+ej2LoORrbKDU9kZpFU9s -M5PE6572tBi8SJ0O8l0A/j9v+uBiDngxZCCZhsLSjfsKs5K3yoaTdcwa3h9uyBbG -=pDr3 +iF4EAREIAAYFAk8gYlkACgkQYpJnKVbCxczHKQEAiNMnNjzuh6CN50nw2n3SU5Ez +dLVvZfg2nY9vcj0Ad68A/j3egkrFanWuEPgitjym74WhEB2PWJzjBNGnzL2Vj6uK +=vyPM -----END PGP SIGNATURE----- diff --git a/media-video/libav/libav-0.8.ebuild b/media-video/libav/libav-0.8.ebuild new file mode 100644 index 000000000000..acb9f45581cb --- /dev/null +++ b/media-video/libav/libav-0.8.ebuild @@ -0,0 +1,310 @@ +# 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.ebuild,v 1.1 2012/01/25 20:12:59 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/*.txt + use doc && dodoc doc/*.html + + 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 +} |