summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-08-11 13:28:44 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-08-11 13:28:44 +0000
commit58b4460fc81a0fbfd1fd060080bac06ed46c0c82 (patch)
treeaec8ef9d40ab790d2b0cd48c3e8c8bfd3d1a3b69 /media-video
parentStable for HPPA (bug #480364). (diff)
downloadhistorical-58b4460fc81a0fbfd1fd060080bac06ed46c0c82.tar.gz
historical-58b4460fc81a0fbfd1fd060080bac06ed46c0c82.tar.bz2
historical-58b4460fc81a0fbfd1fd060080bac06ed46c0c82.zip
version bump
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-video')
-rw-r--r--media-video/ffmpeg/ChangeLog7
-rw-r--r--media-video/ffmpeg/Manifest22
-rw-r--r--media-video/ffmpeg/ffmpeg-2.0.1.ebuild316
3 files changed, 329 insertions, 16 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index 7a1d0c96ffdc..ffe33dd0f973 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.671 2013/08/08 09:45:01 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.672 2013/08/11 13:28:36 aballier Exp $
+
+*ffmpeg-2.0.1 (11 Aug 2013)
+
+ 11 Aug 2013; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.0.1.ebuild:
+ version bump
08 Aug 2013; Agostino Sarubbo <ago@gentoo.org> ffmpeg-1.0.7.ebuild:
Stable for sparc, wrt bug #473302
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index f656000f1abe..c7744013da48 100644
--- a/media-video/ffmpeg/Manifest
+++ b/media-video/ffmpeg/Manifest
@@ -1,5 +1,5 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX flashtest.patch 2343 SHA256 fcd05d4ad3f8cc6dd64a55c83279bd5738002100f1cfdf2f4ca8c9547f5b9a28 SHA512 e2994e3b25b207021e00ed982a82efa8ab2fdf2499f5ef97b7f280a0abd33fac639b7e26c26b5ed7dac70931c009b7062b6c91c4b4b38d30a29f8b364a837ba0 WHIRLPOOL 78c41fd6dcd7f698b92ee6f9ac0c5c5d80c8e45c3dffb8c2bff72f0802084b78ce601dd716c6ae7b6bc6641b4f98a1ec33acfe761a13bcfaeafe3677fa6e3ee0
AUX freiordl.patch 611 SHA256 4857bbf856e2014f41d89d0ed0744f7bb3277e5600a877f2b84e0aae571f3dcf SHA512 1d7491e65fec247d9cb6b14e9a494f55e3a88ca9ce0962b7874e3f3e5c087ca7672bda5949637f4493c49a388070addb9db909c2e384f8a4349609ec02e7dd3f WHIRLPOOL dc2bbc9c95dff14998ef8f7f15c55b9cdc9464e01e036c3b67935d9505596360d103aafb9a50b43e6d2e78950664c4b6f214a874fc6aa29727397130a98e6511
@@ -7,29 +7,21 @@ DIST ffmpeg-0.10.7.tar.bz2 5782181 SHA256 f5f3fc43e0f7789a3cf8f4f379851a5a838dd6
DIST ffmpeg-1.0.7.tar.bz2 6451535 SHA256 f7e52bd5e0de064e36ecb04adf155c31dd30366a13168fabe61fd135f24d5c11 SHA512 a3a756fe50773551de58113de7b848f6ccb21ed2cf5c5f04387694937152ae978639aa92e4207cc09f384f34093ad2e6ddf7dfb334097f20f1326e13748f57d5 WHIRLPOOL ba2cc60a7bd7de1dca7f6c9ed02874db0f711c273d9616c5eeda0ee2b33fa9e36f55eb812d75e24583f81098505635ccff018b7aea67dbe9b3fd18583042fb73
DIST ffmpeg-1.2.1.tar.bz2 5968378 SHA256 0302375c3a64e9c2facfa7cbeb1aa333a39fdf6bbacda228cd48e04bf9ee32ca SHA512 71f7318744533938f179b261b888144a19de533c77e0cfbb888a90258508462c84a95d4436727513a4f42af810a84e3e27d965a9c8d6b58c8d56aeeddb834f6c WHIRLPOOL 2ad9d81e9bbaadc0ccafc77c29478b2042dafd4cca71b65805b5b90b03248cda99c49000a80ae62cfb9ccde4fcafbddcab6d99547e2c2824498a893be40cbbb4
DIST ffmpeg-1.2.2.tar.bz2 5968091 SHA256 1cb29ec4951f5941ea43638ea1e3042e3d3215992bda03f45628e8c49cb21064 SHA512 555a9fee6c5017602396362a7d073d444ef7539f020a2437d9fa7849310a4956e716fd60a956e1074e6f57fd260bb00cd1c8178bcd4052a3bad0117c1683e8cf WHIRLPOOL d77d7071fa048b55591f0d7f3b5a6631ca81a27d57d3988acf215f66ae7006e2975109fe23290379a7f51e42bc9d0374dd7f1c431f7cfb5b84546fa9fed1977c
+DIST ffmpeg-2.0.1.tar.bz2 6187933 SHA256 611eae7e3485d5fd9ff03e0ac7575ea89bc8105e40e99a40de02324957482f95 SHA512 8589de3133881616ad2fa5e66338c4a06a01cb102dba7f60b63127fcf359227cff8fef652bf4c991554296edf7aafae1241afa764fcf5ceb571cfdd2e9bc6051 WHIRLPOOL 816c1c3f4d41358dfa665b6d35b48901392da8d8583348f1e9e024a7bde8c9e89809524590e427048ffa390ab9ea2e42b7e69806fe641e8181e6077028e4b3f1
DIST ffmpeg-2.0.tar.bz2 6188516 SHA256 940e1bc4f3e185364099b4ba60d4b952615a4232c5641baa3e9f45d4d748130c SHA512 0cf1284d091d593ff7cb93647baa7227e0d1aef5eac30843a198a9f12a42db7e5d66f15df162d57ac51d07cd78e17d1e577fff425f0e04bd36f414100209d032 WHIRLPOOL f7b305680569d1fc314afc7c23604620612e87cbe6842cbec3c0f469bd0fbb6b2dbf55bded118c57b168940367f8d19a6a6cc5f58cf3545ce582652b86820124
EBUILD ffmpeg-0.10.7.ebuild 8938 SHA256 f5e01fac8854398bf96c3200c57556e8888138dcda36e8aa9b9578fa62ce4e2c SHA512 91ca4ed62938bc3af03ab5a2030840bbb0f1025f6d5ee2bbb463fe1a9cb7891af3d7beb443b974977360ddf979b35c0a012dc13a5bb837c20aaf0139481b935e WHIRLPOOL a05c7f31aea2d685df8cd5fe6ce36182cbaf48cd9cb7e5c2dfaad34d2637cebe377dae7a46644b3f886e27ac81db98d43f62362da48697a5b978a1ff1ea769d0
EBUILD ffmpeg-1.0.7.ebuild 9565 SHA256 4b70f4da11326fc641bfd820ee45b0afeb00d86b08dc15cde748c6bf73a0936e SHA512 bd0d3f65ec470a7316a48aee18e055622c7b6ef06fcf2cb68e9963df6da8dd1aba6213397c12cc6cb50448e65308eb2c01a275a70d835c5907d028f979fbdb12 WHIRLPOOL 04aae1725ca77a4d6ae16c6770f70e540d1642890dd1370b9f3932f2e1ff663b1bbbb661f668ab72bd20aabca94d3f9a716011a12868c4df72904131e732542e
EBUILD ffmpeg-1.2.1.ebuild 8906 SHA256 c21f557ecbb86f6f9b7ebc1dc82af7d6947c1b303c0ed5745df395d546f1c463 SHA512 f03d8e0249f5f7e0dc15e76aa3ebe72015b265c41a30d3862d01953e8eb2cbde83bd0048d478b58bbe2bb01d95531a36ac50cd54bd4ec5132fd5ad45acbad65b WHIRLPOOL b187d9ad2e72abedf4c979b7c833516c216843f8ca177f5a7c246a133682536b035eea66ba0cfd7414f44469ef47b7e6537a494afda990b86d08e80e1c36f2be
EBUILD ffmpeg-1.2.2.ebuild 8906 SHA256 3f3eb8eba6c7fbba88b85d313d30d9d0ce64f0e8a86e9c66b393a05cead24527 SHA512 a508bd2035dd8abdcdb388c53eea2b5f6e8cca2910281d3963e6a1c276eff23820c1bddcca75ad104731cc4659ab7de3f54289e5e409e92ea99ada00c0781d0e WHIRLPOOL 0b144968610ab31fefb14f4a67d2853d1e528df7301bac8c4957780a7b28b6ece53730b109da56d86a38410d2d8dc97a08c4485ae6529c9ba3e6c9706c715b49
+EBUILD ffmpeg-2.0.1.ebuild 9725 SHA256 72887964add4b59ca93f89cb4ae70069af569d7aee5d0a3bdabb620bc29f595b SHA512 02b95c7e9b35c724b8d303cfb6421026bf92dd8947b5111e902f9c3e8ceca8cbae497ecffe517aaabba27ba90bb96066e10e829200f6e1cba2b015b8c8734a6c WHIRLPOOL cf799ad929133ba31f25bd72b24328b3d2f910c472d87bd2deff53a1664850c4c16e707159213348b7e561f9b53d69dd2f306fb2f9f99b56babc2c91adce2d92
EBUILD ffmpeg-2.0.ebuild 9723 SHA256 387e56c3af5ff29d0576fc78047405534265e433ef6e92b8671b1e5f3cec1715 SHA512 c1197285f75e6c62e3fb73b6ec32556d1f070c9359df574d4bb3bed421a2717385d75825a599e68fce8b0031d76dc4943996029d9434d7ed80bf5644375428f9 WHIRLPOOL fa35a1d3e4738c5226e0e1de7bd65109a1a9124bc390d44a8e250da09e9c60008c3b5747224ec1450af20cbbce5b9d070e6dd5b19a6f0cf25faf3894c5fb8095
EBUILD ffmpeg-9999.ebuild 9726 SHA256 5dd9858a0a1ef549fbbc2a823bc6262327dda8b88dfad498684e7be2a7b23631 SHA512 6e38f164959d5a8bea80a6eda3aaf4c1194b56305922881d4d2aa9c4f03ea9844b2718fceafad02d4ec9cf3762617653ece8d3ee520f53065c584ac156453064 WHIRLPOOL 1770f08a226a3e201bb7545c2db380cd5d80a2ea600791f212dc9d0c40731ddb6721421eda35de60bdd41c2387e1bbccadab959316e87cb77ae66b3d86333dca
-MISC ChangeLog 93656 SHA256 70b4e78b224a04b736ed778713a81574287851f025cd72195d9725ec7a6268c9 SHA512 62ffe8abda63ddafed3734a6de1a6896c7298202b084b174914f451d7735f6b60c7155507c1c8641190811720561c4750c5b3e53810435ea00790f6411798a27 WHIRLPOOL 0219fd0dee49f51cf10c7ddd3776b3214093bf0faac85d06dcef7682c5532684fe2c77b26e1a346c0eb092b9c8a1a1ca4e5f0e9c6fe81d3bd4df769ca979e26b
+MISC ChangeLog 93780 SHA256 7980eba43b9690f34e970d5f9616121684351cbd0a11657a0d97b4bc62e97c27 SHA512 696f6742983c394e142462604c4e49445b988759464b6105eccf7ab64a333116945a56cee689975cc585032b8936b7d2fc5bd267f9a230b29fe5cade4323fff3 WHIRLPOOL 1c22262fcb8456dc2b4a7e94014d41414ddf75150b8d2232540ef04b9c2e023cc7b1fd66e67712074e96cac0a8698c2cc6176871e0940278430a9bfb71e7e81c
MISC metadata.xml 3860 SHA256 0480b2ab42cca74fa5abe6d7f40ccf82c81d19eef97b88878ec07afc83ad6fa8 SHA512 3a1f45a406c90cd54354f5d78d9e51883dc530f904b56c822ae843e87632a6d64e11aa23c874bd47ba40673addc579d9b76cf573434717ab1f0fb4d8ff4e310c WHIRLPOOL f62cf68b99f10188af3f5b7cca0a6daf614cfe048ebd8c4f802a47105a3f839d680487ae1be2144d10dcf5c475502ad3d4092d6fd4c491a924cfadada1f62ffe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQIcBAEBCgAGBQJSA2fdAAoJELp701BxlEWf2qQP/AjfKVnCxH50gO3dvt3mbd+7
-81r531q2fNe7v5QshOwVJw/rkNrmfHY7vprSS9M1/ke6vctgylt7+W4fKDCzsViR
-Errv4JafjhQueyFDTgxokOxpPBZMlWQCcXFqBv7u4hI3bM8koMrUqTsb3C5ND2JP
-CnfIBH+xZsqpWhL6iq9nbk5pAmcsMuEO+UJSCxl7omcFSZt+HrJgc/VbqRQhjcIv
-/FSkYvNUy26dFy8FnIsXtwFxlNiyFMpEmUMapmwx35KjeNdmFFj3TLH/AXk4zLW3
-1LvxeRLTo2lCkyAEeLxIUcRyO5mQ/7lB2IuvtC7kyf2g9sEvBX0XMdbBp7q4e7eU
-ZZegPHUudp+g3TOfx+I4DD2fVfMV+QSHLg1VNmBdRdx9XioaswyycHWvIBZEu20I
-1r0LJU8ZBm/MTGUidlBCQg9MzfrZ4tkZjZzKeyXPIh6vaZ4eHaZDXV+7ZzRXbubF
-js7ml7NwkyVUDSoNTby7hxMK1GQ1ORemBe9t1SpunQmFEJOy0IkR/LqryNDpNFod
-dsH3MWBzQGddyS/cPuvOcAasDdLMXBHwMr+OZaoinF2Dq6qlihvv9iOyQT3fCjzk
-d5n75aEhP9bJdAwm83d3WHeXYIqA9n3ysO/LKmCMmb4MXTflYogSjCornpTZdveO
-JE4vz7sxlu9ioA5s857n
-=Pbm8
+iEYEAREIAAYFAlIHkYYACgkQvFcC4BYPU0pcVACdGi6imOsJ6P89SGrOlMJbVChl
+WKEAoIRfEAKx1ANfu66BhtKDSMY39KL7
+=zFYP
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-2.0.1.ebuild b/media-video/ffmpeg/ffmpeg-2.0.1.ebuild
new file mode 100644
index 000000000000..9f9740a1f31a
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-2.0.1.ebuild
@@ -0,0 +1,316 @@
+# 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.1.ebuild,v 1.1 2013/08/11 13:28:36 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 )
+ 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
+}