diff options
author | Alexis Ballier <aballier@gentoo.org> | 2014-07-27 09:36:23 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2014-07-27 09:36:23 +0000 |
commit | b27561161f34b26fbc2a3314198c5e12d8865006 (patch) | |
tree | 3243e4447fb6aa60f54797227ba2f057e6d8d57b /media-video | |
parent | Add missing Prefix keywords, bug #517726 (diff) | |
download | historical-b27561161f34b26fbc2a3314198c5e12d8865006.tar.gz historical-b27561161f34b26fbc2a3314198c5e12d8865006.tar.bz2 historical-b27561161f34b26fbc2a3314198c5e12d8865006.zip |
version bump
Package-Manager: portage-2.2.10/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-2.3.ebuild | 381 |
3 files changed, 393 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index d6edfd49f7b6..f6f9fa97eedc 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.770 2014/07/27 09:23:21 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.771 2014/07/27 09:36:19 aballier Exp $ + +*ffmpeg-2.3 (27 Jul 2014) + + 27 Jul 2014; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.3.ebuild: + version bump 27 Jul 2014; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999.ebuild, metadata.xml: diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index 7921157e324b..ecc33f7c04bd 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -14,6 +14,7 @@ DIST ffmpeg-1.0.9.tar.bz2 6449857 SHA256 98b3c35bcc602ab1e236fa64da8ead3deae7a5f DIST ffmpeg-1.2.6.tar.bz2 5970714 SHA256 29d454de3458cf327df246cc2a2ef0fa09cb88af7880f733525de12bde70999c SHA512 bc3aa640549e7f17f3a24a7d866a89ab23e9920c2d655a1a03bb4b85b8bdc33500bce3ba6fb570376453c158291a6f4bd2953f258d5a3f989cbdcb30e9a25ee4 WHIRLPOOL 6959a0e72b98dfb56381010f06f98d387a6389037d214f8d600d868d41baddd73417b5df7b00c8b160f6a59778c20c27708d2cc115dde76d6c94dcfbf307b51e DIST ffmpeg-1.2.7.tar.bz2 5969563 SHA256 669b59483773b5b58d63b65e12749d68428729eaa6978c5acc6c82a60a2ed28e SHA512 b23800b1f7de5ab3ee473931f4d8791e4927b8d248df66c36ade54001365438eb7424ec2ee9e018ab37b76a9551457efdec019ea8356f8e59f1055fe1096f88b WHIRLPOOL d28a3c4bd7c67847d21c71f33b7fce0760136881ca2228c18ae41d5dc6ead2a50d9cbcf3d6593a82e51e666428389fce0c546f711b13bae530c464de2ac3101d DIST ffmpeg-2.2.5.tar.bz2 7024774 SHA256 c8587a1ac91599dd87fcfb53de6e32b9ab81449e7f22ff55044faf7815a68633 SHA512 cf350638e0b9987988bf4feebb44072fd14df6a3c49b1de9830a9126f1bbd6d11a21e84b9ded751849400ca11348b1952cb361099fa8a5ea737468a799f40cd3 WHIRLPOOL 32d98787d6d1c4e9fdb7261931f29f11aa3647ab7e4850fa4606336bf9da43be2fe07e05f1263f0ae03b666fe1ced57f27e5b8395b738425fd7c7c8bcee35c84 +DIST ffmpeg-2.3.tar.bz2 7443666 SHA256 6b3dbb64e20951480bfd64bcbe305f6ee9031e5fccfd3b3e94cc5055525f809e SHA512 82bbe5109e426cbd3063f8b2edb3e2daa7f237c4fc46ca37907ab316351978b689f2e0c4d88645b2eb19582765072702f3a19a17c6b02dd11bccac3b41d27a03 WHIRLPOOL a6f16226e07f17c6fb66e58154035f0ae65d52bb113db7afb1ac234d467ce53a58a044cd262fa98a11a7e83faeadc0c16b2e9d3115f83d3e39c76f00d43db3a3 EBUILD ffmpeg-0.10.14.ebuild 9939 SHA256 289e85620575a1047e1c9d1a67d3701ff8e6182e35bcc5adca2c89bebdb19633 SHA512 58b1c056dda8081d188c48ca78421ffca69a7f9d871688898891394713a0bd95c311b406692f42b8a4c1c26780691918977a564232f4e84c19ad1c0af024de29 WHIRLPOOL 8e5957761593a7d54ba856be18e860ffc1e1d55fa08b0e6cbe9344fa2064955acacda44b44f3ffe4b869a3baa1e67529b93989b99299407970eb0ce9bbe1cdba EBUILD ffmpeg-1.0.10.ebuild 9664 SHA256 b52713e12a8feb8f5ee867fc8cf5351e37bdfcc1f062ba1aaee51c60487f3419 SHA512 8be8ea9d842040c056e88d67debbb0b539e14e13a0deac369469a3fa265c4b9ca71369ecd4fe23d1e4fc6c16c9581c2d4deae41d4c09acc91f207fd1e5e958ac WHIRLPOOL c7c6b5c7e1ef974a4dd40e51ddd8ca53d4df2633f335d996f99c836c1798119d62ce99e8359d39a5c2fdacf06b2c8708f70fd12723ab74f6f15032092a7778c2 EBUILD ffmpeg-1.0.8.ebuild 9650 SHA256 32a1b9c7967b092291331f6a24a1d7cc1c8cbeb1c70ae959cb4689f1e9988180 SHA512 637658df591c78ab45015022054941846b4748de77633d2f2585ffb732ac6318b8a3e540b3f58d79dddf312580ff63d8f3b277e7db2db055c08d47170ccb9ffb WHIRLPOOL 645144c0fc95cb403336d76737d11914cd87ab48eeecf5ebdae45b8c255f8f3d495d45684047acc6bdbf680995424064225ea6a9f2d82099f68246417eb05e57 @@ -22,13 +23,14 @@ EBUILD ffmpeg-1.2.6-r1.ebuild 10975 SHA256 9bd7c3e4794077b729c2b98a3f455fccb91ae EBUILD ffmpeg-1.2.6.ebuild 8995 SHA256 f4c2793bcf14315fbdb7a210e86cb39747a2211a9d4f8aa97a79d26e4a44ed9e SHA512 9ae6b8785d8f11d0321f6dfb034dc630f23facfca1e96ad8e89d7ea704b3e4151728edef3dc247526697cf8254c75d1860774826440b7781be465d3a970a29ca WHIRLPOOL d0f08e038fef816028792ff064d8196f61fa0a5494bed33c68a6cc33c917ade86d98bacd07c0128cb6d321c6864ba34f8a8e65b633fff396e40b6506c221971d EBUILD ffmpeg-1.2.7.ebuild 10928 SHA256 942543b32425110f4c90639bf9a7918207486151472fbf0de3f52761ad9ed139 SHA512 5b6d9b0bc0d7557497999b0d3f4fc1f9c6390d04c77a589aa509852adb046fef740b960eb6a617efc9c9e92596dfa89a197bd323e6cc603b560c45d8058870e0 WHIRLPOOL 1544976d97947819a2b28f06fdda49bfb7b1bf3e612a0c25485d96b386287ab9bb6fd4f7c1dbdc2f49d2fb8b25177a11bf0da0d89231997efb088dd35953bc0b EBUILD ffmpeg-2.2.5.ebuild 12544 SHA256 b9437983f6eea175538e94a3e5417f4eaa73897ca5803305b1b4ff6c927e2b45 SHA512 0587223cc3a37e5e720fcf3e9dd6a9751dcc462686e216d1bef899e2523485962af6a3b9954c0f26f3888811d1a2ddb49fc86de6680ea2e79733cdf2b5935258 WHIRLPOOL 5974af7a051c794aef79a7dec4e489e6541d1d8ea85df47d8169a8cca4df9130de6cfff376989f9f328364591d7d7dd98e200c92dc8295b82c61548562dc58fa +EBUILD ffmpeg-2.3.ebuild 12872 SHA256 275a9d893dd84c0e42ae1a5abee3b15575d118f7b24afcfa5b3a59726aea9405 SHA512 fe0a3a1c497c9c2c85e3e60377a93246066051207601291d9155918fabd7c283abfda3d6664d603327498f26bf5ddd00cc811b6659a0c927d9d9c006b8dfb9e1 WHIRLPOOL dc2ff5048aa02526e0990b3a9c8dd337643abe870911a7879f0bcd9ceb04d1547fcaa73d8a5c412bc218cc15b0a33961125cd91b7d3739cdda8534f2aaa62da9 EBUILD ffmpeg-9999.ebuild 12924 SHA256 91534a16f7e444690a7b885b2a18936d0b0185819f3e40c01e981670f7d848e0 SHA512 5a94533f0910c1e1f411f87233e06c29d5a0413adf27d02d3d7fb9024a032c88ab22d2350111a8639c6def4d707caba8fd7d73250b0284ede4fe60cac6a63085 WHIRLPOOL cd9d82ed902da9efc596d1d36eaa6720048f4c8466049fffabadec31c995631b8621cd75f4fc4bae1bd3f622dff52b091b66dc9bcb7f9d41925c5fd10cbbc20d -MISC ChangeLog 106839 SHA256 32ae8510ca6098304b2e8507c069d9cee3e2d65e06aaee405d024663ed2f2e9f SHA512 c0281c8bdc82b25300dc3285b946d2fb5b4cab63dea79553515c33d48912860cf833839e9c16e13fc6bd99886b4f186b241c5787bd372065aa8654875574b7b0 WHIRLPOOL e5715f51de722469e4d2cfbb8c6ba9fc890a0b0a182cb292965d6b91e44408185b4eaaa7b5a170c29c6effa356b853ae0d18a256a577be604b125d1edba69a6c +MISC ChangeLog 106954 SHA256 fd38df737d38eefaa5c4891d8b6abe62aac6a6b506e9704e2c2eee714ae05b1b SHA512 8e9865744be051b09ec9a2f97151b4fab27c8ed008ffbb49a921af358df76cebd0b24ffda829e9775ce96de9230b71c8d367e1dc5b60345ec45539308fde11c8 WHIRLPOOL d42ea8a3deeff6498a02ddf1686b4eda1d1d3f4e16774c166b2adfec2ff13baf598bf8adc0876837278db0684ecbbd127de7b74abb889f0f2e08a13123c578f3 MISC metadata.xml 5647 SHA256 359e839a7d9c3c36825bfae0e9217688785d279cebbfc440bd4074f5bc58fb9c SHA512 3efe9374ca61952911a6593417494092d9fd5465745a63e427dc74cbd6aa4af46277ec4865603daf5b27163c8db97823ff2b4eb857e88d73f3278e63a949e372 WHIRLPOOL fc5873ea67edea764b6ffff08862ad850a4bef83daed4a1ac03fc2cd9cfb8cb587561ce8fdee39a79fd6686b4605bebaaa0c00dac6a858e5d6f5ac563751ea20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iEYEAREIAAYFAlPUxQoACgkQvFcC4BYPU0rraQCfeyuajxFrKKvpIAsB1mR7oyox -aksAn2fXtruKNI9UrCqPmeafI9u71hC8 -=eJMh +iEYEAREIAAYFAlPUyBUACgkQvFcC4BYPU0pg2gCePvmUJ90n7rEhC5krOwMID5wL +UusAnA3iecxgpk4aiTAJFQuilm2Uj/xx +=/WGi -----END PGP SIGNATURE----- diff --git a/media-video/ffmpeg/ffmpeg-2.3.ebuild b/media-video/ffmpeg/ffmpeg-2.3.ebuild new file mode 100644 index 000000000000..7294aaf4fb67 --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-2.3.ebuild @@ -0,0 +1,381 @@ +# 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-2.3.ebuild,v 1.1 2014/07/27 09:36:19 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 multilib-minimal 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 ) ) samba? ( GPL-3 )" +SLOT="0/${FFMPEG_SUBSLOT}" +if [ "${PV#9999}" = "${PV}" ] ; then + KEYWORDS="~amd64 ~hppa ~mips ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" +fi +IUSE=" + aac aacplus alsa amr amrenc bindist bluray bs2b +bzip2 cdio celt + cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r + fribidi gme gnutls gsm +hardcoded-tables +iconv iec61883 ieee1394 jack + jpeg2k ladspa libass libcaca libsoxr libv4l modplug mp3 +network openal + opengl openssl opus oss pic pulseaudio quvi rtmp samba schroedinger sdl + speex ssh static-libs test theora threads truetype twolame v4l vaapi vdpau + vorbis vpx wavpack webp X x264 x265 xvid +zlib zvbi + " + +ARM_CPU_FEATURES="armv5te armv6 armv6t2 neon armvfp:vfp" +MIPS_CPU_FEATURES="mips32r2 mipsdspr1 mipsdspr2 mipsfpu" +PPC_CPU_FEATURES="altivec" +X86_CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext avx avx2 fma3 fma4 mmx mmxext sse sse2 sse3 ssse3 sse4 sse4_2:sse42 xop" + +# 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=" + ${ARM_CPU_FEATURES} + ${MIPS_CPU_FEATURES} + ${PPC_CPU_FEATURES} + ${X86_CPU_FEATURES} +" + +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-1.0.27.2[${MULTILIB_USEDEP}] ) + amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) + bluray? ( >=media-libs/libbluray-0.3.0-r1[${MULTILIB_USEDEP}] ) + bs2b? ( >=media-libs/libbs2b-3.1.0-r1[${MULTILIB_USEDEP}] ) + bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) + cdio? ( + || ( + >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] + <dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}] + ) + ) + celt? ( >=media-libs/celt-0.11.1-r1[${MULTILIB_USEDEP}] ) + encode? ( + aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) + aacplus? ( >=media-libs/libaacplus-2.0.2-r1[${MULTILIB_USEDEP}] ) + amrenc? ( >=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}] + ) + twolame? ( >=media-sound/twolame-0.3.13-r1[${MULTILIB_USEDEP}] ) + wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) + webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) + x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) + x265? ( >=media-libs/x265-1.0:=[${MULTILIB_USEDEP}] ) + xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) + ) + fdk? ( >=media-libs/fdk-aac-0.1.3[${MULTILIB_USEDEP}] ) + flite? ( >=app-accessibility/flite-1.4-r4[${MULTILIB_USEDEP}] ) + fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) + frei0r? ( media-plugins/frei0r-plugins ) + fribidi? ( >=dev-libs/fribidi-0.19.6[${MULTILIB_USEDEP}] ) + gme? ( >=media-libs/game-music-emu-0.6.0[${MULTILIB_USEDEP}] ) + gnutls? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) + gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) + iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] ) + iec61883? ( + >=media-libs/libiec61883-1.2.0-r1[${MULTILIB_USEDEP}] + >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] + >=sys-libs/libavc1394-0.5.4-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}] ) + libcaca? ( >=media-libs/libcaca-0.99_beta18-r1[${MULTILIB_USEDEP}] ) + libsoxr? ( >=media-libs/soxr-0.1.0[${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}] ) + opengl? ( >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] ) + openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) + opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) + pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) + quvi? ( media-libs/libquvi:0.4[${MULTILIB_USEDEP}] ) + rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) + samba? ( >=net-fs/samba-3.6.23-r1[${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}] ) + ssh? ( >=net-libs/libssh-0.5.5[${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}] ) + vorbis? ( + >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] + >=media-libs/libogg-1.3.0[${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}] ) + zvbi? ( >=media-libs/zvbi-0.2.35[${MULTILIB_USEDEP}] ) + !media-video/qt-faststart + !media-libs/libpostproc +" + +DEPEND="${RDEPEND} + >=sys-devel/make-3.81 + doc? ( app-text/texi2html ) + fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + gnutls? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + ladspa? ( >=media-libs/ladspa-sdk-1.13-r2[${MULTILIB_USEDEP}] ) + libv4l? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + mmx? ( >=dev-lang/yasm-1.2 ) + rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + test? ( net-misc/wget ) + truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + v4l? ( sys-kernel/linux-headers ) +" + +RDEPEND="${RDEPEND} + abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" + +# faac is license-incompatible with ffmpeg +REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl ) + libv4l? ( v4l ) + fftools_cws2fws? ( zlib ) + test? ( encode )" + +S=${WORKDIR}/${P/_/-} + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/libavutil/avconfig.h +) + +src_prepare() { + if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot + export revision=git-N-${FFMPEG_REVISION} + fi + epatch_user +} + +multilib_src_configure() { + 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 samba:libsmbclient + sdl:ffplay vaapi vdpau X:xlib zlib + ) + use openssl && myconf+=( --enable-nonfree ) + use samba && myconf+=( --enable-version3 ) + + # Encoders + if use encode + then + ffuse+=( aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame ) + for i in aacplus faac theora twolame wavpack webp x264 x265 xvid; do + ffuse+=( ${i}:lib${i} ) + done + + # Licensing. + if use aac || use amrenc ; then + myconf+=( --enable-version3 ) + fi + if use aacplus || use faac ; then + myconf+=( --enable-nonfree ) + fi + else + myconf+=( --disable-encoders ) + fi + + # libavdevice options + ffuse+=( cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl ) + + # Indevs + use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 ) + for i in alsa oss jack ; do + use ${i} || myconf+=( --disable-indev=${i} ) + done + ffuse+=( libv4l:libv4l2 pulseaudio:libpulse X:x11grab ) + + # Outdevs + for i in alsa oss sdl ; do + use ${i} || myconf+=( --disable-outdev=${i} ) + done + + # libavfilter options + ffuse+=( bs2b:libbs2b flite:libflite frei0r fribidi:libfribidi fontconfig ladspa libass truetype:libfreetype ) + + # libswresample options + ffuse+=( libsoxr ) + + # Threads; we only support pthread for now but ffmpeg supports more + ffuse+=( threads:pthreads ) + + # Decoders + ffuse+=( amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg ) + use amr && myconf+=( --enable-version3 ) + for i in bluray celt gme gsm modplug opus quvi rtmp ssh schroedinger speex vorbis vpx zvbi; do + ffuse+=( ${i}:lib${i} ) + done + use fdk && myconf+=( --enable-nonfree ) + + for i in "${ffuse[@]}" ; do + myconf+=( $(use_enable ${i%:*} ${i#*:}) ) + done + + # (temporarily) disable non-multilib deps + if ! multilib_is_native_abi; then + for i in frei0r ; do + myconf+=( --disable-${i} ) + done + fi + + # CPU features + for i in ${CPU_FEATURES}; do + use ${i%:*} || myconf+=( --disable-${i#*:} ) + done + if use pic ; then + myconf+=( --enable-pic ) + # disable asm code if PIC is required + # as the provided asm decidedly is not PIC for x86. + [[ ${ABI} == x86 ]] && 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+=( --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+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- ) + case ${CHOST} in + *freebsd*) + myconf+=( --target-os=freebsd ) + ;; + mingw32*) + myconf+=( --target-os=mingw32 ) + ;; + *linux*) + myconf+=( --target-os=linux ) + ;; + esac + fi + + set -- "${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[@]}" + echo "${@}" + "${@}" || die +} + +multilib_src_compile() { + emake V=1 + + if multilib_is_native_abi; then + for i in ${FFTOOLS} ; do + if use fftools_${i} ; then + emake V=1 tools/${i} + fi + done + fi +} + +multilib_src_install() { + emake V=1 DESTDIR="${D}" install install-man + + if multilib_is_native_abi; then + for i in ${FFTOOLS} ; do + if use fftools_${i} ; then + dobin tools/${i} + fi + done + fi +} + +multilib_src_install_all() { + dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges + [ -f "RELEASE_NOTES" ] && dodoc "RELEASE_NOTES" + use doc && dohtml -r doc/* + if use examples ; then + dodoc -r doc/examples + docompress -x /usr/share/doc/${PF}/examples + fi +} + +multilib_src_test() { + 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 +} |