diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-10-11 05:59:12 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-10-11 05:59:12 +0000 |
commit | 4fa0e389c6313d4575c9d33e30918784a301448f (patch) | |
tree | a80ab07db6f85280e5b080b1a11c717fcda23e82 /media-video | |
parent | add zvbi useflag (diff) | |
download | historical-4fa0e389c6313d4575c9d33e30918784a301448f.tar.gz historical-4fa0e389c6313d4575c9d33e30918784a301448f.tar.bz2 historical-4fa0e389c6313d4575c9d33e30918784a301448f.zip |
bump for the 0.10 slot
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/ffmpeg/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/ffmpeg/Manifest | 10 | ||||
-rw-r--r-- | media-video/ffmpeg/ffmpeg-0.10.9.ebuild | 273 |
3 files changed, 285 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index 80d84848e3ae..f127c9a4c037 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.684 2013/10/11 05:50:08 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.685 2013/10/11 05:59:09 aballier Exp $ + +*ffmpeg-0.10.9 (11 Oct 2013) + + 11 Oct 2013; Alexis Ballier <aballier@gentoo.org> +ffmpeg-0.10.9.ebuild: + bump for the 0.10 slot 11 Oct 2013; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999.ebuild, metadata.xml: diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index 6f666d70c3cd..a1746a34334b 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -4,6 +4,7 @@ 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.8.tar.bz2 5782880 SHA256 2e371088a71656be41b4ff70ae7e80a1d88c5149d6209013c9cce4b84278cbc8 SHA512 93d7305da4966d7fa2f07fe090ac608e52bb683984c12c8c1105521540fe48dbb6d6a99211fdff72ec514c36d5ae7b800badbab583eb20ad2dccee6a340632d6 WHIRLPOOL 9454db93a24f2a419a1388d0686c4a58cafe495eb387c145ee93a829ac63a4e779e9d697a5882b705194a8eeabcc992cf89158cb00da6d0f57dd71ab62d26c09 +DIST ffmpeg-0.10.9.tar.bz2 5783502 SHA256 1d0cc2dd539faefe47554935ea4e4f6aa779d0896b3e722d595aa5abe2304cf9 SHA512 216c006def3952881129160b3f70b270287dcae568bb6f39c77552023e5c1eeb841e0b2ba181a7b188c8c9b1568b7b3167a827fd512c9ad82e8dc6f9ef8a61a2 WHIRLPOOL 159312de1231128e283571e61c1134df3b0345b822cc2e4178118efb564b48db5a175ca07a8de5dd2e4a07c2081b2106b3abb15da5f830b0ee10f3ed14b25bc0 DIST ffmpeg-1.0.7.tar.bz2 6451535 SHA256 f7e52bd5e0de064e36ecb04adf155c31dd30366a13168fabe61fd135f24d5c11 SHA512 a3a756fe50773551de58113de7b848f6ccb21ed2cf5c5f04387694937152ae978639aa92e4207cc09f384f34093ad2e6ddf7dfb334097f20f1326e13748f57d5 WHIRLPOOL ba2cc60a7bd7de1dca7f6c9ed02874db0f711c273d9616c5eeda0ee2b33fa9e36f55eb812d75e24583f81098505635ccff018b7aea67dbe9b3fd18583042fb73 DIST ffmpeg-1.0.8.tar.bz2 6452144 SHA256 8580a317aa09fdabdcf5119c87f59fd3baa4df0f636aac4d3dfeb86c572277aa SHA512 5fc6caf20c016e9d8ff41175d3bb5bf6d4a2c25c65ea8630d45ef8d9a16ee53120d76e4bc220b4f4462618e5c731114182776d7193e9d085332cf087038f3488 WHIRLPOOL 6a6b80a5aa44ee1a1c0af61bdf95659eb319ae48b690c2c1b9dd5291ad3b6f5ab52884c835d925da88dd2467f49ec2198cb78c2ef78af4f2e372c6364c769f6e DIST ffmpeg-1.2.2.tar.bz2 5968091 SHA256 1cb29ec4951f5941ea43638ea1e3042e3d3215992bda03f45628e8c49cb21064 SHA512 555a9fee6c5017602396362a7d073d444ef7539f020a2437d9fa7849310a4956e716fd60a956e1074e6f57fd260bb00cd1c8178bcd4052a3bad0117c1683e8cf WHIRLPOOL d77d7071fa048b55591f0d7f3b5a6631ca81a27d57d3988acf215f66ae7006e2975109fe23290379a7f51e42bc9d0374dd7f1c431f7cfb5b84546fa9fed1977c @@ -12,6 +13,7 @@ DIST ffmpeg-1.2.4.tar.bz2 5967562 SHA256 3b96c8ce1b86575cd74f540e5b7a52681554289 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-0.10.9.ebuild 9627 SHA256 7643931e6ee6b7416c1efc8a6e79d7eedd123d64faa1255fdc0b7e3d4fea01ef SHA512 c19cf06fbc1ae7936e218424712669add36f609ffedcf99338188200d51889ed49f0c5b3cff09704fcd08cf99402b6866a7d2211424484b0960d72fdcd94e35b WHIRLPOOL 7bedcac0fa233ff84ff1752493fdfa9ef37b3de5b410a6b252d80e01d2e11c3ff3f721264e9e291d172fcc33f35cbabade408c99a48666511b63b59624a75252 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 @@ -20,12 +22,12 @@ EBUILD ffmpeg-1.2.4.ebuild 8937 SHA256 efa002a312d16aba8c7e4a6dc741732d1a1527479 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 9885 SHA256 32e26565a6f05fd309ae95afb10fee9c4c3750e64336ea0524f633a11af68086 SHA512 d10cdadd4a3261f71699191b8543f080c7f9d71c5cd490db1e432594569493426dfad6f39cc981761035fdd3118f8c8abc436f83db4066debecdc81b90e1c2da WHIRLPOOL 3f67419e519ca0c0437bbd7ced9c1fb41a648013a328dc5b027e43029ccea76d8cc9d2eecf84f350d22f7261174fa403742c36cb0e7ab45173a9b5e714fc09de -MISC ChangeLog 95545 SHA256 b56a3b36fcd7188b0b5ca8962d72ac0d7f57513f5a0ab9daa75cb86c98c40884 SHA512 16d2d5d68e5430c05b2e7b0f35ef5ba0b396eb8698bb4169e2a40325358deb0b09090787cb3c4227617bcc39801aaa8ab6091950435e7b2f6dedb0d01f773596 WHIRLPOOL f92ebb5c1ad95d862934ce4080b3e57702f2f47884b2360b3a86a9d77aaa2c6dd425471bbcfdd87ea01ac490229d12600ed7f854f64b59fdb02f429a0e8afa48 +MISC ChangeLog 95676 SHA256 ab76eac550bad573cd3ca9d943dd620c32ea9922c4cb1aa267e127d2c8fd769a SHA512 c45dd1794c87c248669d3d4a7cca5139d550046bd225c06d61c05f8024ea9b2ca6a5e69bb89e8f71edc2770030c6d879ab7a4b2efd6960b2be26ace12102f270 WHIRLPOOL 397be84a092d5073802452ee593c6898e711a4eb10bdbd1be17433d643755c3617d6ad76387b4593c7c68e1f7937d0cb94802cd2e9e936705b1144f727252e69 MISC metadata.xml 3945 SHA256 d2b1fb32139fa6961f91c2e8c890d596ace86a8bd949eeea3b8b3aa68ea00470 SHA512 083e5cfe66b1bf86eddadc383863ad2c04a03a01e7a6b0efeaba353f3db31c26b4c053054f12acad8100dc8bb621f6251c28596d0f060390dc7967d037baee6e WHIRLPOOL c41071a759851b119c3620df94847df34f1e147a701caeb3f3c10caeb282c4e2cb0fffe3f0eb83f9e4e7664761d9ed2816ed7fe433ad9edf4153e7c75eb4b5c2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iEYEAREIAAYFAlJXkZIACgkQvFcC4BYPU0ptGQCfXb4qIVzk+lbxVyjy0XG4rsEM -mL4AnR5uKAWTqGpXLgQIpmPyyZ7/SLXI -=V1X4 +iEYEAREIAAYFAlJXk64ACgkQvFcC4BYPU0o96gCgrqHsJpZ9HdiPBcdkuXf7ksdv +dYcAn2iYFjsI7mD0en/GQWCQG/cT4P9S +=ZB+S -----END PGP SIGNATURE----- diff --git a/media-video/ffmpeg/ffmpeg-0.10.9.ebuild b/media-video/ffmpeg/ffmpeg-0.10.9.ebuild new file mode 100644 index 000000000000..bdb92b7f563c --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-0.10.9.ebuild @@ -0,0 +1,273 @@ +# 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.9.ebuild,v 1.1 2013/10/11 05:59:09 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 + +DOCS="" + +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 +} |