diff options
author | Alexis Ballier <aballier@gentoo.org> | 2014-01-19 13:48:31 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2014-01-19 13:48:31 +0000 |
commit | 6e4a8290cf0ebb46410eb38c81eb07f25ad09920 (patch) | |
tree | f45b9440dc4112928a22887148e397925048712e /media-video/ffmpeg | |
parent | Stable for alpha, wrt bug #497838 (diff) | |
download | historical-6e4a8290cf0ebb46410eb38c81eb07f25ad09920.tar.gz historical-6e4a8290cf0ebb46410eb38c81eb07f25ad09920.tar.bz2 historical-6e4a8290cf0ebb46410eb38c81eb07f25ad09920.zip |
bump for the 0.10 slot
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/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/ffmpeg/Manifest | 20 | ||||
-rw-r--r-- | media-video/ffmpeg/ffmpeg-0.10.11.ebuild | 275 |
3 files changed, 287 insertions, 15 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index a09a4408ec22..349acda27dfd 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.706 2014/01/18 20:01:14 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.707 2014/01/19 13:48:27 aballier Exp $ + +*ffmpeg-0.10.11 (19 Jan 2014) + + 19 Jan 2014; Alexis Ballier <aballier@gentoo.org> +ffmpeg-0.10.11.ebuild: + bump for the 0.10 slot 18 Jan 2014; Agostino Sarubbo <ago@gentoo.org> ffmpeg-1.0.8.ebuild: Stable for alpha, wrt bug #492252 diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index 4d9f607f6a50..2b666c2d324c 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -8,6 +8,7 @@ AUX ffmpeg-2.0.2-freetype251.patch 2040 SHA256 f7478552a7b29d1420ff609fa5fc5fd20 AUX flashtest.patch 2343 SHA256 fcd05d4ad3f8cc6dd64a55c83279bd5738002100f1cfdf2f4ca8c9547f5b9a28 SHA512 e2994e3b25b207021e00ed982a82efa8ab2fdf2499f5ef97b7f280a0abd33fac639b7e26c26b5ed7dac70931c009b7062b6c91c4b4b38d30a29f8b364a837ba0 WHIRLPOOL 78c41fd6dcd7f698b92ee6f9ac0c5c5d80c8e45c3dffb8c2bff72f0802084b78ce601dd716c6ae7b6bc6641b4f98a1ec33acfe761a13bcfaeafe3677fa6e3ee0 AUX freiordl.patch 611 SHA256 4857bbf856e2014f41d89d0ed0744f7bb3277e5600a877f2b84e0aae571f3dcf SHA512 1d7491e65fec247d9cb6b14e9a494f55e3a88ca9ce0962b7874e3f3e5c087ca7672bda5949637f4493c49a388070addb9db909c2e384f8a4349609ec02e7dd3f WHIRLPOOL dc2bbc9c95dff14998ef8f7f15c55b9cdc9464e01e036c3b67935d9505596360d103aafb9a50b43e6d2e78950664c4b6f214a874fc6aa29727397130a98e6511 DIST ffmpeg-0.10.10.tar.bz2 5785849 SHA256 936058d7579bfc431b13d47c3f63ee25a0160d4c73cc0fa04fef97cd2394cb91 SHA512 7179cb29596c67faedc73e57f0b7d55a9e05a3d036aa0454c47e316cdcaf16f7f2d8deb58380c2a02df3fce322089d9e6476024da5832b9b5e39c46d48b729bd WHIRLPOOL f9dfc3ef37356c1683ba6d76a4ecffc04f166b551d87c8421c940d2d637ae10ff4f2a8df473b8eec012319c001097bae719902a1b315933d1877f02e17100c76 +DIST ffmpeg-0.10.11.tar.bz2 5786390 SHA256 99a81aa43325de9c670659c15496ef348b5c4c65306caa1ce0893ae5f4f636d0 SHA512 c013b1f9fce764302db924ec057e1cb8df132dc55173476e77cf254e43c10d13124a9ce5c063eb586146de92620b6b88cad8a5198a1d30a4a9c6611a83e515e6 WHIRLPOOL f1f1589328af7594025fe44ecdff7d7b1edb2c88584ab737e719a3e2fa5cc0f94b65e6c645a22f6c474041b6404acf37740d24101c8e2bd9912112171695d22b 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 @@ -16,6 +17,7 @@ DIST ffmpeg-1.2.4.tar.bz2 5967562 SHA256 3b96c8ce1b86575cd74f540e5b7a52681554289 DIST ffmpeg-1.2.5.tar.bz2 5971768 SHA256 9cfcdfe1949f8781b1b473fe668b8f2ab6befc2cffefd159840c62273e3e41a9 SHA512 71fa01f1eb96cfdf5bf628f4c2999e0f157aae423316cdecdc3c81c36ca438996c5d4751871611ada9b31e6542ca08c0f5f61bee9170b1336ee5a8fe1db8eb06 WHIRLPOOL 386ef933a890b565ded79f1109c09aac7d553c8af4d927dc8d6585c77a63d396a2b7484810178552ec66e95e13a85942891ed0fcb947fd793dfe72bb8816ec21 DIST ffmpeg-2.1.3.tar.bz2 6638987 SHA256 1d332e7fd35f87e1ffb6c9b0405cbfda085ef712ede0133a213793a4e66d13a3 SHA512 fcaf04089c6081e476c23220c33d67252f8eecacc67a79a23a658865cab896cf5f29f8825626c09151539aa35dcae64726bcb6f96fadf51bc8b9c4e5fa3c47a0 WHIRLPOOL 9c289ac74285c7394de8fb34ab65c25835ab1a56bec51dd888e3e6899a9680d0e4bba68d92f685a0b5439be5ca51b0799b15c0bdeab5105720c5fe558319dc38 EBUILD ffmpeg-0.10.10.ebuild 9688 SHA256 9b558b48ece44c0bd24b0940439cd371e359b0f25004668a7a690696e631db32 SHA512 36297d05c87f3c104765e44d96c2a4fae00c26a8e637f3baab9169234fb3fe5bc97eef36af1d69c4dcb18b086afb2db528708c544e1c5f17a1b1121580c5aa2c WHIRLPOOL e025d23cdcb7dbc8e386ed74ec8ccfef232d24007c6f969d73515bcfd06c1420b0057eb551e2036a3d72bbd2f8b830be18a2d982540ebfcb18c3c594a59343c9 +EBUILD ffmpeg-0.10.11.ebuild 9684 SHA256 c5fb97665f143665f995c1f4d44b2c25b95e38aea0a79bfa1f1302072b488ef9 SHA512 8db020d3d9c9078667d54754e1b4c95f02092dcee43d55e7e7ba91addb17fcb8700d796f6247b294b20af86921db9d471adb736a67a1e9bf67af1602ca5d431d WHIRLPOOL 782ac549898767907ad17518ad7cb62e5de90f829cb271bfc25ea61b3a01bedf0fd2f32c73fb2c7b415ef5e1179d1815fa4967ed9ccaa42cf318d052912a82be 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 9651 SHA256 ea8f9cad629285786bac9c18d2e40ecb0be888a259c711af1108181c731ee75f SHA512 5f867a7126daa230fd99eda960bdc1c185c4b7722f98cf9d5b21eb8483cb57f266921ccee5e2e08cadf75faaf19239082b74ad8158a221554a1e25d5969255a9 WHIRLPOOL 7efa8c339a11aa34428d185a9d06a9898b52a17631276e1b20234f29a333192b2160e5e82ebe34fc8dc64ed97f747be50ba6379f6dccf8562176dbd5f4ff6334 @@ -24,22 +26,12 @@ EBUILD ffmpeg-1.2.4.ebuild 8995 SHA256 470de6c8c403d844e876d4fa3d4b41225931176ea EBUILD ffmpeg-1.2.5.ebuild 8939 SHA256 4590d85089b5949a48d436cb643ed3ce9fe5ec20e98de67d67ce1c73ff930820 SHA512 68c5942601561b1bc0101aba6b5f28ce60a99274ef074f3fab7c334791762e90476a73136cd47724523e7b5123fef3bc88cfc1ddbb3d5b81024b5e371e160465 WHIRLPOOL cc331d5ef44ff36fc0ddbbb6810ee920f5eccc1432fcfeeebaa90c249a8dafa9e5da32224d37f925e9cc1ae64167b1cbab047167fb89ab9dd019b781c704d28b EBUILD ffmpeg-2.1.3.ebuild 10240 SHA256 651ff233c63eedadd1483a466ee3cd17eb71dbebc0f621c66006ddb7aaf7c40e SHA512 4bf23e409afae7c517ca516472548742d8a7dec3678436ea9b26f590f05a53f3bb655aed6eeb4424875dc4a9c886e8f4968d56f25d3441582a5644da6d6f2938 WHIRLPOOL ff1e3032a3e835a35d4ee54a6984e37053398163c89f9eb5133e2dd2afd41b0b91e5b48c437839fee793f5c7124db8851dd4207490290db453d9be07d76f0004 EBUILD ffmpeg-9999.ebuild 10241 SHA256 106a0829b277b20aafe3fc3ce1641be5de8115cd6b51c9cbb3367cd5f5c5b8da SHA512 1bc41a81002a5a0c6a7edf4cd7701e630d24017c4ec68ac2bbe350e58fb2e2bb1ae52f3be9532ef82b8ddb01983a0d88873029a378dcbf28020429df407b7d9b WHIRLPOOL d17f07f3267ca26eafd7949d9ca3702ac55dd6d1e4c009a3802024e3a5e24cce1b70f2baa94c977e04cba27d986a1d907763f327f400305dc153cd23a836f05e -MISC ChangeLog 98519 SHA256 7cd9c17e35776ccf174230d0f357106c625affe68fdd40ce28101985915b5f4b SHA512 46a128af966943af392c9fecdfdb01483418b6d737b9ee2c6fb65f76e11dc46f4cd816661b1ba15b0aa9219f56bf0e8703f8403187d44d32722ce20a73273b64 WHIRLPOOL 1f666f529ca51964658917606a3fbe342741e0403f7e15d82d6d8a531bfa73603beb0cb5ee98009a8fa20fa80e78b5dc08e31e0391d274f8b48070718d5a3d3b +MISC ChangeLog 98657 SHA256 d013c4ecaceb47c2d142ab09177e8db9c19f7084ef76f4400d1d0afa666187e0 SHA512 c04b92bc07d324f93aa7cf943700cfb4c41f6330fea88936cd24f81fefb11a1352536f0c98307d194404af885063095cc413d9f8525f4af95176d4599ea89bae WHIRLPOOL 3bcda02e2f8dbcee338aa18654e332bfb35b65e914ae28a3ded28b8f6235c8b1ff35c8cdd7a9587b00e06e3ac42c87499ab5a88a9334fd8d8a1606fb8b52bf70 MISC metadata.xml 5023 SHA256 99bbcb090ad6c7f40d1a19c14d5f31beb67023664b5e70d53e976ff6ccb03114 SHA512 8c067e95750c3868fb3dd987d66e4e9b3e6c17bce33dba3bba80d96d49fb293ae25faac505cb575ee00cfcd4c912e47831dca559aef06b4f921a34762b750169 WHIRLPOOL 4b05d43fd76ee436db935b681a21c9e267c6ab169314ae30e5b20c87386b37dde3694cf3a26910394607b0458cc974f35c79bb640c889b4ac6b07cfbb8b2c627 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJS2t2MAAoJELp701BxlEWfYHgQALGyMajrwIemNm1DV78V8u5z -79dSIqTO8Em1Erj3bnB5NHOYhEQHCe49rRnuusGmtsgGIGEClAu7wBJ9HYm8QRUU -IcAHL6UdLk9jmKwmbURSZoVXMGw6sa0ItCzWnIjZ6MTZVK9vKK4arLFj3ziBFb9m -h2zzJiMpmppfJXPvcElvoNUDc5eLCTYRa3Oxl+G3Xn9qn42BjnQDAM20bt9e/W4x -bLSsCh7Ld7ER32ZtI5LckZEC8C5SNxN9z3q5I3NEl4xu/+XEoM5iHf/15NdeyXC4 -/+tTcF0ti0mqFLBNfxlY/3fYtFvzsTefU9o3SbIymkG6hGSlzNwZyHS4BAs/seZb -TrhualNmsk7HDpEpjxTRXqjrmf+p8I1OpH5FL9vPuv0KHVUe6z8MlkW8Or0rH0am -fBBbA/S30sc6785D2SNMy0rCPjT45QDqZRMQeQxzcO/5tDglkwHH55QrGiz5mxdy -d7xTQ7V1e82dPB04GjV4wtLnkRqKHAl/CnTkDrybACgyAbUlsPb2l0VaUAcThZAk -8Kyb6n38KKOpNc3At/5//cGfIbV7spmttHMC0/0IkuQDX0ogiisrTYUyebsYYo1x -QCrtvplBH3X4cyxZbruFhuWW/iSfMqf5sY6NEkQ9fPk5HGKWmHQjMd2t13xYhs2G -W16hSG8lDz53ZFHQBLtD -=R0+o +iEYEAREIAAYFAlLb160ACgkQvFcC4BYPU0pLYACfWXp+1BI+KM+B2DzV4VROdTMG +c8cAoK9sD9gvD17YntJSNUSL3l3wuMd/ +=PxiC -----END PGP SIGNATURE----- diff --git a/media-video/ffmpeg/ffmpeg-0.10.11.ebuild b/media-video/ffmpeg/ffmpeg-0.10.11.ebuild new file mode 100644 index 000000000000..51d52421003c --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-0.10.11.ebuild @@ -0,0 +1,275 @@ +# 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-0.10.11.ebuild,v 1.1 2014/01/19 13:48:27 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 + + epatch "${FILESDIR}"/${PN}-0.10.10-freetype251.patch +} + +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 +} |