summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-video/ffmpeg/ChangeLog7
-rw-r--r--media-video/ffmpeg/Manifest12
-rw-r--r--media-video/ffmpeg/ffmpeg-2.0.2.ebuild317
3 files changed, 330 insertions, 6 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index 30258aa2d497..b173649e77d6 100644
--- a/media-video/ffmpeg/ChangeLog
+++ b/media-video/ffmpeg/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/ffmpeg
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.678 2013/09/14 22:10:43 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.679 2013/10/11 05:18:47 aballier Exp $
+
+*ffmpeg-2.0.2 (11 Oct 2013)
+
+ 11 Oct 2013; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.0.2.ebuild:
+ version bump
*ffmpeg-1.0.8 (14 Sep 2013)
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index 71b58a4d592a..417774366c95 100644
--- a/media-video/ffmpeg/Manifest
+++ b/media-video/ffmpeg/Manifest
@@ -9,19 +9,21 @@ DIST ffmpeg-1.0.8.tar.bz2 6452144 SHA256 8580a317aa09fdabdcf5119c87f59fd3baa4df0
DIST ffmpeg-1.2.2.tar.bz2 5968091 SHA256 1cb29ec4951f5941ea43638ea1e3042e3d3215992bda03f45628e8c49cb21064 SHA512 555a9fee6c5017602396362a7d073d444ef7539f020a2437d9fa7849310a4956e716fd60a956e1074e6f57fd260bb00cd1c8178bcd4052a3bad0117c1683e8cf WHIRLPOOL d77d7071fa048b55591f0d7f3b5a6631ca81a27d57d3988acf215f66ae7006e2975109fe23290379a7f51e42bc9d0374dd7f1c431f7cfb5b84546fa9fed1977c
DIST ffmpeg-1.2.3.tar.bz2 5968552 SHA256 d97462cf1619bc9552092649c409ed94854b22cffbd274df8cfbefa8f8a3715b SHA512 81a9a0a351a44bd4ae4162a78f886a7e4981420d5bc6af980a1126068cf77494f236153a4a39cafc01049cb1c57247a79034e7fd3a5adb441d103024aee6c7de WHIRLPOOL 3ffc7ba68cb3acc01a2a01f662c856663645f92596e17aa919500fa90edde085b552a06edd50f9c852a9e8952307ed13bb6abd67ff923dfe3b131132032523fd
DIST ffmpeg-2.0.1.tar.bz2 6187933 SHA256 611eae7e3485d5fd9ff03e0ac7575ea89bc8105e40e99a40de02324957482f95 SHA512 8589de3133881616ad2fa5e66338c4a06a01cb102dba7f60b63127fcf359227cff8fef652bf4c991554296edf7aafae1241afa764fcf5ceb571cfdd2e9bc6051 WHIRLPOOL 816c1c3f4d41358dfa665b6d35b48901392da8d8583348f1e9e024a7bde8c9e89809524590e427048ffa390ab9ea2e42b7e69806fe641e8181e6077028e4b3f1
+DIST ffmpeg-2.0.2.tar.bz2 6191390 SHA256 986f63dc0785f473b1832d0eead502e39c9706fbe7f9677bbea0dad6fe0fab4a SHA512 4b194e78a011c0df0173f1e99511ae25272501cc380ca616d60e10a489b1f7e4f1b72f681e4539db4e2da491010fb2225190a24e480a1b285decf4085a4a31f4 WHIRLPOOL 080c9eef1bb0645d88f30efddb31e5443582345d11e6df508d74a0dad98380abb432af8f46ce348b4bcac478595f55416ca60ea5eeb57de8ee9ddcb7391bf2d1
EBUILD ffmpeg-0.10.8.ebuild 9627 SHA256 264c1dbf1b4a85c48071258645fd3d19e38128eb3bd78824bc9297355d49da1b SHA512 e720a40916eb228c821178f88e02efaf430b4b58017473951aa731f9cb8cc82e53b1686027f88d0a96378c5f6a8cfa97c2fa9812903c78de85bed1e4ab4ef0e6 WHIRLPOOL e5727f0168be48ecf9336392157c06739ee2bb12e6faa1ea7ef016bc9794ca635201a2e863f8b5eca7388c0d4c4217959bd33be5f9f01bebe51d5d58ec69c06a
EBUILD ffmpeg-1.0.7.ebuild 9601 SHA256 7dfa716f53e0eaa38ca2b581a633b8495815b3f8ee3a4c73a8e80e48aae39e94 SHA512 ff5da2f4c56cf5fba5a97f4fccf42ea893bf360439b4ed4a17c834f416f81bcdfaef24e8d95767dc05fa96a7c67d16da3a517a531f35456b68b2413c1d3b7582 WHIRLPOOL dba93f9acf649854ea72117e989a3c4acebfef8ae7e47e055fec53967a1e7c2ab0bc7d8c4ef43ea5c5048e7084cf1cdee5a37fc59889d33e2806d78f954e56a4
EBUILD ffmpeg-1.0.8.ebuild 9609 SHA256 4dd859f8ac3da91b1a306fcc9607e252d207afcfe8876d112f6ff20d210f1941 SHA512 127998310843ce156b67f98c5901a33f526d7b13596d7b600be575cd9d419f61c8c98ca0c52fadd33d19fbcbf2f68fe1ca9225adc4d6764f800be244ec7c6321 WHIRLPOOL 66a7ca460026f6566abd3f1ff78642d36bd0a3cd5535f04736df1704ff988cb3ade316c92edf3e445d6beb6f51cec3182c92dfa751de0dc28002922cc4a8f42d
EBUILD ffmpeg-1.2.2.ebuild 8937 SHA256 b16282509ea71d53fd99dc1a9cd194865a6e2b34b52df323034f64071b3053ce SHA512 4b7bae450fd393681c99ea198c7184414afabe987813549458c68a622d7187f49426147c629a04e0bcb6180d5b68c4a8c45c8597c8341bd12ee4ed826deb61ef WHIRLPOOL 59b425152630235c459672d2f159c86516351c8320d509a8c8c953702c51b465dfeb5a5b9fe7d2651f8c4d7bd825764dabfc0bb21699a617e195ede0d7e74e01
EBUILD ffmpeg-1.2.3.ebuild 8937 SHA256 9a9ab52f234b090c40d1e01b687ffde62b507712212950641c63cd4b35182ef3 SHA512 3ff88a76b0cf8f609bea3c9b0838197739b8bc3570e972525ea126ca73f5cb23a58c17791d66ec26c93076b9b725d1b4176f2af417d04920a0f8aaf1c5ec2dfa WHIRLPOOL e06ab4f2235eef1a758feb6a9dd32eb8383efa06be3fbe046f5f4b13b316da8cf1f3613b22370bea3a98c429a359536add6d694e7436d8c4a7cff07be25dd47d
EBUILD ffmpeg-2.0.1.ebuild 9756 SHA256 6390b6667805cc95a59ca466a8c6ab579521d218ffd99c6d982f27b378fd646d SHA512 28dc229f2ae2e2dd383123b619505cc27bda1855254b2079572724841bed53e7bbf77c1cc859ccb235406992027bea1bc0a1198a1568ce4595296ca866fe9c8d WHIRLPOOL d3b830a192ea455753889125b966fb7fdc65fb03d691d43244719ead9959856cf5217f40abc004b0c0478acd8624abceec2c02998bcf56840b8d7d04482f3c26
+EBUILD ffmpeg-2.0.2.ebuild 9756 SHA256 7ecf4827ef9c1850d96a33fde8fcb8b21e3ca06a5d1666b6397ae7148ca45d89 SHA512 0ebb2469aed4b2f812c071803b2e7a5814b3f7ca4b010ace5b17a628a6f461f128bc14aff736598593e01a7d89858510085ed04c8b789b6e539d5a3599a27957 WHIRLPOOL fcac3c655c9e4bda1af631ac62e29f7cae5b203eb9caae984e327be079388cc0635ad4910c700343f1cc0721fecfab93596766643dfb8b747964624cb1fcf063
EBUILD ffmpeg-9999.ebuild 9757 SHA256 209d9186e6d6316e0bc2268542450e340f056f2c5d34dd61a68846f6be87fb80 SHA512 b9c0d62c8ad255965901bbf17de210b1c3c9912ca288a07aa4bf36b87616419bd8f64e6cc11167bfad0c771d3055496c51a3fd997dafc92c49490c3dab8e66ca WHIRLPOOL ec2e33c546c71b58f8817d070df07c8d9a2f5a22f3bf9142deb825232a78c6be4db1da383943d61854f70e903998a70dfd6c3a4be5832d08576b19b500a48be4
-MISC ChangeLog 94875 SHA256 c896b93e6351d637d7e425187a464db171280b82cfcb4abe12106913f5f6eb74 SHA512 7eb01dc197eec1b6b80b4f993090c1e482f5fe1bcc3a21e027f7a460d98f6d1fb24c316afaa7208f003de859070bbc62b434ff27ad873d3a3f9c1298506ff1f5 WHIRLPOOL 1eef724b4b7903beb009c4226dbd60d140d0b5289a2e66df4a1d278cc95277f4c243b3cb7541263824ea33bbcef78826d2c08f9902a15bb0e30ce00e067ee5a8
+MISC ChangeLog 94994 SHA256 43543b25735199db50f60cc1c21b5bcf6d116602575eb60119eec4675977163c SHA512 3f1e717fbda64b2dd420dc7ac62bcbb608792d016f43756adfd11aa204af98a3bf9f3821b442323acdf72e0b4fb64d8579e142709205d775ec604f50d31b090b WHIRLPOOL 53c380f2ac784eb9fd78ac7374d0c64118eaafac7c74a3690cbea43f1b2a984eb826161642d137bc0a7a3b9ea17553afcf85cc5f10a95ddc3880c5ce6ba7590a
MISC metadata.xml 3860 SHA256 0480b2ab42cca74fa5abe6d7f40ccf82c81d19eef97b88878ec07afc83ad6fa8 SHA512 3a1f45a406c90cd54354f5d78d9e51883dc530f904b56c822ae843e87632a6d64e11aa23c874bd47ba40673addc579d9b76cf573434717ab1f0fb4d8ff4e310c WHIRLPOOL f62cf68b99f10188af3f5b7cca0a6daf614cfe048ebd8c4f802a47105a3f839d680487ae1be2144d10dcf5c475502ad3d4092d6fd4c491a924cfadada1f62ffe
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.21 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlI03uQACgkQvFcC4BYPU0pXigCeMXgAuDDqTUwabFHZKcz/kK8c
-sCIAni9gIDMaFFWK03xHN7lapYsmSmOI
-=32/X
+iEYEAREIAAYFAlJXijgACgkQvFcC4BYPU0rYvwCgsKsKQS0vKewoGhK0pcJufuk3
+AZAAn03fz9SI39yKTj1cOnItwB5Bk41h
+=GVjt
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-2.0.2.ebuild b/media-video/ffmpeg/ffmpeg-2.0.2.ebuild
new file mode 100644
index 000000000000..33b3f7dabf27
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-2.0.2.ebuild
@@ -0,0 +1,317 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-2.0.2.ebuild,v 1.1 2013/10/11 05:18:47 aballier Exp $
+
+EAPI="5"
+
+# Subslot: libavutil major.libavcodec major.libavformat major
+# Since FFmpeg ships several libraries, subslot is kind of limited here.
+# Most consumers will use those three libraries, if a "less used" library
+# changes its soname, consumers will have to be rebuilt the old way
+# (preserve-libs).
+# If, for example, a package does not link to libavformat and only libavformat
+# changes its ABI then this package will be rebuilt needlessly. Hence, such a
+# package is free _not_ to := depend on FFmpeg but I would strongly encourage
+# doing so since such a case is unlikely.
+FFMPEG_SUBSLOT=52.55.55
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-2"
+ EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
+fi
+
+inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
+
+DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec."
+HOMEPAGE="http://ffmpeg.org/"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
+ SRC_URI="mirror://gentoo/${P}.tar.bz2"
+else # Release
+ SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2"
+fi
+FFMPEG_REVISION="${PV#*_p}"
+
+LICENSE="GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) )"
+SLOT="0/${FFMPEG_SUBSLOT}"
+if [ "${PV#9999}" = "${PV}" ] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
+fi
+IUSE="
+ aac aacplus alsa amr amrenc bindist bluray +bzip2 cdio celt
+ cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r
+ gme gnutls gsm +hardcoded-tables +iconv iec61883 ieee1394 jack jpeg2k
+ libass libcaca libsoxr libv4l modplug mp3 network openal openssl opus oss
+ pic pulseaudio quvi rtmp schroedinger sdl speex static-libs test theora
+ threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack 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 ssse3 vis neon"
+
+for i in ${CPU_FEATURES}; do
+ IUSE="${IUSE} ${i%:*}"
+done
+
+FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
+
+for i in ${FFTOOLS}; do
+ IUSE="${IUSE} +fftools_$i"
+done
+
+RDEPEND="
+ alsa? ( media-libs/alsa-lib )
+ amr? ( media-libs/opencore-amr )
+ bluray? ( media-libs/libbluray )
+ bzip2? ( app-arch/bzip2 )
+ cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
+ celt? ( >=media-libs/celt-0.11.1 )
+ encode? (
+ aac? ( media-libs/vo-aacenc )
+ aacplus? ( media-libs/libaacplus )
+ amrenc? ( 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 )
+ twolame? ( media-sound/twolame )
+ wavpack? ( media-sound/wavpack )
+ x264? ( >=media-libs/x264-0.0.20111017:= )
+ xvid? ( >=media-libs/xvid-1.1.0 )
+ )
+ flite? ( app-accessibility/flite )
+ fontconfig? ( media-libs/fontconfig )
+ frei0r? ( media-plugins/frei0r-plugins )
+ gme? ( media-libs/game-music-emu )
+ gnutls? ( >=net-libs/gnutls-2.12.16 )
+ gsm? ( >=media-sound/gsm-1.0.12-r1 )
+ iconv? ( virtual/libiconv )
+ iec61883? ( media-libs/libiec61883 sys-libs/libraw1394 sys-libs/libavc1394 )
+ ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jpeg2k? ( >=media-libs/openjpeg-1.3-r2:0 )
+ libass? ( media-libs/libass )
+ libcaca? ( media-libs/libcaca )
+ libsoxr? ( media-libs/soxr )
+ libv4l? ( media-libs/libv4l )
+ modplug? ( media-libs/libmodplug )
+ openal? ( >=media-libs/openal-1.1 )
+ openssl? ( dev-libs/openssl )
+ opus? ( media-libs/opus )
+ pulseaudio? ( media-sound/pulseaudio )
+ quvi? ( media-libs/libquvi )
+ rtmp? ( >=media-video/rtmpdump-2.2f )
+ 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-0.32 )
+ vdpau? ( x11-libs/libvdpau )
+ vorbis? ( media-libs/libvorbis media-libs/libogg )
+ vpx? ( >=media-libs/libvpx-0.9.6 )
+ X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
+ zlib? ( sys-libs/zlib )
+ !media-video/qt-faststart
+ !media-libs/libpostproc
+"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/make-3.81
+ doc? ( app-text/texi2html )
+ fontconfig? ( virtual/pkgconfig )
+ gnutls? ( virtual/pkgconfig )
+ ieee1394? ( virtual/pkgconfig )
+ libv4l? ( virtual/pkgconfig )
+ mmx? ( dev-lang/yasm )
+ rtmp? ( virtual/pkgconfig )
+ schroedinger? ( virtual/pkgconfig )
+ test? ( net-misc/wget )
+ truetype? ( virtual/pkgconfig )
+ v4l? ( sys-kernel/linux-headers )
+"
+# faac is license-incompatible with ffmpeg
+REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
+ libv4l? ( v4l )
+ fftools_cws2fws? ( zlib )
+ test? ( encode )"
+
+S=${WORKDIR}/${P/_/-}
+BUILD_DIR=${S}_build
+
+src_prepare() {
+ if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
+ export revision=git-N-${FFMPEG_REVISION}
+ fi
+ epatch_user
+}
+
+src_configure() {
+ mkdir -p "${BUILD_DIR}"
+ cd "${BUILD_DIR}"
+
+ local myconf="${EXTRA_FFMPEG_CONF}"
+
+ # options to use as use_enable in the foo[:bar] form.
+ # This will feed configure with $(use_enable foo bar)
+ # or $(use_enable foo foo) if no :bar is set.
+ local ffuse="bzip2:bzlib cpudetection:runtime-cpudetect debug doc
+ gnutls hardcoded-tables iconv network openssl sdl:ffplay vaapi vdpau zlib"
+ use openssl && myconf="${myconf} --enable-nonfree"
+
+ # Encoders
+ if use encode
+ then
+ ffuse="${ffuse} aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame fdk:libfdk-aac"
+ for i in aacplus faac theora twolame wavpack x264 xvid; do
+ ffuse="${ffuse} ${i}:lib${i}"
+ done
+
+ # Licensing.
+ if use aac || use amrenc ; then
+ myconf="${myconf} --enable-version3"
+ fi
+ if use aacplus || use faac || use fdk ; then
+ myconf="${myconf} --enable-nonfree"
+ fi
+ else
+ myconf="${myconf} --disable-encoders"
+ fi
+
+ # libavdevice options
+ ffuse="${ffuse} cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal"
+
+ # Indevs
+ use v4l || myconf="${myconf} --disable-indev=v4l2 --disable-outdev=v4l2"
+ for i in alsa oss jack ; do
+ use ${i} || myconf="${myconf} --disable-indev=${i}"
+ done
+ ffuse="${ffuse} libv4l:libv4l2 pulseaudio:libpulse X:x11grab"
+
+ # Outdevs
+ for i in alsa oss sdl ; do
+ use ${i} || myconf="${myconf} --disable-outdev=${i}"
+ done
+
+ # libavfilter options
+ ffuse="${ffuse} flite:libflite frei0r fontconfig libass truetype:libfreetype"
+
+ # libswresample options
+ ffuse="${ffuse} libsoxr"
+
+ # Threads; we only support pthread for now but ffmpeg supports more
+ ffuse="${ffuse} threads:pthreads"
+
+ # Decoders
+ ffuse="${ffuse} amr:libopencore-amrwb amr:libopencore-amrnb jpeg2k:libopenjpeg"
+ use amr && myconf="${myconf} --enable-version3"
+ for i in bluray celt gme gsm modplug opus quvi rtmp schroedinger speex vorbis vpx; do
+ ffuse="${ffuse} ${i}:lib${i}"
+ done
+
+ for i in ${ffuse} ; do
+ myconf="${myconf} $(use_enable ${i%:*} ${i#*:})"
+ done
+
+ # CPU features
+ for i in ${CPU_FEATURES}; do
+ use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
+ done
+ if use pic ; then
+ myconf="${myconf} --enable-pic"
+ # disable asm code if PIC is required
+ # as the provided asm decidedly is not PIC for x86.
+ use x86 && myconf="${myconf} --disable-asm"
+ fi
+ [[ ${ABI} == "x32" ]] && myconf+=" --disable-asm" #427004
+
+ # 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
+ myconf="${myconf} --cpu=${i}"
+ break
+ done
+
+ # Mandatory configuration
+ myconf="
+ --enable-gpl
+ --enable-postproc
+ --enable-avfilter
+ --enable-avresample
+ --disable-stripping
+ ${myconf}"
+
+ # cross compile support
+ if tc-is-cross-compiler ; then
+ myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
+ case ${CHOST} in
+ *freebsd*)
+ myconf="${myconf} --target-os=freebsd"
+ ;;
+ mingw32*)
+ myconf="${myconf} --target-os=mingw32"
+ ;;
+ *linux*)
+ myconf="${myconf} --target-os=linux"
+ ;;
+ esac
+ fi
+
+ "${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)" \
+ --cxx="$(tc-getCXX)" \
+ --ar="$(tc-getAR)" \
+ --optflags="${CFLAGS}" \
+ --extra-cflags="${CFLAGS}" \
+ --extra-cxxflags="${CXXFLAGS}" \
+ $(use_enable static-libs static) \
+ ${myconf} || die
+}
+
+src_compile() {
+ cd "${BUILD_DIR}"
+ emake V=1
+
+ for i in ${FFTOOLS} ; do
+ if use fftools_$i ; then
+ emake V=1 tools/$i
+ fi
+ done
+}
+
+src_install() {
+ cd "${BUILD_DIR}"
+ emake V=1 DESTDIR="${D}" install install-man
+
+ for i in ${FFTOOLS} ; do
+ if use fftools_$i ; then
+ dobin tools/$i
+ fi
+ done
+
+ cd "${S}"
+ dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
+ use doc && dohtml -r doc/*
+ if use examples ; then
+ dodoc -r doc/examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
+
+src_test() {
+ cd "${BUILD_DIR}"
+ LD_LIBRARY_PATH="${BUILD_DIR}/libpostproc:${BUILD_DIR}/libswscale:${BUILD_DIR}/libswresample:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil:${BUILD_DIR}/libavresample" \
+ emake V=1 fate
+}