diff options
author | Alexis Ballier <aballier@gentoo.org> | 2014-08-13 18:37:21 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2014-08-13 18:37:21 +0000 |
commit | 6563b0326e16bdb1555ff3a9635eea063b6c35e3 (patch) | |
tree | 8750f6ce6545da8579f9688eee31eb87daae7712 /media-video/ffmpeg | |
parent | Keyword ~ppc and ~ppc64, bug #515222 (diff) | |
download | historical-6563b0326e16bdb1555ff3a9635eea063b6c35e3.tar.gz historical-6563b0326e16bdb1555ff3a9635eea063b6c35e3.tar.bz2 historical-6563b0326e16bdb1555ff3a9635eea063b6c35e3.zip |
version bump
Package-Manager: portage-2.2.11-r1/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 | 10 | ||||
-rw-r--r-- | media-video/ffmpeg/ffmpeg-0.10.15.ebuild | 273 |
3 files changed, 285 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index 35b6c55984a7..fcf08d4b0689 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.779 2014/08/13 18:26:10 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.780 2014/08/13 18:37:16 aballier Exp $ + +*ffmpeg-0.10.15 (13 Aug 2014) + + 13 Aug 2014; Alexis Ballier <aballier@gentoo.org> +ffmpeg-0.10.15.ebuild: + version bump *ffmpeg-2.2.7 (13 Aug 2014) diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index b3f3d812c7a2..48857a37e7e8 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -8,6 +8,7 @@ AUX flashtest.patch 2343 SHA256 fcd05d4ad3f8cc6dd64a55c83279bd5738002100f1cfdf2f AUX freiordl.patch 611 SHA256 4857bbf856e2014f41d89d0ed0744f7bb3277e5600a877f2b84e0aae571f3dcf SHA512 1d7491e65fec247d9cb6b14e9a494f55e3a88ca9ce0962b7874e3f3e5c087ca7672bda5949637f4493c49a388070addb9db909c2e384f8a4349609ec02e7dd3f WHIRLPOOL dc2bbc9c95dff14998ef8f7f15c55b9cdc9464e01e036c3b67935d9505596360d103aafb9a50b43e6d2e78950664c4b6f214a874fc6aa29727397130a98e6511 AUX ladspadl.patch 723 SHA256 b660bef2bdd4ecba5c3ec04fccee16f4ed3eab0dc7f125f19ab004274df7d17a SHA512 fa2022e2ac73cdf63a7ebdcc71672123adf223b4eca4ee027974a3de380f54378d063166c7048c243ccfb2a95b8ebbd1115f010fe9e491bbdcee7896c523d790 WHIRLPOOL c2d175d1e953117365a929ba85d75b0fc5e60ae4e23a00a2998c6f62c00084a3d78becf027ef2710f8768cd7528b333dfad9dbfea049a7d2f45b5b66751e16a4 DIST ffmpeg-0.10.14.tar.bz2 5786281 SHA256 1ef77533f3803b8630403df413005c1c41b18c50b16895815182fd70d2f833bb SHA512 17dd1452fa5b9f6405b357b8cd774d03047691ff5a79feb28b6e2bc1df895d71f43f4c7b7280db99cf645dcd9a5c0751af382499afef28957533fd2c0f91e063 WHIRLPOOL bb8d0d8f55e67e6a8c58621437566a7989e729e96b34c24bc27a2324c423f53113e540d67ede2acd1f078fa31b7ad5548a699b0a7f8c6c42018ab2c3ac26d426 +DIST ffmpeg-0.10.15.tar.bz2 5785998 SHA256 8b6dbf73c192d2217e6ded8e0dd560c678f362e373d87c28ed9fc8eb52293d5d SHA512 0fb719847bfdc16d17c64b1be607427557c63cdf7a8a637231b1dbaac38bfc3dc3ff8f69d51a6c0305d05b2b186ecfcf5e6d2a5f3192f015be9751e0481e429e WHIRLPOOL 69798dcdc0a37d837840bfc2e5cb37177f8ddaf47153c25a5c24726723fa6ca7b39e0940eb2133ee4715e855d7dd08f05dd7252f94a48424909ac799d1900cdb DIST ffmpeg-1.0.10.tar.bz2 6443581 SHA256 1dbde434c3b5c573d3b2ffc1babe3814f781c10c4bc66193a4132a44c9715176 SHA512 0fcc0541db6cdbf044dbb000a214194b0bfc67f4ac3e5c6efb2207c84bb11f6c6c3cf245ea67e1912256d1e1a98cf336a6f548d154393c36e266d92093006ff7 WHIRLPOOL 50c75a41747394aa2629cdfc6bd631e0207194c87ecdda120032f42e0d04327443fb13ea2b00ed52212da30992b01318846da0a0a594bac7d5757bccb525f32c DIST ffmpeg-1.0.8.tar.bz2 6452144 SHA256 8580a317aa09fdabdcf5119c87f59fd3baa4df0f636aac4d3dfeb86c572277aa SHA512 5fc6caf20c016e9d8ff41175d3bb5bf6d4a2c25c65ea8630d45ef8d9a16ee53120d76e4bc220b4f4462618e5c731114182776d7193e9d085332cf087038f3488 WHIRLPOOL 6a6b80a5aa44ee1a1c0af61bdf95659eb319ae48b690c2c1b9dd5291ad3b6f5ab52884c835d925da88dd2467f49ec2198cb78c2ef78af4f2e372c6364c769f6e DIST ffmpeg-1.0.9.tar.bz2 6449857 SHA256 98b3c35bcc602ab1e236fa64da8ead3deae7a5f9c958c572b46fb299260d1034 SHA512 323764f40a03ec339e1743a57ba545c74b7a58fad7c2db29c252dd276a74e761f00649aa560415cd38e80db51d34037c66c8aaae6971f35d83f7d1943d1e7109 WHIRLPOOL e4ba2ce05f76a2414a46fbd04d50c1d1f7638b43fee718ab60d56f8ef5fbe367f33d992c3a6b3802cde9cfeb0252c4112a0f0e1c56c4fd10d76ead424f3c0ab1 @@ -19,6 +20,7 @@ DIST ffmpeg-2.3.1.tar.bz2 7446524 SHA256 ee6a2f4c11424698537615443b2f4e1ef853bff DIST ffmpeg-2.3.2.tar.bz2 7446477 SHA256 84e135432208361db2e1206df4380b7a7c3c2a38e0df23c6fc92553aafc4ffd2 SHA512 7bda541ba02e3c4672d91640b83fcc1bd94beefb777f7bb1c25e56b2dd7b30f43bd8fdeee9f6e907aab3c4caccde8e5a6a34308abb023fc969d1beb0ccd94edb WHIRLPOOL a9e6df11a3be25c51057793621d05df7c1de6e5cbf73d0446fc39d63f56b3fb16d73389a993ca0c320ff4824137d3ec1720fe3e2a6b3beffb29ccb194742d9bd DIST ffmpeg-2.3.tar.bz2 7443666 SHA256 6b3dbb64e20951480bfd64bcbe305f6ee9031e5fccfd3b3e94cc5055525f809e SHA512 82bbe5109e426cbd3063f8b2edb3e2daa7f237c4fc46ca37907ab316351978b689f2e0c4d88645b2eb19582765072702f3a19a17c6b02dd11bccac3b41d27a03 WHIRLPOOL a6f16226e07f17c6fb66e58154035f0ae65d52bb113db7afb1ac234d467ce53a58a044cd262fa98a11a7e83faeadc0c16b2e9d3115f83d3e39c76f00d43db3a3 EBUILD ffmpeg-0.10.14.ebuild 9936 SHA256 cecd036a7b218d0abe941004dc87242ee02756ed6d76a46fe5df7be134d59928 SHA512 74b4b986c89d227f4ae2f99ff7db063db5aa15d1872b10717bf5a42ad6e63517dac47a9f577162e3b33d85b42644e921e097eff73aa3c0466c2216480574cf5d WHIRLPOOL e67d1c5e7a1176fa7a92ac5d7b904b03780a3f3ef7081612d26c78ec129f1ae01401311bbdb6713ec06aaac64ae655a30742dcd53d0ee6582664a75e55feb227 +EBUILD ffmpeg-0.10.15.ebuild 9938 SHA256 d4c3b812f56c3c610c42709836c2263912b4118c86b1953289ba44493c5b511b SHA512 b04f03badab825c227af90d7986bb6b46b7b8b4ed20ef6de04d8429cf630ba96d36981b951c13443b48c6ff49a4e21f1d8c17108ce7862d2a41ce80386d42dc5 WHIRLPOOL 7188c3419031aa6a74cec9549a2dde10a88bc7c224160fc68121dc8b82e4b8fee14dfd065676274f9ec194251a092545dab2fd7d9c16a22e0dde9f8ecece8d2d EBUILD ffmpeg-1.0.10.ebuild 9661 SHA256 8e268c28be34d501171171af761494f37a26a8fe84293e9b8a05cf8bfd56ac76 SHA512 79781c15c09bff885f6f193e361bf8f929eca66903575fdfdb1188afc5d69c3bb6d0bd232d5eced7f4ac4a9c2f3aaff59a4164024e38bbd7f4c0a2c4a074c008 WHIRLPOOL 84e24bfc65736aa714a5506c9e8b1fa9e6ddc91e0c06e991e4598cdf1b85c1da68317fded1374fbfa6076f7a81c0da0cded87d7e3e9f2a1427d5218a59482fcf EBUILD ffmpeg-1.0.8.ebuild 9652 SHA256 1def1e010712626f090b7945a3fdd7134d39a6fbef32b589681675d5d9c41ec1 SHA512 5980171b00391cd8911c8a8e0e23648ee7bca693e6304b9440c81dba27cb8be7729e5dc32c3ecd52d95a683519e89b059ac235226a5e79bddb72e5c412fa8d3f WHIRLPOOL 6ce5c315b8fab1e2f9d7ddf322075cbf03f1cbbac4e189fc6642e859b0167dd0146084396fea2948c4feca625680a7db55d1c924dac3c1539bfb9e6b9a24f45c EBUILD ffmpeg-1.0.9.ebuild 9660 SHA256 e0ced5226a124b248e69a5203e03b94c32857b653d95e1ae04fcdd645b9497c0 SHA512 560d050a1fc529c8d662e06d84a3a8ee7eed4a9914d6499f0a3798be28bbb7939e20703156b0516da7afde802218f3ad971ab7d525edb73554a298bbea9dd021 WHIRLPOOL c8438ee1fae964cd0f1f7f6c61d089fa4336488b2e11ed6c34df47cb330e0265df338ea1133bc323c7869b4828f5dc00423ae945d13a54083627dd967451092e @@ -31,12 +33,12 @@ EBUILD ffmpeg-2.3.1.ebuild 12876 SHA256 cd2a1cf17e1b58d7d31fc65787089be2e4ac710f EBUILD ffmpeg-2.3.2.ebuild 12878 SHA256 d28e280bdbfcf4359ce1423e7ed9e40e660682590609081f90f1b0efdd894e33 SHA512 3393038a97601d0295e71bb34042586f6a83841c88acbe56b483f294852947443881c76968080e1103e49b386688a82ea0688f1c238dd9ca755a7b9819ea651d WHIRLPOOL 32dce92a63d9a79c5a27cf35fc2104dda77d24236ea85af2d8ec138a4955203c51cfe169c1acda11ca686934104b67ef17e04efb7e5d42a60dd0ed137b498184 EBUILD ffmpeg-2.3.ebuild 12874 SHA256 621b96aa35556f50dd64c00e4023afd9faba85994833c60bddd167a895e9fe06 SHA512 2ce05f69d06b32c5927e9f5534abf16c033e4bb78dc933194f127791fe1bce9bb14c5919a61f72ff5a87c73be3d2342158fd18d9f7d477721455d37d76c330ea WHIRLPOOL 0cf637dfc3886412ac9d5dbf7fe5a487773be32df1de1971faa8257779917710b8caaa3ffd72942dee1cb7d302f39ed285f99efb94c14d96a5af26d622190852 EBUILD ffmpeg-9999.ebuild 12921 SHA256 b02e76b4a98ff9a89e12411a28e969fe7111a64e995cb82d8f283300e28704ab SHA512 f30b00688447fad9c8a269173e17b7cfb701bf86fa0a464493840b516fb03a2fb5aa3576bf05d59001985dd7eaf41cb677d3be328c8914161eee642b50a29c38 WHIRLPOOL 0a50eb31cfedc0d8eaabbfdf975ef3d5242b9cf8d235f45612a063f915855464a4a166b9a4b61a27794642696fab48791c51ec3915c5d147259c091961f55960 -MISC ChangeLog 108152 SHA256 61f7ffa2bafaec2d66726eeffa9e32df7d62883da99441fa33c50a811d27c127 SHA512 e013c6f170c889e9167ec267cc0de281c573e03772cf5bd4318dca7b50b6e9bdd4d0221ce191422ca8a74855e9b2482d8764b4d40599c73a00d0a2c3c46bc4b0 WHIRLPOOL 534a1a18b5271fcf39c073fdcc184a9b251d8f5a1d9a4e318ab87dcc19562244d1ca84926618a5807e222099bda46bfa256f4179e2854885f3bec9ea7827dc12 +MISC ChangeLog 108275 SHA256 f1f6f1d13584ed9038c2d0687b60389f6e1bbec4a9da93265fbf17eec12a33c9 SHA512 4be9a656e6ad22bf82fcf3288b12801b4709bdc6574cd349740d5cbe362a346a52fe3724f861ea01d5e9a13be90eb7ade800de95c93d8ea7237f8b57062d5784 WHIRLPOOL 1d3cdb48c0cde341253a3be9dc45b0c709c88f3c192a339132247766a771a74c5fb3dabdac63f7f3596031b89f7c3da1a3b2cb75ec3cfc4e431368376c8377e1 MISC metadata.xml 5647 SHA256 359e839a7d9c3c36825bfae0e9217688785d279cebbfc440bd4074f5bc58fb9c SHA512 3efe9374ca61952911a6593417494092d9fd5465745a63e427dc74cbd6aa4af46277ec4865603daf5b27163c8db97823ff2b4eb857e88d73f3278e63a949e372 WHIRLPOOL fc5873ea67edea764b6ffff08862ad850a4bef83daed4a1ac03fc2cd9cfb8cb587561ce8fdee39a79fd6686b4605bebaaa0c00dac6a858e5d6f5ac563751ea20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iEYEAREIAAYFAlPrrcMACgkQvFcC4BYPU0qBgQCfYMTtFZ9zflYtffgQrDPysP31 -fHgAn2RJhtug6UiCep/zZ0AJ+QuMJcL2 -=yYxx +iEYEAREIAAYFAlPrsF0ACgkQvFcC4BYPU0oy8QCfbNk8Acr54FfQNU9Nku6JqmCl +ZpoAoI3/UXMafwsSoy14s1XERCIyfXUt +=nN+s -----END PGP SIGNATURE----- diff --git a/media-video/ffmpeg/ffmpeg-0.10.15.ebuild b/media-video/ffmpeg/ffmpeg-0.10.15.ebuild new file mode 100644 index 000000000000..a30162ae2297 --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-0.10.15.ebuild @@ -0,0 +1,273 @@ +# 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.15.ebuild,v 1.1 2014/08/13 18:37:16 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-1.0.27.2[${MULTILIB_USEDEP}] ) + amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) + bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) + cdio? ( >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] ) + celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) + dirac? ( >=media-video/dirac-1.0.2-r1[${MULTILIB_USEDEP}] ) + encode? ( + aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) + aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] ) + amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) + faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) + mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) + theora? ( >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] ) + vorbis? ( >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] ) + x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) + xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) + ) + frei0r? ( media-plugins/frei0r-plugins[${MULTILIB_USEDEP}] ) + gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) + gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) + ieee1394? ( >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] ) + jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) + jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) + libass? ( >=media-libs/libass-0.10.2[${MULTILIB_USEDEP}] ) + libv4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] ) + modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) + openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] ) + openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) + pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) + rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) + schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) + sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) + speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) + truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) + vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) + vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) + vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) + X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${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 +} |