summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2014-01-16 20:02:01 +0000
committerAlexis Ballier <aballier@gentoo.org>2014-01-16 20:02:01 +0000
commitdc903ef30fdbf1bde88a538e5b82c9b91167da2c (patch)
tree36787ccd4d935b031f31575692511978a3ca82b3 /media-video/ffmpeg
parentsys-kernel/aufs-sources: Bump to latest genpatches and linux release (diff)
downloadhistorical-dc903ef30fdbf1bde88a538e5b82c9b91167da2c.tar.gz
historical-dc903ef30fdbf1bde88a538e5b82c9b91167da2c.tar.bz2
historical-dc903ef30fdbf1bde88a538e5b82c9b91167da2c.zip
version bump
Package-Manager: portage-2.2.8/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/Manifest20
-rw-r--r--media-video/ffmpeg/ffmpeg-2.1.3.ebuild333
3 files changed, 345 insertions, 15 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index 0aeb6fd889ec..de3d062fab7a 100644
--- a/media-video/ffmpeg/ChangeLog
+++ b/media-video/ffmpeg/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/ffmpeg
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.702 2014/01/15 10:00:11 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.703 2014/01/16 20:01:56 aballier Exp $
+
+*ffmpeg-2.1.3 (16 Jan 2014)
+
+ 16 Jan 2014; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.1.3.ebuild:
+ version bump
15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> ffmpeg-1.0.8.ebuild:
Stable for ia64, wrt bug #492252
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index 5d899dc91858..b26818e6d347 100644
--- a/media-video/ffmpeg/Manifest
+++ b/media-video/ffmpeg/Manifest
@@ -17,6 +17,7 @@ DIST ffmpeg-2.0.2.tar.bz2 6191390 SHA256 986f63dc0785f473b1832d0eead502e39c9706f
DIST ffmpeg-2.1.1-freetype251.patch 2824 SHA256 4fa40d2d0f16114ec5e328d581608e475040512eb3f27b93d896250fc254f58e SHA512 453ebda19b661c4b077d0214acb38afadd5e2743e2df03f8d1ba5bc37e00a3fe92c4d8b641054d56fe637e24d0989fcc8461a5957bf9086f08475875085bb3be WHIRLPOOL 5b4db507ecd9519d919018d55477bac678fc3d99104949bf0f618484e8018aa2fc26947deb96c5bb98e0b15bcce4372d74587dd3bc9205971f266771cd8ceb6e
DIST ffmpeg-2.1.1.tar.bz2 6641619 SHA256 bef95e5b9aac45adec7ef434537504a63b4bbc22a8ce6a96a68e19c5efbadae2 SHA512 762691408d536753a08620162b04d2b7746e814d666e6e7b5341f4731de5e38e043ed47a6f0a96a09795aec8de07814946911fec48e8cdff60d0317f85a4b7e5 WHIRLPOOL bd14c405eea1b4214773a075ff4e7e902de34f1fc7a7a48722c295549b76e47ed51674996d1e065a96d71259463ae8ecb4b9be5223a298f58603303c2abf8f19
DIST ffmpeg-2.1.2.tar.bz2 6640036 SHA256 80ab38a1990f6489775ba5c8fbe0e0f65c6d704e88c6a77e95d2feb6254fba5c SHA512 2423a6969ea02b9b325ed68a88fd419385a5119adb07db5b1689b38b55af1cfad4c28abf03d17fda2ddc15fc89bda5197c6a9fa6e7e487b479e952a49f6d5a2b WHIRLPOOL 2d5686d00c3e874d3f460d9d606e93a6ed94975f1dde669cadb67856bf068074cf504be05485d26088a2bb6e2df610367531677bbd22085e88e0c9120284881c
+DIST ffmpeg-2.1.3.tar.bz2 6638987 SHA256 1d332e7fd35f87e1ffb6c9b0405cbfda085ef712ede0133a213793a4e66d13a3 SHA512 fcaf04089c6081e476c23220c33d67252f8eecacc67a79a23a658865cab896cf5f29f8825626c09151539aa35dcae64726bcb6f96fadf51bc8b9c4e5fa3c47a0 WHIRLPOOL 9c289ac74285c7394de8fb34ab65c25835ab1a56bec51dd888e3e6899a9680d0e4bba68d92f685a0b5439be5ca51b0799b15c0bdeab5105720c5fe558319dc38
DIST ffmpeg-2.1.tar.bz2 6640774 SHA256 926603fd974e9b38071a5cfc6fd0d93857801d1968145dfce7fdc627ab1d68df SHA512 e4c98a6d92c3e89ca55280c7e399f6abacc0f2b8d2e97662202e988b9632f124dd849cbbdd7472dc1d77c22d5ca023f6be14173e2b567a0d13775f64fbc08099 WHIRLPOOL 0ec7fedf2c90016f4baec18a5fa7d2f078e5f4405ecc66a9d6025ccfe3b56f1abbe7673926b34670e63ee968333ec1bb6b279202e160f826ff857f80141d790f
EBUILD ffmpeg-0.10.10.ebuild 9688 SHA256 9b558b48ece44c0bd24b0940439cd371e359b0f25004668a7a690696e631db32 SHA512 36297d05c87f3c104765e44d96c2a4fae00c26a8e637f3baab9169234fb3fe5bc97eef36af1d69c4dcb18b086afb2db528708c544e1c5f17a1b1121580c5aa2c WHIRLPOOL e025d23cdcb7dbc8e386ed74ec8ccfef232d24007c6f969d73515bcfd06c1420b0057eb551e2036a3d72bbd2f8b830be18a2d982540ebfcb18c3c594a59343c9
EBUILD ffmpeg-0.10.9.ebuild 9628 SHA256 1ae7fe6e3d8cfff291dd06abbde97523225a04d69fa5634d999a233b0d65184a SHA512 282212ba8a13e6eaf8676f0a6b08f506ed5a183f050abcd30fef30f301248368a51dac89d5185332a25b4c59400b125467f8b277cbf58f3ea5d0e9e0f79bf5dc WHIRLPOOL f8602667c35525b7339cd3df4610e444ff762a13081bca9977b4728d8a8d6084a873eb7c170bc5e99a3d993ad5f1108306e40d94fc1d21b9e181b538823493c2
@@ -27,24 +28,15 @@ EBUILD ffmpeg-1.2.4.ebuild 8995 SHA256 470de6c8c403d844e876d4fa3d4b41225931176ea
EBUILD ffmpeg-2.0.2.ebuild 9814 SHA256 e87d2e765d731e2db9e83186eb002d52b645972d54b5044d4feb1312707d046e SHA512 a1ffd624912b33dfb9545d55fa401d74798d3320ba71171423e70994a475c954654cac97e393ea60aaf248a2fa88bd9f3577770c643241e9f9976fd464e152f9 WHIRLPOOL 4a57bfb9c8d5381ddb40cd30836ce38017ff94096317f1c968a4b3f18e2b6df2392e3550381a1f8468738bce830f38e4f35d9f48f7571d62bca16b2803ea7398
EBUILD ffmpeg-2.1.1.ebuild 10115 SHA256 80bd673d4564818edc757d17482bb0b18c8d5794f94c5054b20368f9f49836fa SHA512 51d0fb7809f36e55410950921a227e66ca195f3b093aeaeed495ff83c0b9e62531ae50fd131797e90593f231a83a740411f978c983374efd66cbe90bdf76c66a WHIRLPOOL bae4a119aaf9186b6e7de8c3a7b1a5f1cdc97e4a11f27d3b2a811e17b1417f88f044b194ef0506f5ef7f189382923238116e09cb274b4e23b9e4a7354dc30e6c
EBUILD ffmpeg-2.1.2.ebuild 10240 SHA256 9cc7e31daf6df0f360ac67c0625489ef889e293dec8bcfd39b3d4a0e8a1db535 SHA512 c3223f61b7703653a5508e12d02c6e5697714abd5d6c0d61fc481d7f66251e1c78656d12abb72d06aa8f1a1b0a934170b98cf1df4dd9f8862a2a8e0daf6f228e WHIRLPOOL ecdf7ca9fb9b56105412c0267fdf2ce301f88380675eefc6e2349ada2614d7274cb0e8b3a4d0645fa9866c08494f0a1f6d80d235822ecff68bcde03a069810ee
+EBUILD ffmpeg-2.1.3.ebuild 10240 SHA256 651ff233c63eedadd1483a466ee3cd17eb71dbebc0f621c66006ddb7aaf7c40e SHA512 4bf23e409afae7c517ca516472548742d8a7dec3678436ea9b26f590f05a53f3bb655aed6eeb4424875dc4a9c886e8f4968d56f25d3441582a5644da6d6f2938 WHIRLPOOL ff1e3032a3e835a35d4ee54a6984e37053398163c89f9eb5133e2dd2afd41b0b91e5b48c437839fee793f5c7124db8851dd4207490290db453d9be07d76f0004
EBUILD ffmpeg-2.1.ebuild 9922 SHA256 ada45fb54f06e6be078dde8594d51a83fab8a58b5be5154c75e33aaccde8085b SHA512 fcae83cfd6f6a102fd573818d1e55f47a194a248218124e2f121f7866611bbf082be7bed44cfef29beee675a980b83fd76af6832901b2d6b8cfa6fdbe52d23ad WHIRLPOOL 2d70f8fd5cee37691d15e9f0fa87a30455e5d0459acce9a5489e3a1467cd5eb6646610dacd7f5a73515de73ff76719160abead0ea920e33c5c4be972e6df1402
EBUILD ffmpeg-9999.ebuild 10241 SHA256 106a0829b277b20aafe3fc3ce1641be5de8115cd6b51c9cbb3367cd5f5c5b8da SHA512 1bc41a81002a5a0c6a7edf4cd7701e630d24017c4ec68ac2bbe350e58fb2e2bb1ae52f3be9532ef82b8ddb01983a0d88873029a378dcbf28020429df407b7d9b WHIRLPOOL d17f07f3267ca26eafd7949d9ca3702ac55dd6d1e4c009a3802024e3a5e24cce1b70f2baa94c977e04cba27d986a1d907763f327f400305dc153cd23a836f05e
-MISC ChangeLog 98020 SHA256 4b468f543dee7e236a61a73b56d1141d66ab735dfe790d19c2050e2232e8f6d6 SHA512 5b82a36b5a1d2b2ab3bf616a3cb76c64ee5023fd443feeb19fee2adcf56a90f440d952be683cf4f2803b1b98daa3a8cd5f2cfad0470237f9b77a42000194ead2 WHIRLPOOL b598910305c7711967cae2b735976cdc37365515b3c58708ad5cc69dbf6377bf2388d1f960133c0631fc9dde49702abfc93be1876f8278a13756b62ac3d7eb23
+MISC ChangeLog 98144 SHA256 1383e06cc2058823189cfc8394fb0a7175a4fac1c7096952e018d160ea8e5fa6 SHA512 65c8f9cd34f56b850d844438c9b4359f677f2890c2f92dd5fa8f8b195123a04adbf6b09daa8627cfcfe36cd8b6c6df8e8d07bcf88f6d52cb057c3d0a99b92054 WHIRLPOOL b02c107f0cfafe7dc1aabd056c0276760775f3d58daa4c2420df05d31dcf6d0ffed0fcad8f25c15fcfd3ffdda43d93b653143ef1b59c920153e9624ae16fa2d8
MISC metadata.xml 5023 SHA256 99bbcb090ad6c7f40d1a19c14d5f31beb67023664b5e70d53e976ff6ccb03114 SHA512 8c067e95750c3868fb3dd987d66e4e9b3e6c17bce33dba3bba80d96d49fb293ae25faac505cb575ee00cfcd4c912e47831dca559aef06b4f921a34762b750169 WHIRLPOOL 4b05d43fd76ee436db935b681a21c9e267c6ab169314ae30e5b20c87386b37dde3694cf3a26910394607b0458cc974f35c79bb640c889b4ac6b07cfbb8b2c627
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJS1lwsAAoJELp701BxlEWfn24QAJqqMWfA81QcITK12Bw1pgiQ
-jGivfpzI7l+5JzTeYrrqK2np4SNRKYK1YakORXTsRPB/x+TGRxWurct9N8KuiKxO
-DKYK8pNPV+YCjDaEmkxdE/Zi8q0RQQwf050AYbBGtFNzQ1ZLEh+nX+ZHgC3Py31X
-tcBOFGFwtrdp7i5wgZRYmwJ7h4cxLzS+fwzuMkds4SbtIDYJdNwztTE7paRHy+pb
-Z9Bt+WIlcVvMc9WNirRq6lC+P3HwUGJZYVRxZSG50Ke8v4eadGDexsOdUgd10O/j
-OBvqhP+TBxtaS1tySf9eKpoueOibAgNyf5OpQ2+jo9EnFgjwIBU0TGqDhj4mUn/a
-lauKg545px5FmiN2kao2Dc2p+VJme6199qldwdyE/RaHPppGRNDsL1YcEVuaoZHK
-ia2qfjHEMYpXozWWpOjeR23F8eq2ZRU1w8pCjcKUzoaPkY3mAAmm0CyO6Z1QXb+M
-/MankwwpXOo5QwwKAGabliQ/eGFK+UaYAIrxUeQfbwjTrCumXDmCF7Svu9x/7rtR
-2wsP1OpSwQpHN9EfFxPCby5DGVfKfNzKbcCM3j+GmQL8mMiPTCqVgm95vqpLBcW5
-IYhbTBcpk31Er7m0HNpGfGsPO62ciebic84QByMcckWsXzjuFXYDutbw24dHSYOZ
-KrtSoJXE5yAi+7Jby0Up
-=kW5K
+iEYEAREIAAYFAlLYOrYACgkQvFcC4BYPU0ouqwCfXZqh0egD41C2FwsE9r/1XyaY
+VQIAoJ8lS128mo08rsqoWSlr9utWqU4S
+=Zhyt
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-2.1.3.ebuild b/media-video/ffmpeg/ffmpeg-2.1.3.ebuild
new file mode 100644
index 000000000000..f6172b126a22
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-2.1.3.ebuild
@@ -0,0 +1,333 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-2.1.3.ebuild,v 1.1 2014/01/16 20:01:56 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
+ "
+
+ARM_CPU_FEATURES="armv5te armv6 armv6t2 neon armvfp:vfp"
+MIPS_CPU_FEATURES="mips32r2 mipsdspr1 mipsdspr2 mipsfpu"
+PPC_CPU_FEATURES="altivec"
+SPARC_CPU_FEATURES="vis"
+X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext avx avx2 fma4 mmx mmxext sse sse2 sse3 ssse3 sse4 sse4_2:sse42"
+
+# 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="
+ ${ARM_CPU_FEATURES}
+ ${MIPS_CPU_FEATURES}
+ ${PPC_CPU_FEATURES}
+ ${SPARC_CPU_FEATURES}
+ ${X86_CPU_FEATURES}
+"
+
+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
+}