summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-video/libav/ChangeLog7
-rw-r--r--media-video/libav/Manifest4
-rw-r--r--media-video/libav/libav-10_beta1.ebuild313
3 files changed, 322 insertions, 2 deletions
diff --git a/media-video/libav/ChangeLog b/media-video/libav/ChangeLog
index 1a60732b9300..3d77c8ad09f9 100644
--- a/media-video/libav/ChangeLog
+++ b/media-video/libav/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/libav
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.177 2014/02/09 22:07:01 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.178 2014/02/20 08:57:24 lu_zero Exp $
+
+*libav-10_beta1 (20 Feb 2014)
+
+ 20 Feb 2014; Luca Barbato <lu_zero@gentoo.org> +libav-10_beta1.ebuild:
+ New beta
*libav-9.11 (09 Feb 2014)
*libav-0.8.10 (09 Feb 2014)
diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest
index c9580bdcba9c..b15f2a0d5114 100644
--- a/media-video/libav/Manifest
+++ b/media-video/libav/Manifest
@@ -7,6 +7,7 @@ DIST libav-0.8.7.tar.xz 3763180 SHA256 8be6cbee4066ea031110d0f1cf8f9fecda8bc36d8
DIST libav-0.8.8.tar.xz 3762556 SHA256 e95cf618eb6239177a62c46f15e840c37e02e8308baf94912fc5910ff4aacbf2 SHA512 6164310abfef3d7d921374f038cec7933c929ba7a628dd087e9ba3be416ecdade973ee0ef304e580488ecf5594819a1168bc31ef0fc26baff6018adf10187ca5 WHIRLPOOL f713ee72dbf38f62f5515dd19fad3e5c7a50f096c047144c0492cd092cf521301707c006d4ce7aff442840cb5bf2ee66ddadfdb098b019851181d3b13c0e102a
DIST libav-0.8.9.tar.xz 3765764 SHA256 4f5181164e4007d5b0013bb3cc5e3b7393ab71ac286319c714b7697e2784f77f SHA512 92dccdad6d2c2c5d2e9493ce4fc866ac1f12aa010ab29339cc057bad15b8ac553969b028c75c531037bb52d90fe5acbfd21c79a7c56d2932e576ef80a199fd03 WHIRLPOOL 319d2f6655014b8a24e65b46ad92ee84de5f1461ba0dd39ccd10e4940d817817bbcaff28024eb0b1be761cb4310dfd7bfe095bfbb4ce479fc4c86ce4baecc106
DIST libav-10_alpha1.tar.xz 4559072 SHA256 9253dcff6ccccb43477ab0181ea670b1c29e41842edb7c2bdedfc510533115b6 SHA512 a13d5260ffcf21607b23e682401aafb893a79a3bd39fd5aba73d3f7a790640e80932e189a983a0102481a1dbcd3c1e1011bd335bcd0fbd6df883d93449a5156b WHIRLPOOL 7fbf518c6a2738faf5500f18a776d8ba866f263b92b188e7e76aac9639a6014382f6303d47b4252be6a5b900a3634895bef8ee2d8e01bdf3ab3a5db6932bb220
+DIST libav-10_beta1.tar.xz 4635736 SHA256 8180f499ea4f3f350dcdd9ab4bbb16d2a3b8744a582736aff9abfbf4636e3806 SHA512 c2a33b1134d701ed9e3f72ab19865373f6bb7371a93d7ae26410d0dc740c8cf872190ec54f67435c95211cc1edf42d42d0396405f6620e0b4646ac872ee4dc56 WHIRLPOOL 3f2900fd511e333bd70d146054fc0f4c9f4d51a0d6bf17eb38259c39329a0834b7cd76dcb3d0455b4cd54cee0dd913f11250a72ea28a6757f60139315d46b97b
DIST libav-9.10.tar.xz 4074176 SHA256 83dbe640779da1c1e8d8836c99575f57f749d18407494ebca451578afee9300d SHA512 ba43d999237bd656169e320df87827d08444297010b3448dfa20eaa47d51b8736f8cd7c650a3327f4c68c34b06813700afabb3f68e2f799004ddfa5556fc3561 WHIRLPOOL 6fbd67a024e723d93208c42f3b4f1f85bb7b2e9532c15952a076b82cb1be0c17870da87cb6a83b9d83d3874280158b8e60eccd7dcc4927c389a8241ccde0582d
DIST libav-9.11.tar.xz 4075860 SHA256 433110e89a581715317cf0de85a0998f4afd2cf8ce04f6ace10d7170bbdfa7a9 SHA512 9aedac420196b7ed21fff6469dab7177fdf58e5b5d4f9325473969e13c77e65f4cbb79bdb6349b479c2c3befec746f82089793e95a3c59f25817d6e8cc794499 WHIRLPOOL 54b8919209fcb3b860b00c93464d2036af1fbd3fc6ad50b419916722a9b84c3cbdefe5e2d9d6a4dcc1995f6556a2240aa2d26d88dedbf800fa8236f6c4999a55
EBUILD libav-0.8.10.ebuild 9177 SHA256 7b7dc8e668eaad3ce7f58dd380a47d3ed769d0c6cfdc2b8cfbfac164b2124543 SHA512 a4f6ff90412dcff1e27a4dc02bd588fbcabf370eea586ad54fce3fba9713ceaaccbed00b57a205d2a879484e963efa0c854ef1fe261a8e0934721195f4e8a07f WHIRLPOOL 9f3f942d229a93fb2a2f28df5aef7662676abee413516e6352dbef3baf5aacb118a6aa10c98fa7912aa21545fc9473c1eea5a5259ecdf1920d1931ed8a3a2b95
@@ -17,10 +18,11 @@ EBUILD libav-0.8.9.ebuild 9176 SHA256 6f685b0e8d2119e441942a6fcc1a04c4d7a18a0ae4
EBUILD libav-0.8.9999.ebuild 9177 SHA256 b1d7a8c2404d3d6470aaafdf1326690dd3434c9ce6f02ccd1d0d5bccea429f27 SHA512 1f121daf174be6f1d97eb6cebd80faf11018514be19232c491fa5bcb0bd108668bcb23c3e14e6a49474fcc406a8a36a942214377c4cd8f24c52a7c4f7bf68522 WHIRLPOOL e483bff65b252eb1b47869d478328eb611cbb4a8ec0a0086118bc0134b920d7ae9d8566eb63390e0588cdb8cac7f1405b4a61a2f822e5b5216f1068a1fc1d2bb
EBUILD libav-10_alpha1-r1.ebuild 9604 SHA256 5ab28023c771f42a24fcd90b4e9c0e69daffe1c2963f03ba236b2c34c2fe12d4 SHA512 a69a93f1c02581e8b8936ee330510366c3856c252de1fade6231a6555c1dea1ee8f93e48be345b030110b83d501e91965892445354cef853d41f5fac9fa04d45 WHIRLPOOL 344efc863d534767c9ebd165949d5f3efc7d350d2fbbb2e260da7e7e2ee8c58cf7bd3a81c4a5806f9517b31b6be6da769864628a639ff6da932d6bfb3215e1b4
EBUILD libav-10_alpha1.ebuild 8379 SHA256 0c0fb4224ea63649d3ebfc2a33c3342dab61096ef47d0005b557c815a42f74e6 SHA512 3be8783e0612bd4bcf9a31c190a1a17d5d531f4de839e786128c4f384788a9adc29be2c70b0663a394e474f1012971c4d146e9ab9c9768bc2bc20d26d8e794b0 WHIRLPOOL 1e8f5e086c49a5c96104ad4a408c7c04300ce6f3ec571f9e513a11c6a6330b6159fe2d14f10aabc42c6b0d1def194254b454fa3cd7c27c5c4f32870d7a0ebd00
+EBUILD libav-10_beta1.ebuild 8378 SHA256 8a2bc1ef25fb9d6fdbe762096677dd25e91887377e944c53c6632d3379f642c4 SHA512 4873a2880e6c1fc8d23ad6cc7a072f8b58d4bbc238584a68b463c276a8c81d96a3379f0502a245be257d31c3334a83cb923132aa16302116de045807bba5cf72 WHIRLPOOL 6e3489be0ae0cab61ec997b4c1da3b56e0c61948610c5154591e207eeb8266db79e1c6e92e6fee27150d1bd1f0ca4593b727590ad378f534d707efc011f4bf1d
EBUILD libav-9.10-r1.ebuild 9650 SHA256 f3c4aebd03a20f8ab2b08d37f49a41dee1e02a785bcb05099e4f20f5f9a3e9f4 SHA512 3c46cdc733082dbcea72cd7b2d27c04631814163dae8c22a8773e16d48d54104125e6ee9377f7e4f8eea97bd6a6ebf288b913e3b1f38acb497244f37df37a146 WHIRLPOOL d22f13662bcf8988d44dbabe67949158681fba1d2374da19662303639e86abbc90d871254dbd9511352b91702f0fc23345f58d992b95f727c9e054e8f2249edc
EBUILD libav-9.10.ebuild 8506 SHA256 bd357a6da5d94ddb14f04ef1c0010afaab257360b86a6568da41912196800a23 SHA512 851ab77b93229ba56aff529c5e2c17c9ecd6752ecc73bf0b206504997ab72e54580e363b2359b5c826b670fc07150e6af95c78fc4a0f324dbcba957da986aca4 WHIRLPOOL 04a0191df2adfe69401dad1a1bb77d866f93678ff12e24a9865d4fc60a16b9ab01dc8fba2cea122463f4f88ddeb017a7c2315fff938cc9f420a0855d93bc3cdb
EBUILD libav-9.11.ebuild 8504 SHA256 c17a9a94ff505ac7f879d358dc7ef97d7e49c2eaf402359b199cdca0f1bc6cab SHA512 41e7cbac37346f59985c44a918a62597bd4fe67c24809256649ab150d24888063a1b7995c096e49dd62ed45b67bdf29d596b6d08f7a0928d0a065c2c2b77d195 WHIRLPOOL c72575909ac73bcb557a280af8a284e689b5616cd422ee570273e921e43b91fd3950e4f681b8332b80c5e564c0b7b9a14a8bcb90b748576af071a06a466e8f36
EBUILD libav-9.9999.ebuild 8507 SHA256 ff306a60436ff6b98217b10d1a8065e57997e7ea4c10423b1440a0414e3bc24b SHA512 f8cf2aed28891d4dc22fd58f0a869b94a7b85690ef150db4ee14e7d824c00458d3b7d48e51e2e5b6eb9894cef29336f20dead25d67c7066f8d1d00f8071a51d4 WHIRLPOOL 471c6fdaf9b5708819ba6383b014d78814d2f1baad10e9b4f0fbaaf68c2069e0ead8bdb10a0ead8f414025c934d8791c4a8affb11138dcfd301885dee47fcc20
EBUILD libav-9999.ebuild 8384 SHA256 937f1291701e272b2cfb903e608a7d72bedecf4b1fb4bc9895de322f2e8a6150 SHA512 21f8ceed1b8a2f224f10e91b3bff04dad7633c7889c475f47f4da874763e647a496383d73afdeb0edde0f9ef048aa856345100596bbbd94c82cdfe74c27c13a9 WHIRLPOOL 7df52ad4ec21108e344f72e7aec65db6806d0b5bb5356ca3ef0251c6e5ae513b8b38645f1c1c90e2ebdfd333deccc9fd21133aa14ce7b79bf37a07ff7ae34478
-MISC ChangeLog 26427 SHA256 b9fea02b2d3493b0f7f16be8103184480583d7ff0d8427dba2e8628749122788 SHA512 25f85797248ca1a386bf5bf714e56945de88505a38816262e406def08060c358a861b65a74ece5510973697adadca86adb8c202909b6903d32ee1fad4f90c3f1 WHIRLPOOL 58cbda385f948897d0c49031abc7436438d60303df5df9e1d3b276b423ad30a1b071efd90751deac15a02ae7ac9a1e3f1d3ac2751cb5e8f3155fc8b192e84ac7
+MISC ChangeLog 26543 SHA256 c786f772e1b83206c94dc9651a25b6ea4a250b619f793756eb0f53ded8c2ef35 SHA512 406565813a4600904dbfcd14989a92cd4a7ae838762b327faba4edcba53f351ffd8bed3e05b6e2466b2e310da55220b87ef8c1a68ff9674b8962a353f575c90e WHIRLPOOL 213f26acae5fef53c1dcb0d2b10e4f92c8738f7da55b13b8d80a489d8f6a6345105ff5667c34f4d83f7e67f38a0dfc266430385e13c0e191a1dfa9b9583e2090
MISC metadata.xml 3106 SHA256 968ffe2f92f6e2ae9963fe0005e78fc205ebca769d48eedd578472cef8c8cfcc SHA512 f10f99a54e1806b17d0923429c2df151e470edceefd854e63c0411b2be6fbbaf829e441dd318ff0e87d5f2d6985c52673646c20c971fba9c0d44d67edc3bb5c8 WHIRLPOOL 9004c95991227752427cf62491949845931683a9a45a7a555b98b1bf92cf7d2efad0e2c912b4a069e58e31f41062d0025b8e3a082e0cc37c5d13484969058a47
diff --git a/media-video/libav/libav-10_beta1.ebuild b/media-video/libav/libav-10_beta1.ebuild
new file mode 100644
index 000000000000..9f660cb29a08
--- /dev/null
+++ b/media-video/libav/libav-10_beta1.ebuild
@@ -0,0 +1,313 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-10_beta1.ebuild,v 1.1 2014/02/20 08:57:24 lu_zero Exp $
+
+EAPI=5
+
+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
+
+SRC_URI+=" test? ( http://dev.gentoo.org/~lu_zero/libav/fate-10.tar.xz )"
+
+LICENSE="LGPL-2.1 gpl? ( GPL-3 )"
+SLOT="0/9"
+[[ ${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="aac alsa amr bindist +bzip2 cdio cpudetection custom-cflags debug doc
+ +encode faac fdk frei0r +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k mp3
+ network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl
+ static-libs test theora threads tools truetype v4l vaapi vdpau vorbis vpx X
+ x264 xvid +zlib"
+
+# 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 neon ssse3 vis"
+for i in ${CPU_FEATURES} ; do
+ IUSE+=" ${i%:*}"
+done
+
+TOOLS="aviocat graph2dot ismindex pktdumper qt-faststart trasher"
+
+RDEPEND="
+ !media-video/ffmpeg:0
+ alsa? ( media-libs/alsa-lib )
+ amr? ( media-libs/opencore-amr )
+ bzip2? ( app-arch/bzip2 )
+ cdio? (
+ || (
+ dev-libs/libcdio-paranoia
+ <dev-libs/libcdio-0.90[-minimal]
+ )
+ )
+ encode? (
+ aac? ( media-libs/vo-aacenc )
+ amr? ( media-libs/vo-amrwbenc )
+ faac? ( media-libs/faac )
+ fdk? ( media-libs/fdk-aac )
+ 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.20111017:= )
+ xvid? ( >=media-libs/xvid-1.1.0 )
+ )
+ 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:0 )
+ opus? ( media-libs/opus )
+ pulseaudio? ( media-sound/pulseaudio )
+ 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 )
+ 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
+ x11-libs/libXfixes
+ )
+ zlib? ( sys-libs/zlib )
+"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/make-3.81
+ doc? ( app-text/texi2html )
+ ieee1394? ( virtual/pkgconfig )
+ mmx? ( dev-lang/yasm )
+ rtmp? ( virtual/pkgconfig )
+ schroedinger? ( virtual/pkgconfig )
+ ssl? ( virtual/pkgconfig )
+ test? ( sys-devel/bc )
+ truetype? ( virtual/pkgconfig )
+ 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
+# x264 requires gpl2
+REQUIRED_USE="bindist? ( !faac !openssl !fdk )
+ rtmp? ( network )
+ amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl )
+ test? ( encode zlib )
+"
+
+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_LIBAV_CONF}"
+ local uses i
+
+ use zlib && TOOLS+=" cws2fws"
+
+ myconf+="
+ $(use_enable gpl)
+ $(use_enable gpl version3)
+ --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"
+
+ use vdpau || myconf+=" --disable-vdpau"
+
+ use vaapi && myconf+=" --enable-vaapi"
+
+ # Encoders
+ if use encode; then
+ use faac && myconf+=" --enable-nonfree"
+ use fdk && myconf+=" --enable-nonfree --enable-libfdk-aac"
+ use mp3 && myconf+=" --enable-libmp3lame"
+ use amr && myconf+=" --enable-libvo-amrwbenc"
+ use aac && myconf+=" --enable-libvo-aacenc"
+ uses="faac 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
+ use threads && myconf+=" --enable-pthreads"
+
+ # Decoders
+ use amr && myconf+=" --enable-libopencore-amrwb --enable-libopencore-amrnb"
+ uses="gsm opus 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-mmxext"
+ fi
+
+ # Option to force building pic
+ use pic && myconf+=" --enable-pic"
+
+ # 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)" \
+ --ar="$(tc-getAR)" \
+ --optflags="${CFLAGS}" \
+ --extra-cflags="${CFLAGS}" \
+ $(use_enable static-libs static) \
+ ${myconf} || die
+
+ MAKEOPTS+=" V=1"
+}
+
+src_compile() {
+ local i
+
+ emake
+
+ if use tools; then
+ tc-export CC
+
+ for i in ${TOOLS}; do
+ emake tools/${i}
+ done
+ fi
+}
+
+src_install() {
+ local i
+
+ emake DESTDIR="${D}" install install-man
+
+ dodoc Changelog README INSTALL
+ dodoc doc/*.txt
+ use doc && dodoc doc/*.html
+
+ if use tools; then
+ for i in ${TOOLS}; do
+ dobin tools/${i}
+ done
+ fi
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/libavcore:${S}/libswscale:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
+ emake -j1 fate
+}