summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-11-05 19:57:52 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-11-05 19:57:52 +0000
commit35d48e9cfe11138ed12ef0c66d32d7fdb17b4039 (patch)
treea0070ec7eade02e6248bc044917074426d62c1d3 /media-video/ffmpeg
parentadd avx2 useflag (diff)
downloadhistorical-35d48e9cfe11138ed12ef0c66d32d7fdb17b4039.tar.gz
historical-35d48e9cfe11138ed12ef0c66d32d7fdb17b4039.tar.bz2
historical-35d48e9cfe11138ed12ef0c66d32d7fdb17b4039.zip
version bump
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-video/ffmpeg')
-rw-r--r--media-video/ffmpeg/ChangeLog7
-rw-r--r--media-video/ffmpeg/Manifest10
-rw-r--r--media-video/ffmpeg/ffmpeg-2.1.ebuild321
3 files changed, 333 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index 38330402d5f5..37c48a0c6758 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.689 2013/11/05 19:48:03 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.690 2013/11/05 19:57:48 aballier Exp $
+
+*ffmpeg-2.1 (05 Nov 2013)
+
+ 05 Nov 2013; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.1.ebuild:
+ version bump
05 Nov 2013; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999.ebuild,
metadata.xml:
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index 057753d8b0bc..f4754c21cd4c 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.3.tar.bz2 5968552 SHA256 d97462cf1619bc9552092649c409ed94854b22cffbd274df8cfbefa8f8a3715b SHA512 81a9a0a351a44bd4ae4162a78f886a7e4981420d5bc6af980a1126068cf77494f236153a4a39cafc01049cb1c57247a79034e7fd3a5adb441d103024aee6c7de WHIRLPOOL 3ffc7ba68cb3acc01a2a01f662c856663645f92596e17aa919500fa90edde085b552a06edd50f9c852a9e8952307ed13bb6abd67ff923dfe3b131132032523fd
DIST ffmpeg-1.2.4.tar.bz2 5967562 SHA256 3b96c8ce1b86575cd74f540e5b7a52681554289017d4b974e4efad2a09290ddf SHA512 9c3bf2b31cc0d0028cb83b9c4821073b7c11a0c24ca44f6353086e67c208c45840e71810d70309b655fb1e7b8bbe073f9ab7f336d8064c0e6130244a806a10b2 WHIRLPOOL ad1f10a5191a185c08022f80aa8861eede4680b083224e9181328b2f62a78d3a69c96b53a638125ac44ee68a949a96bd17b913955393d135293fb3ae2174651b
DIST ffmpeg-2.0.2.tar.bz2 6191390 SHA256 986f63dc0785f473b1832d0eead502e39c9706fbe7f9677bbea0dad6fe0fab4a SHA512 4b194e78a011c0df0173f1e99511ae25272501cc380ca616d60e10a489b1f7e4f1b72f681e4539db4e2da491010fb2225190a24e480a1b285decf4085a4a31f4 WHIRLPOOL 080c9eef1bb0645d88f30efddb31e5443582345d11e6df508d74a0dad98380abb432af8f46ce348b4bcac478595f55416ca60ea5eeb57de8ee9ddcb7391bf2d1
+DIST ffmpeg-2.1.tar.bz2 6640774 SHA256 926603fd974e9b38071a5cfc6fd0d93857801d1968145dfce7fdc627ab1d68df SHA512 e4c98a6d92c3e89ca55280c7e399f6abacc0f2b8d2e97662202e988b9632f124dd849cbbdd7472dc1d77c22d5ca023f6be14173e2b567a0d13775f64fbc08099 WHIRLPOOL 0ec7fedf2c90016f4baec18a5fa7d2f078e5f4405ecc66a9d6025ccfe3b56f1abbe7673926b34670e63ee968333ec1bb6b279202e160f826ff857f80141d790f
EBUILD ffmpeg-0.10.9.ebuild 9628 SHA256 1ae7fe6e3d8cfff291dd06abbde97523225a04d69fa5634d999a233b0d65184a SHA512 282212ba8a13e6eaf8676f0a6b08f506ed5a183f050abcd30fef30f301248368a51dac89d5185332a25b4c59400b125467f8b277cbf58f3ea5d0e9e0f79bf5dc WHIRLPOOL f8602667c35525b7339cd3df4610e444ff762a13081bca9977b4728d8a8d6084a873eb7c170bc5e99a3d993ad5f1108306e40d94fc1d21b9e181b538823493c2
EBUILD ffmpeg-1.0.7.ebuild 9602 SHA256 8043939761a0f81f9a69e5d70cb3a017445849f455a4e4ce9d36cfd2a032687c SHA512 23690d129f2b1a64de04309b3f9eadbfc6d4de696d0cd126d085812f434088977f31dfdf31f3da5453e1f7da6e83ecd4ae0e122db7701152c0d7bb12059ab9e8 WHIRLPOOL cadda4f937286bcedf83e61d7d1227c8e9b963922535cc284c4b9f6c3633b907be4eb68027bddbc87244ecf340f86af8ea9526688a731495f96d97f6dc71a7d2
EBUILD ffmpeg-1.0.8.ebuild 9610 SHA256 9a1e202ad82a5be36254ad110de5adc1329fedc6305f5eebea92469f060dc885 SHA512 022ef3dd6119c01e72e55f2fe4e025fabd210ec975f342818feb7b15c7f688873cc673f3da0e328c24d9a0cb915940a788add16ae4e4e3908db5824af1d02576 WHIRLPOOL d5349e50cc3d8016365babb30ff57a3f9bb40e508acb48b829f8a938f725973d54b48a0f68532acdac9b1aa202739c090e79af44011b21b5ac944ea30fdb1073
EBUILD ffmpeg-1.2.3.ebuild 8938 SHA256 c93bdb73ebf4c2fc20f047983e3532cecd533918218196777de3e730f6cc0db8 SHA512 87c906c60da0302d4f3c5731995ec3a399d1c2b12ed571d2979d8cedfec8ebd561750da16449d76a684fdd1b883eeba7e782c3859148da8c9286acaa4cd33cbe WHIRLPOOL cb3f2b83ae6f849db0c7344cfb79f64fc06ff87f9dd7ea39f3352b8337ade1a16dde5b404a194c8e4185b8fb6b20f4128a80b19bb579a21503bcce423bfc35a4
EBUILD ffmpeg-1.2.4.ebuild 8938 SHA256 355e1e93f1e29be91bccdae3e8a29a7fb2200eb6cd8ef65d11afbf45ae49f714 SHA512 67386dd72541faeb911c2ccf93d29becd149dd47af17c857062dc438fa38e6235691595e1fecc1a6506d485844589b6e60f04006e57726c5d863b2b684f072b9 WHIRLPOOL f0c6a478834ab4132753d3253ce7cfc7020a929067a7baaaab49b19451ae8ec3b4e8465a45dc6ef490630932220d82e5f10c2f101206be58f0c99e58bf65becc
EBUILD ffmpeg-2.0.2.ebuild 9757 SHA256 1a73660a475f3a910e627fb356a787c00cfff1d5d1dd069aa93af8a1d4b0c613 SHA512 c6156d4301d691f2442066cdb5b020416d007dbfda569ba5f3c1851ab48a94f6775eedbb54ac4e930d281e7c142cdf178d20b8ff927d745eaf4f070d5f80be3b WHIRLPOOL 8448dd2b1b2f556949216f771a0ce44c24a80afe948898dfe6c6fdaa86c5ac302a8f6b89beb410fc388618779245bffdf5442c6741bd4832507317ea67c19f67
+EBUILD ffmpeg-2.1.ebuild 9922 SHA256 ada45fb54f06e6be078dde8594d51a83fab8a58b5be5154c75e33aaccde8085b SHA512 fcae83cfd6f6a102fd573818d1e55f47a194a248218124e2f121f7866611bbf082be7bed44cfef29beee675a980b83fd76af6832901b2d6b8cfa6fdbe52d23ad WHIRLPOOL 2d70f8fd5cee37691d15e9f0fa87a30455e5d0459acce9a5489e3a1467cd5eb6646610dacd7f5a73515de73ff76719160abead0ea920e33c5c4be972e6df1402
EBUILD ffmpeg-9999.ebuild 9925 SHA256 2d9183864b2fe21859e3b04d40b1cde163bcb5e76f7975ae0c08a81bd2d43cd9 SHA512 c708c7009e690005415708919c63764e7353254ceea41938ff280681ea055a1f5d173097e48fb85f81e42368d8ad645beedf5a8b52c10f98e630414650f38b5a WHIRLPOOL 65a3cca3423e90baf6792039cabcdc79ecdc9ace59a903b301482fa51a82f0449a78b56b7b4e32ef4c0881e07362272bc718617980ad2cb5b8c16a3cb0a042c0
-MISC ChangeLog 96279 SHA256 becf5d7d11880503879413a4188a88923c10268b27d582082485e141d53d0666 SHA512 a85c6624e8e2046638f75a0100dc40ce72290ee1a43ba700b45cd50801440d6b5d13f39fbed468af7ff64a622814c050e6a38b259e8fae5d6d88892b7caf8b12 WHIRLPOOL be3a281aad696f560708801daefc0ccdf10470501d5d05d2b0afa41ef7bb6177ff2397212d575650b4f0a6688f893f61c1ea9ced7205c0b6f2e740af46a90862
+MISC ChangeLog 96394 SHA256 2add3e24a5ec38c56d5902c63bac96823a728f6d64e8979819de8b1fda519912 SHA512 129da0b79418564ebe3f2932d4eebc6dd5e8c8831e162912da80c59b9979cf199d471be5b76afad97d962e44fc20e258a3ff23005c7cc62c2b2acc37770f76fc WHIRLPOOL bee64c19b7be873075955aafe72abc9179c810a00723caea715a28fe938abfa93273fde8f4eb39a4b9513bd13a62552c173d859016213635146899e7efeb9ee9
MISC metadata.xml 4146 SHA256 474b6b289c999523a070334dfa7ee06f58a3264704c7352a3a1ae47b71daf46f SHA512 c3f32b37a9a250d1af577e6b78b450625e2b9b891b7c5eb7ee021f0c15cd599f893dce2f16b0b6bf2f58fd6e67bec6bd629e053c5d84d1e95ce355f2baea8da4 WHIRLPOOL 39e5994f1daf7ca5057275cf20b5e24a4ef277ef5687ecdde5987335432f8efbb02beea7d4fbc5c4e554c589e5edeecb19291b74a7b7972d72fbdc7b0d514de8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlJ5S3QACgkQvFcC4BYPU0ooUgCdFDYEGLU36q8R+vehlIJ5jOaR
-3pUAoLYodbRJ9OIbnNnR66QRLmQEwKa5
-=JwBs
+iEYEAREIAAYFAlJ5Tb0ACgkQvFcC4BYPU0pRZACaA9de8ylxjk5y96u9ReZqPSh5
+rwIAoKMpy2PxvLMQBXcgVh9+6dLiaVY8
+=eajR
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-2.1.ebuild b/media-video/ffmpeg/ffmpeg-2.1.ebuild
new file mode 100644
index 000000000000..8de34cef9b7f
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-2.1.ebuild
@@ -0,0 +1,321 @@
+# 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.1.ebuild,v 1.1 2013/11/05 19:57:48 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
+ ladspa libass libcaca libsoxr libv4l modplug mp3 +network openal openssl opus
+ oss pic pulseaudio quvi rtmp schroedinger sdl speex ssh static-libs test theora
+ threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack X x264 xvid
+ +zlib zvbi
+ "
+
+# 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 avx2 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 )
+ 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 )
+ )
+ fdk? ( media-libs/fdk-aac )
+ 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 )
+ ssh? ( net-libs/libssh )
+ 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 )
+ zvbi? ( media-libs/zvbi )
+ !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 )
+ ladspa? ( media-libs/ladspa-sdk )
+ libv4l? ( virtual/pkgconfig )
+ mmx? ( >=dev-lang/yasm-1.2 )
+ 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"
+ 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 ; 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 ladspa 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 fdk:libfdk-aac jpeg2k:libopenjpeg"
+ use amr && myconf="${myconf} --enable-version3"
+ for i in bluray celt gme gsm modplug opus quvi rtmp ssh schroedinger speex vorbis vpx zvbi; do
+ ffuse="${ffuse} ${i}:lib${i}"
+ done
+ use fdk && myconf="${myconf} --enable-nonfree"
+
+ 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
+}