summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2014-03-16 22:43:05 +0000
committerAlexis Ballier <aballier@gentoo.org>2014-03-16 22:43:05 +0000
commit7fdadef0a6d5e4956306d7fff1467ca02e932539 (patch)
treedec0a66cac7877541d334d5c8fab33d244a730fc /media-video
parentMask unstable USE flags on media-video/vlc, see security bug #499806. (diff)
downloadhistorical-7fdadef0a6d5e4956306d7fff1467ca02e932539.tar.gz
historical-7fdadef0a6d5e4956306d7fff1467ca02e932539.tar.bz2
historical-7fdadef0a6d5e4956306d7fff1467ca02e932539.zip
bump 2.2_rc2 as it starts to differ from master
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-video')
-rw-r--r--media-video/ffmpeg/ChangeLog7
-rw-r--r--media-video/ffmpeg/Manifest10
-rw-r--r--media-video/ffmpeg/ffmpeg-2.2_rc2.ebuild335
3 files changed, 347 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index ce4bbafdd4b7..e189a0ad6091 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.723 2014/03/16 22:34:43 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.724 2014/03/16 22:43:00 aballier Exp $
+
+*ffmpeg-2.2_rc2 (16 Mar 2014)
+
+ 16 Mar 2014; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.2_rc2.ebuild:
+ bump 2.2_rc2 as it starts to differ from master
16 Mar 2014; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999.ebuild,
metadata.xml:
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index eae91d70894a..051e4dcadecf 100644
--- a/media-video/ffmpeg/Manifest
+++ b/media-video/ffmpeg/Manifest
@@ -10,18 +10,20 @@ DIST ffmpeg-1.0.8.tar.bz2 6452144 SHA256 8580a317aa09fdabdcf5119c87f59fd3baa4df0
DIST ffmpeg-1.0.9.tar.bz2 6449857 SHA256 98b3c35bcc602ab1e236fa64da8ead3deae7a5f9c958c572b46fb299260d1034 SHA512 323764f40a03ec339e1743a57ba545c74b7a58fad7c2db29c252dd276a74e761f00649aa560415cd38e80db51d34037c66c8aaae6971f35d83f7d1943d1e7109 WHIRLPOOL e4ba2ce05f76a2414a46fbd04d50c1d1f7638b43fee718ab60d56f8ef5fbe367f33d992c3a6b3802cde9cfeb0252c4112a0f0e1c56c4fd10d76ead424f3c0ab1
DIST ffmpeg-1.2.6.tar.bz2 5970714 SHA256 29d454de3458cf327df246cc2a2ef0fa09cb88af7880f733525de12bde70999c SHA512 bc3aa640549e7f17f3a24a7d866a89ab23e9920c2d655a1a03bb4b85b8bdc33500bce3ba6fb570376453c158291a6f4bd2953f258d5a3f989cbdcb30e9a25ee4 WHIRLPOOL 6959a0e72b98dfb56381010f06f98d387a6389037d214f8d600d868d41baddd73417b5df7b00c8b160f6a59778c20c27708d2cc115dde76d6c94dcfbf307b51e
DIST ffmpeg-2.1.4.tar.bz2 6638914 SHA256 7fb46cbd686830db192968e2f117744b1e9cd23f2fcf5ee63e6cbeaa089a8101 SHA512 37478730420be5d769b3c3ff743af6bb68406e20d86079d0e971334100801e41842881c53a2e307e3c0326019cb7b3402a847e5c67c20d305007b90c2973dd4f WHIRLPOOL 48e9f6889b813dc07f520e52d953895d6220e04b81e347f22913e4518f2577bdb6d87d053b7764d99f80608cbe5ecbd075255825779ed43de18676e3aa5966b9
+DIST ffmpeg-2.2-rc2.tar.bz2 7022625 SHA256 a0d29c35397097bfb7a8b6004c1c1c0d7f1707a088aaab2aee43d478853ee307 SHA512 16dc63c519d0cac0b8cc2bb30b48aa863536a8bab2e48e00de5bfc3ebc711cb59122ed2fc2e53b8aa4af677c1b035f4460719d815645f4c7d570fb8a692deccb WHIRLPOOL e408a77d3458b6d254491c2b16d9c2a2c717eacd59fd007f0017159e36ec55fc0d61a431460a0cf53ce7cb9919905b35132fc693c08466cff8ba58c654093e0b
EBUILD ffmpeg-0.10.12.ebuild 9684 SHA256 c4889c053bd9244fc822d0f02748d731d371d86bc4c0890f2f05e078644540b7 SHA512 281cdb54e2a703f3e4d387b89da9294e6f2942962afb212475799a147bffe5c4bb6ef6efa6b36f84abbd809f77a29c0ccae2239fde65ec1d376868ac91a532f3 WHIRLPOOL 4126d694ccb38880819f64e2aa33b5cf0cc8824f1135d76e56d82cfe71e4a11e36437a7c2ef98ed245c611bff5f5a1c56c377540da404a739db01c097e1eb3a1
EBUILD ffmpeg-1.0.8.ebuild 9650 SHA256 84d1ef638cfe3c7fe5106e9c3d3ec7905cb5288b67261de32bc58eb1846af229 SHA512 15fd02e2944286676040fe747878fd4230a60a512abc9b97eda177fc8fbf853421d410b0b4a7a3a5e04842e96366f3e419748df00878803a2b17b3d0d71fbf90 WHIRLPOOL 3e9a4181f732c9441811413dc0fa3ac35b2733712ea6b0a97e67d815af4739d710c56d04bb0047466fd2989f0e7999c886ac778c77424e8d39c3078eeb340d68
EBUILD ffmpeg-1.0.9.ebuild 9663 SHA256 555f55ea849c1696b1101c8b88bf3013c90e66355083a41294ae1149088e0278 SHA512 3b6eec2aed3ce504a59bfb7d6bc65a1e7ec96fd180e438d5a2ec729855f91d99970a2435dbf4c447c9d092649f4c7b33bf9de7f544341bfb19d5f32cf08a5e07 WHIRLPOOL dd73000403bc8b748c0818385c89990b922e114c5c7310a18f9483e4010220f09bee4db3e716b08e0beab364e0cc6d659ea90a62c85f69033b87cf18f605eb29
EBUILD ffmpeg-1.2.6.ebuild 8939 SHA256 0eb74cc40aab27a0b9031957e59fcddba75190ead03d00987d828dffcf4b32fa SHA512 614c8f588e6be9cc081225b3e05313273ec1e6394f05126e5ef8d2f0f0d3970f2f5e4b1d57f4ea868954a29428137611e13a29e1bca8bafb78f71fd68d8dafe6 WHIRLPOOL 8705bd3dd8cb6095b8970f0bae98f73c9b0243ea2c5b3cc8139c12410b7a0298412a821015461a401abaee0f79279ac3f572237c8468732e826fc876b4f49f0e
EBUILD ffmpeg-2.1.4.ebuild 10244 SHA256 367938fd42fbe4fc6eba0dc63b18ab97eb8ece9e626bb736a26bca5aa08be8c5 SHA512 066c4d17588d95642235114057f8a486471b886cc78e791a4c10994dff717ec7120510d5894303ffb9b74ff4e8822a7a1d83b66abf83308c406cc1a8e3d094c8 WHIRLPOOL 8ff8507f4b88f78992083d08dad73f43dfcf3fc8e06202e9192938aebf25d2cc3f5a78d0399f6833047b68d1515f794a53a03228d79d0a71c30ceb5ff5960917
+EBUILD ffmpeg-2.2_rc2.ebuild 10344 SHA256 0faef434247bd50198b7fb7067c36c83e51a8d9d64f8dc7c20651dcdc961bc44 SHA512 1b589d6c162b3076a7fe814e4cd851e84feef18a53cb23aae74f1053ddfdf697c080e65084320e90697a5085b46681b18307756068d37a21d0d6fc245384996e WHIRLPOOL 8bb015baf87934ca14a21ba491393d332ca0a15d2bf585abc91518109f7834b3ef4058e6c49f36cc4cf1e58d1665ed40e9d82afd0a734f2fd0678dadff77c3d3
EBUILD ffmpeg-9999.ebuild 10351 SHA256 7b6cebed014c95180f8b532f7a9835e9902fb4f0f15bee15cdcc2351ad8d4711 SHA512 2a8fd17306c75226ce61ea3cbc50049e0c3d23dec60191f68840ffadf66ea892896c5cbca62cda44b681da3235cf5943cbd87991a59ff04700f796852c90c89e WHIRLPOOL fcb3ea07978e4a9aabe125704d130941a2284a00ef7580d8397937c55addfb9befcc2b34a1de4097e0ff13d07f9604f7e217fe83e9bd5805cb3399a492eeded9
-MISC ChangeLog 100641 SHA256 c04b4fb46637d655271f50984bbd668c558c77829f182a93bd854c04b086f401 SHA512 c7a156a879bf0cfb17ebb82f243ce282fcc193e7bca92a636d8495e7ce3198a61b7b434bf78181cefdbb57b43e7bd6486eb0c75746924de9b1c2fa888337d78a WHIRLPOOL 0a38245c6c0ff84daa82c873133f16d777283c5e366a5b1c468d398459df5f7295473418f68fe506c72254e285a6ab84ccc6abf50ba44dc5d536f36e773bf60e
+MISC ChangeLog 100799 SHA256 3b7b02416eb73e18b9204bc4754aa06fb97b6baf6e055452b024a4b421d98f13 SHA512 5f302112de8ac09b55d7c406a7eec0e0ad8a4c42238e01e8374a8f50a51c680d6ac9722f6271efc5fac6b8347a6c4249ff737ff57bc9c063bcb671d577f8499a WHIRLPOOL 708707980b6cd5dde6619ad39b4f49edbbff85e1c82d08f99f5c539250827678ce2614d787e7a4290367282f1dbfd6397551a097011cb539b093d0482bb3fbf4
MISC metadata.xml 5340 SHA256 010fe23d4fce67e3ebfdba2d3d0e4c4ecf7cb12885397c2058096955733f19a3 SHA512 8b1e55fa5896382e700ff61be266b635b2f3873ac7e29f331cc3a31be683cf9b2e24d93b52cd109149dab2d98ae58f5151dccdc8e6f48f2abe56382a11a471db WHIRLPOOL 420bfe98b7d0b58cdc56f76cdcf74fb1fe69df2ec6501d1444202786465ad63d255ca1a63340d52bb4586b19b1f14fb1ca859f8798071644c95f1d200cd281cc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlMmJwUACgkQvFcC4BYPU0qY9wCgpvy1k8sk/xKzTsrh2S3EsMiD
-fLkAn0d1MLTun8ays79TlZUd4nZxI5dZ
-=ysmF
+iEYEAREIAAYFAlMmKPUACgkQvFcC4BYPU0rfpwCfedwjIzesXBBVe0lAaRq5g43T
+MiAAoJ1TSOxEwWZU/KZAl6Wcw0MHTwAr
+=CmOO
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-2.2_rc2.ebuild b/media-video/ffmpeg/ffmpeg-2.2_rc2.ebuild
new file mode 100644
index 000000000000..0c7811e088f5
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-2.2_rc2.ebuild
@@ -0,0 +1,335 @@
+# 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.2_rc2.ebuild,v 1.1 2014/03/16 22:43:00 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 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 ) )"
+SLOT="0/${FFMPEG_SUBSLOT}"
+if [ "${PV#9999}" = "${PV}" ] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
+fi
+IUSE="
+ aac aacplus alsa amr amrenc bindist bluray +bzip2 cdio celt
+ cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r
+ 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 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"
+
+# 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 )
+ amr? ( media-libs/opencore-amr )
+ bluray? ( media-libs/libbluray )
+ bzip2? ( app-arch/bzip2 )
+ cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
+ celt? ( >=media-libs/celt-0.11.1 )
+ encode? (
+ aac? ( media-libs/vo-aacenc )
+ aacplus? ( media-libs/libaacplus )
+ amrenc? ( media-libs/vo-amrwbenc )
+ faac? ( media-libs/faac )
+ mp3? ( >=media-sound/lame-3.98.3 )
+ theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg )
+ twolame? ( media-sound/twolame )
+ wavpack? ( media-sound/wavpack )
+ webp? ( media-libs/libwebp )
+ x264? ( >=media-libs/x264-0.0.20111017:= )
+ x265? ( <media-libs/x265-0.9:= )
+ xvid? ( >=media-libs/xvid-1.1.0 )
+ )
+ fdk? ( >=media-libs/fdk-aac-0.1.3 )
+ flite? ( app-accessibility/flite )
+ fontconfig? ( media-libs/fontconfig )
+ frei0r? ( media-plugins/frei0r-plugins )
+ gme? ( media-libs/game-music-emu )
+ gnutls? ( >=net-libs/gnutls-2.12.16 )
+ gsm? ( >=media-sound/gsm-1.0.12-r1 )
+ iconv? ( virtual/libiconv )
+ iec61883? ( media-libs/libiec61883 sys-libs/libraw1394 sys-libs/libavc1394 )
+ ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jpeg2k? ( >=media-libs/openjpeg-1.3-r2:0 )
+ libass? ( media-libs/libass )
+ libcaca? ( media-libs/libcaca )
+ libsoxr? ( media-libs/soxr )
+ libv4l? ( media-libs/libv4l )
+ modplug? ( media-libs/libmodplug )
+ openal? ( >=media-libs/openal-1.1 )
+ opengl? ( virtual/opengl )
+ openssl? ( dev-libs/openssl )
+ opus? ( media-libs/opus )
+ pulseaudio? ( media-sound/pulseaudio )
+ quvi? ( media-libs/libquvi:0.4 )
+ rtmp? ( >=media-video/rtmpdump-2.2f )
+ sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video] )
+ schroedinger? ( media-libs/schroedinger )
+ speex? ( >=media-libs/speex-1.2_beta3 )
+ ssh? ( net-libs/libssh )
+ truetype? ( media-libs/freetype:2 )
+ vaapi? ( >=x11-libs/libva-0.32 )
+ vdpau? ( x11-libs/libvdpau )
+ vorbis? ( media-libs/libvorbis media-libs/libogg )
+ vpx? ( >=media-libs/libvpx-0.9.6 )
+ X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
+ zlib? ( sys-libs/zlib )
+ zvbi? ( media-libs/zvbi )
+ !media-video/qt-faststart
+ !media-libs/libpostproc
+"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/make-3.81
+ doc? ( app-text/texi2html )
+ fontconfig? ( virtual/pkgconfig )
+ gnutls? ( virtual/pkgconfig )
+ ieee1394? ( virtual/pkgconfig )
+ ladspa? ( media-libs/ladspa-sdk )
+ libv4l? ( virtual/pkgconfig )
+ mmx? ( >=dev-lang/yasm-1.2 )
+ 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 )
+ fftools_cws2fws? ( zlib )
+ test? ( encode )"
+
+S=${WORKDIR}/${P/_/-}
+BUILD_DIR=${S}_build
+
+src_prepare() {
+ if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
+ export revision=git-N-${FFMPEG_REVISION}
+ fi
+ epatch_user
+}
+
+src_configure() {
+ mkdir -p "${BUILD_DIR}"
+ cd "${BUILD_DIR}"
+
+ 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 sdl:ffplay vaapi
+ vdpau zlib"
+ use openssl && myconf="${myconf} --enable-nonfree"
+
+ # Encoders
+ if use encode
+ then
+ ffuse="${ffuse} aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame"
+ for i in aacplus faac theora twolame wavpack webp x264 x265 xvid; do
+ ffuse="${ffuse} ${i}:lib${i}"
+ done
+
+ # Licensing.
+ if use aac || use amrenc ; then
+ myconf="${myconf} --enable-version3"
+ fi
+ if use aacplus || use faac ; then
+ myconf="${myconf} --enable-nonfree"
+ fi
+ else
+ myconf="${myconf} --disable-encoders"
+ fi
+
+ # libavdevice options
+ ffuse="${ffuse} cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl"
+
+ # Indevs
+ use v4l || myconf="${myconf} --disable-indev=v4l2 --disable-outdev=v4l2"
+ for i in alsa oss jack ; do
+ use ${i} || myconf="${myconf} --disable-indev=${i}"
+ done
+ ffuse="${ffuse} libv4l:libv4l2 pulseaudio:libpulse X:x11grab"
+
+ # Outdevs
+ for i in alsa oss sdl ; do
+ use ${i} || myconf="${myconf} --disable-outdev=${i}"
+ done
+
+ # libavfilter options
+ ffuse="${ffuse} flite:libflite frei0r fontconfig ladspa libass truetype:libfreetype"
+
+ # libswresample options
+ ffuse="${ffuse} libsoxr"
+
+ # Threads; we only support pthread for now but ffmpeg supports more
+ ffuse="${ffuse} threads:pthreads"
+
+ # Decoders
+ ffuse="${ffuse} amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg"
+ use amr && myconf="${myconf} --enable-version3"
+ for i in bluray celt gme gsm modplug opus quvi rtmp ssh schroedinger speex vorbis vpx zvbi; do
+ ffuse="${ffuse} ${i}:lib${i}"
+ done
+ use fdk && myconf="${myconf} --enable-nonfree"
+
+ for i in ${ffuse} ; do
+ myconf="${myconf} $(use_enable ${i%:*} ${i#*:})"
+ done
+
+ # 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.
+ use 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
+ --enable-postproc
+ --enable-avfilter
+ --enable-avresample
+ --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
+
+ "${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} || die
+}
+
+src_compile() {
+ cd "${BUILD_DIR}"
+ emake V=1
+
+ for i in ${FFTOOLS} ; do
+ if use fftools_$i ; then
+ emake V=1 tools/$i
+ fi
+ done
+}
+
+src_install() {
+ cd "${BUILD_DIR}"
+ emake V=1 DESTDIR="${D}" install install-man
+
+ for i in ${FFTOOLS} ; do
+ if use fftools_$i ; then
+ dobin tools/$i
+ fi
+ done
+
+ cd "${S}"
+ dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
+ use doc && dohtml -r doc/*
+ if use examples ; then
+ dodoc -r doc/examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
+
+src_test() {
+ cd "${BUILD_DIR}"
+ 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
+}