summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2013-08-12 00:03:15 +0000
committerAlexis Ballier <aballier@gentoo.org>2013-08-12 00:03:15 +0000
commitab8c8ec9da3a2a71a4ad2822ce6d3a9a480a3522 (patch)
treef97205a24bcaa0df9b75703ab4dbb6fc28438016 /media-video/ffmpeg
parentNew revision with ffmpeg:0.10 migrated for libavutil,avcodec,avformat and avf... (diff)
downloadhistorical-ab8c8ec9da3a2a71a4ad2822ce6d3a9a480a3522.tar.gz
historical-ab8c8ec9da3a2a71a4ad2822ce6d3a9a480a3522.tar.bz2
historical-ab8c8ec9da3a2a71a4ad2822ce6d3a9a480a3522.zip
Add a slotted 0.10 version for binary compatibility and multilib. This is outdated and has known vulnerabilities but much less than the version bundled with emul-libs.
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-video/ffmpeg')
-rw-r--r--media-video/ffmpeg/ChangeLog9
-rw-r--r--media-video/ffmpeg/Manifest10
-rw-r--r--media-video/ffmpeg/ffmpeg-0.10.8.ebuild271
3 files changed, 285 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index ffe33dd0f973..2532de88a06d 100644
--- a/media-video/ffmpeg/ChangeLog
+++ b/media-video/ffmpeg/ChangeLog
@@ -1,6 +1,13 @@
# 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.672 2013/08/11 13:28:36 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.673 2013/08/12 00:03:06 aballier Exp $
+
+*ffmpeg-0.10.8 (11 Aug 2013)
+
+ 11 Aug 2013; Alexis Ballier <aballier@gentoo.org> +ffmpeg-0.10.8.ebuild:
+ Add a slotted 0.10 version for binary compatibility and multilib. This is
+ outdated and has known vulnerabilities but much less than the version bundled
+ with emul-libs.
*ffmpeg-2.0.1 (11 Aug 2013)
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index c7744013da48..a465db6eb5fe 100644
--- a/media-video/ffmpeg/Manifest
+++ b/media-video/ffmpeg/Manifest
@@ -4,24 +4,26 @@ Hash: SHA256
AUX flashtest.patch 2343 SHA256 fcd05d4ad3f8cc6dd64a55c83279bd5738002100f1cfdf2f4ca8c9547f5b9a28 SHA512 e2994e3b25b207021e00ed982a82efa8ab2fdf2499f5ef97b7f280a0abd33fac639b7e26c26b5ed7dac70931c009b7062b6c91c4b4b38d30a29f8b364a837ba0 WHIRLPOOL 78c41fd6dcd7f698b92ee6f9ac0c5c5d80c8e45c3dffb8c2bff72f0802084b78ce601dd716c6ae7b6bc6641b4f98a1ec33acfe761a13bcfaeafe3677fa6e3ee0
AUX freiordl.patch 611 SHA256 4857bbf856e2014f41d89d0ed0744f7bb3277e5600a877f2b84e0aae571f3dcf SHA512 1d7491e65fec247d9cb6b14e9a494f55e3a88ca9ce0962b7874e3f3e5c087ca7672bda5949637f4493c49a388070addb9db909c2e384f8a4349609ec02e7dd3f WHIRLPOOL dc2bbc9c95dff14998ef8f7f15c55b9cdc9464e01e036c3b67935d9505596360d103aafb9a50b43e6d2e78950664c4b6f214a874fc6aa29727397130a98e6511
DIST ffmpeg-0.10.7.tar.bz2 5782181 SHA256 f5f3fc43e0f7789a3cf8f4f379851a5a838dd652144e5d2ad4fc727387678422 SHA512 d84cc9e678ee23b3ce2e0854c0907914042ad15ff0bdf4c62ddee71ec66fb23a2be89a4553c367eb79f6652a134bb33cf3c5e89a169dc1200fdb6f182aea4968 WHIRLPOOL a4fd815da627f20cfa2ea867129286f6016f2b54ca81fc3444edda5f224063173b789b92d1ce3812c3af6449f3652f9972365f63d20acfdb1beadf4bc2a1b6ba
+DIST ffmpeg-0.10.8.tar.bz2 5782880 SHA256 2e371088a71656be41b4ff70ae7e80a1d88c5149d6209013c9cce4b84278cbc8 SHA512 93d7305da4966d7fa2f07fe090ac608e52bb683984c12c8c1105521540fe48dbb6d6a99211fdff72ec514c36d5ae7b800badbab583eb20ad2dccee6a340632d6 WHIRLPOOL 9454db93a24f2a419a1388d0686c4a58cafe495eb387c145ee93a829ac63a4e779e9d697a5882b705194a8eeabcc992cf89158cb00da6d0f57dd71ab62d26c09
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-0.10.8.ebuild 9618 SHA256 b27e37bd4d5cbae19e2a9c038f3800cdf0d8c8b4b15df8378065cf817f3ce4b8 SHA512 e75db8449f51d85d45e34760d7e863355340cef1338056d87786ad2b4a75c199c0c3062a82088ed50baf9f2bf94492b80106ad50ab79baf2d8f93b92ed1a27fc WHIRLPOOL 3f6375c5e2db3f07931572a09ecf97c932a97ceb075195d4b8a9264d836451f45e2592c505da6696d1ac94a092f9e569fb47963317597091334e68edcc9730d6
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 93780 SHA256 7980eba43b9690f34e970d5f9616121684351cbd0a11657a0d97b4bc62e97c27 SHA512 696f6742983c394e142462604c4e49445b988759464b6105eccf7ab64a333116945a56cee689975cc585032b8936b7d2fc5bd267f9a230b29fe5cade4323fff3 WHIRLPOOL 1c22262fcb8456dc2b4a7e94014d41414ddf75150b8d2232540ef04b9c2e023cc7b1fd66e67712074e96cac0a8698c2cc6176871e0940278430a9bfb71e7e81c
+MISC ChangeLog 94060 SHA256 9aa76b80340057e594ae1cca3115312ad0eb2287951b1f0a288dde217601a45a SHA512 1fe125f9c77d69696416f72a672f5aa1eb0a5abbb5e81fa2f7dd502a9c99b2259ef29150dc0b24affc9130b86679c075eab511034cf14d2341980141f6184469 WHIRLPOOL 26ce024b0d010abddae325624fa6fbf73ef8d71ffb07dfd8a1aa58376ca0297d71bca5efe2a815dd8e7233cea427102c0a84419af58b3285c0ab04ff8c08bae1
MISC metadata.xml 3860 SHA256 0480b2ab42cca74fa5abe6d7f40ccf82c81d19eef97b88878ec07afc83ad6fa8 SHA512 3a1f45a406c90cd54354f5d78d9e51883dc530f904b56c822ae843e87632a6d64e11aa23c874bd47ba40673addc579d9b76cf573434717ab1f0fb4d8ff4e310c WHIRLPOOL f62cf68b99f10188af3f5b7cca0a6daf614cfe048ebd8c4f802a47105a3f839d680487ae1be2144d10dcf5c475502ad3d4092d6fd4c491a924cfadada1f62ffe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iEYEAREIAAYFAlIHkYYACgkQvFcC4BYPU0pcVACdGi6imOsJ6P89SGrOlMJbVChl
-WKEAoIRfEAKx1ANfu66BhtKDSMY39KL7
-=zFYP
+iEYEAREIAAYFAlIIJj0ACgkQvFcC4BYPU0ooKACdFDRWCCZ5ugLVI2H37cMLEx5/
+9F4AnA/TBfTH4J6z4ZEu9J4HrJ6WHYoo
+=5rY2
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-0.10.8.ebuild b/media-video/ffmpeg/ffmpeg-0.10.8.ebuild
new file mode 100644
index 000000000000..6c98a1fdaeb5
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-0.10.8.ebuild
@@ -0,0 +1,271 @@
+# 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-0.10.8.ebuild,v 1.1 2013/08/12 00:03:06 aballier Exp $
+
+EAPI="5"
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-2"
+ EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git"
+fi
+
+inherit eutils flag-o-matic multilib toolchain-funcs ${SCM} multilib-minimal
+
+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.10"
+if [ "${PV#9999}" = "${PV}" ] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
+fi
+IUSE="
+ aac aacplus alsa amr bindist +bzip2 cdio celt cpudetection debug
+ dirac doc +encode faac frei0r gnutls gsm +hardcoded-tables ieee1394 jack
+ jpeg2k libass libv4l modplug mp3 network openal openssl oss pic pulseaudio
+ rtmp schroedinger sdl speex static-libs test theora threads
+ 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:mmx2 ssse3 vis neon"
+
+for i in ${CPU_FEATURES}; do
+ IUSE="${IUSE} ${i%:*}"
+done
+
+RDEPEND="
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+ amr? ( media-libs/opencore-amr[${MULTILIB_USEDEP}] )
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+ cdio? ( dev-libs/libcdio-paranoia[${MULTILIB_USEDEP}] )
+ celt? ( >=media-libs/celt-0.11.1[${MULTILIB_USEDEP}] )
+ dirac? ( media-video/dirac[${MULTILIB_USEDEP}] )
+ encode? (
+ aac? ( media-libs/vo-aacenc[${MULTILIB_USEDEP}] )
+ aacplus? ( media-libs/libaacplus[${MULTILIB_USEDEP}] )
+ amr? ( media-libs/vo-amrwbenc[${MULTILIB_USEDEP}] )
+ faac? ( media-libs/faac[${MULTILIB_USEDEP}] )
+ mp3? ( >=media-sound/lame-3.98.3[${MULTILIB_USEDEP}] )
+ theora? ( >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] media-libs/libogg[${MULTILIB_USEDEP}] )
+ vorbis? ( media-libs/libvorbis[${MULTILIB_USEDEP}] media-libs/libogg[${MULTILIB_USEDEP}] )
+ x264? ( >=media-libs/x264-0.0.20111017:=[${MULTILIB_USEDEP}] )
+ xvid? ( >=media-libs/xvid-1.1.0[${MULTILIB_USEDEP}] )
+ )
+ frei0r? ( media-plugins/frei0r-plugins[${MULTILIB_USEDEP}] )
+ gnutls? ( >=net-libs/gnutls-2.12.16[${MULTILIB_USEDEP}] )
+ gsm? ( >=media-sound/gsm-1.0.12-r1[${MULTILIB_USEDEP}] )
+ ieee1394? ( media-libs/libdc1394[${MULTILIB_USEDEP}] sys-libs/libraw1394[${MULTILIB_USEDEP}] )
+ jack? ( media-sound/jack-audio-connection-kit[${MULTILIB_USEDEP}] )
+ jpeg2k? ( >=media-libs/openjpeg-1.3-r2:0[${MULTILIB_USEDEP}] )
+ libass? ( media-libs/libass[${MULTILIB_USEDEP}] )
+ libv4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
+ modplug? ( media-libs/libmodplug[${MULTILIB_USEDEP}] )
+ openal? ( >=media-libs/openal-1.1[${MULTILIB_USEDEP}] )
+ openssl? ( dev-libs/openssl[${MULTILIB_USEDEP}] )
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
+ rtmp? ( >=media-video/rtmpdump-2.2f[${MULTILIB_USEDEP}] )
+ schroedinger? ( media-libs/schroedinger[${MULTILIB_USEDEP}] )
+ sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video,${MULTILIB_USEDEP}] )
+ speex? ( >=media-libs/speex-1.2_beta3[${MULTILIB_USEDEP}] )
+ truetype? ( media-libs/freetype:2[${MULTILIB_USEDEP}] )
+ vaapi? ( >=x11-libs/libva-0.32[${MULTILIB_USEDEP}] )
+ vdpau? ( x11-libs/libvdpau[${MULTILIB_USEDEP}] )
+ vpx? ( >=media-libs/libvpx-0.9.6[${MULTILIB_USEDEP}] )
+ X? ( x11-libs/libX11[${MULTILIB_USEDEP}] x11-libs/libXext[${MULTILIB_USEDEP}] x11-libs/libXfixes[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+ !<media-video/ffmpeg-1.2
+ !<media-video/libav-9
+ abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r11
+ !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
+# !media-libs/libpostproc
+
+DEPEND="${RDEPEND}
+ >=sys-devel/make-3.81
+ dirac? ( virtual/pkgconfig )
+ doc? ( app-text/texi2html )
+ 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 )
+ test? ( encode zlib )"
+
+S=${WORKDIR}/${P/_/-}
+
+pkg_setup() {
+ ewarn "This version is _terribly_ outdated with known security issues and"
+ ewarn "bugs. It is provided only for binary compatibility."
+ ewarn "Use at your own risks."
+}
+
+src_prepare() {
+ if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
+ export revision=git-N-${FFMPEG_REVISION}
+ fi
+ epatch "${FILESDIR}/freiordl.patch"
+ epatch "${FILESDIR}/flashtest.patch"
+
+ if has_version dev-libs/libcdio-paranoia; then
+ sed -i \
+ -e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
+ -e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
+ configure libavdevice/libcdio.c || die
+ fi
+}
+
+multilib_src_configure() {
+ local myconf="${EXTRA_FFMPEG_CONF}"
+ # Set to --enable-version3 if (L)GPL-3 is required
+ local version3=""
+
+ # enabled by default
+ for i in debug doc network vaapi vdpau zlib; do
+ use ${i} || myconf="${myconf} --disable-${i}"
+ done
+ use bzip2 || myconf="${myconf} --disable-bzlib"
+
+ use cpudetection && myconf="${myconf} --enable-runtime-cpudetect"
+ use openssl && myconf="${myconf} --enable-openssl --enable-nonfree"
+ for i in gnutls ; do
+ use $i && myconf="${myconf} --enable-$i"
+ done
+
+ # Encoders
+ if use encode
+ then
+ use mp3 && myconf="${myconf} --enable-libmp3lame"
+ use aac && { myconf="${myconf} --enable-libvo-aacenc" ; version3=" --enable-version3" ; }
+ use amr && { myconf="${myconf} --enable-libvo-amrwbenc" ; version3=" --enable-version3" ; }
+ for i in theora vorbis x264 xvid; do
+ use ${i} && myconf="${myconf} --enable-lib${i}"
+ done
+ use aacplus && myconf="${myconf} --enable-libaacplus --enable-nonfree"
+ use faac && myconf="${myconf} --enable-libfaac --enable-nonfree"
+ else
+ myconf="${myconf} --disable-encoders"
+ fi
+
+ # libavdevice options
+ use cdio && myconf="${myconf} --enable-libcdio"
+ use ieee1394 && myconf="${myconf} --enable-libdc1394"
+ use openal && myconf="${myconf} --enable-openal"
+ # Indevs
+ # v4l1 is gone since linux-headers-2.6.38
+ myconf="${myconf} --disable-indev=v4l"
+ use v4l || myconf="${myconf} --disable-indev=v4l2"
+ for i in alsa oss jack ; do
+ use ${i} || myconf="${myconf} --disable-indev=${i}"
+ done
+ use X && myconf="${myconf} --enable-x11grab"
+ use pulseaudio && myconf="${myconf} --enable-libpulse"
+ use libv4l && myconf="${myconf} --enable-libv4l2"
+ # Outdevs
+ for i in alsa oss sdl ; do
+ use ${i} || myconf="${myconf} --disable-outdev=${i}"
+ done
+ # libavfilter options
+ use frei0r && myconf="${myconf} --enable-frei0r"
+ use truetype && myconf="${myconf} --enable-libfreetype"
+ use libass && myconf="${myconf} --enable-libass"
+
+ # Threads; we only support pthread for now but ffmpeg supports more
+ use threads && myconf="${myconf} --enable-pthreads"
+
+ # Decoders
+ use amr && { myconf="${myconf} --enable-libopencore-amrwb --enable-libopencore-amrnb" ; version3=" --enable-version3" ; }
+ for i in celt gsm dirac modplug rtmp schroedinger speex vpx; do
+ use ${i} && myconf="${myconf} --enable-lib${i}"
+ done
+ use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
+
+ # 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.
+ [[ ${ABI} == 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
+ ${version3}
+ --enable-avfilter
+ --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
+
+ # Misc stuff
+ use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
+
+ "${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}" \
+ --disable-static \
+ --disable-{ffplay,ffmpeg,ffprobe,ffserver} \
+ --disable-{swresample,postproc,swscale,avdevice} \
+ ${myconf} || die
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install-libs
+ rm -f "${ED}"/usr/$(get_libdir)/*.so
+}