summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-11-14 12:37:26 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-11-14 12:37:26 +0000
commite3e66a629f26784efc4ddf45e03c02e9e2e32cbf (patch)
treec489412f13470829e25260b342ee2df64319a87f
parentStable on ppc wrt bug#442942. (diff)
downloadhistorical-e3e66a629f26784efc4ddf45e03c02e9e2e32cbf.tar.gz
historical-e3e66a629f26784efc4ddf45e03c02e9e2e32cbf.tar.bz2
historical-e3e66a629f26784efc4ddf45e03c02e9e2e32cbf.zip
version bump
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0x160F534A
-rw-r--r--media-video/ffmpeg/ChangeLog7
-rw-r--r--media-video/ffmpeg/Manifest10
-rw-r--r--media-video/ffmpeg/ffmpeg-0.10.6.ebuild285
3 files changed, 297 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index 228ddef404e5..95c2b60313a2 100644
--- a/media-video/ffmpeg/ChangeLog
+++ b/media-video/ffmpeg/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/ffmpeg
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.585 2012/10/12 11:24:14 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.586 2012/11/14 12:37:17 aballier Exp $
+
+*ffmpeg-0.10.6 (14 Nov 2012)
+
+ 14 Nov 2012; Alexis Ballier <aballier@gentoo.org> +ffmpeg-0.10.6.ebuild:
+ version bump
12 Oct 2012; Alexis Ballier <aballier@gentoo.org> ffmpeg-1.0.ebuild,
ffmpeg-9999.ebuild:
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index 73793adf095a..fb62ee9f029a 100644
--- a/media-video/ffmpeg/Manifest
+++ b/media-video/ffmpeg/Manifest
@@ -6,6 +6,7 @@ DIST ffmpeg-0.10.2.tar.bz2 5780204 SHA256 2d990012091c07849843c456eb34ad015a00f4
DIST ffmpeg-0.10.3.tar.bz2 5855494 SHA256 7d1ca0abc80e2f6161e2a48878b62a2e6d0301c231f91e7677b889ef048b931f SHA512 41509b736b3158f3b77620bddee509c07d16d239feb881644a1cdbd97a0ea5e2a8cb469c47b2f19c03518dbed8388ab20684f095e023c97f1a6d0b4765f73e64 WHIRLPOOL 7cb9ebf16ec0ee4680876db86a4aa579819055451d546a7dfadf0b8b18c7930036d8670446c75ef2fa51c6ba2a1ed8e7dd1351459caf0023f72825900d901fb2
DIST ffmpeg-0.10.4.tar.bz2 5853766 SHA256 82932716a8c01a6840a2f20c1ee093e04b1d8a27c2d6318ddf21a5f95f3c581b SHA512 21d6e034009d2f976c6d25ee35c1a14a0ab5d28e3f9af4b45da6f2720c2be6a6472e4ff408304d14ecfee5096b33bafd8440fc80ee51100aa02bdbbd82eccb1a WHIRLPOOL f4641b3cf243a52743a2a3db9140ac2a10a59c8c9d55bb86fb16d725d76228cd1e70ac45faa0a12f7a6a28eb08fc2fedc57a31c14d20a86a6770c99c9ce08a4e
DIST ffmpeg-0.10.5.tar.bz2 5774951 SHA256 47f26011e2d0d31641e91bb1fbcb907f4aa654d93732d5362711f38c2db4faa9 SHA512 a945b6f80ec3f036613e207aa4a87b11f7a1e8931d297a1fe83e66f742dbd8922c12ab45929fc497a7725082ee9d20ff0b9bc20fc0b12c0b5b4526470ea61520 WHIRLPOOL b883178bfb32f2fd068b6345fb0add948f9a550a9ad6ecfa62a83f9f2e9dcb94c3c5f05b56db90fbbddc69f6ce7787a5bcf385865bc0a1eb12182291e0922f66
+DIST ffmpeg-0.10.6.tar.bz2 5778721 SHA256 8c67c0be9dc568a857d5542247aa4e3c1c6538fa3643b47c9deb7ff004a97626 SHA512 f563bd8aa0daa982a7f63560b7c1ed5d630976aac2efb9b37031923d078bb7111fa96f7a05f241743eb0eafb071d439e90a87c9377cd6db70ad0df7599a0a0c8 WHIRLPOOL fef0f748276250e47e6ac30aad31f2a50ebb222aa989b48f82408eb9ab3cba77a07fecd9a67f05ae32dbe8fe95b65a6156cade2cd477e14c0d827087887cbc91
DIST ffmpeg-0.11.1.tar.bz2 6073253 SHA256 b01ddfb6352c84810879988f43172c5f7be555697edb929625845c7bb953fa96 SHA512 1a3c3cf6222f3273b091facffa52b9608e4f913fe0e53378011a29efef58c55032c878b4cc56357c435c7a552c5af7b74cf8651b25c8a1394f612ff2176fea40 WHIRLPOOL 7997f585408bf33492145c392038c472f5f3073fc53082484830a7860ced290e5e6115d89083ab31fa59fc89c96e4a10170c4dd7c0a06eacfb974c1676ef7829
DIST ffmpeg-0.11.2.tar.bz2 5983283 SHA256 b7e58f5aa8e1657cec15f5da439b142e0cbf478a8d5e5be0304c203ecd27c893 SHA512 033332332bbcdd32c95905ce3ad67021e3730ab9171d07d111fd2b68e75fba090af05a85a361ba7225435c55948e5f98c5a0346f2656e3dff1a5d77a041b9742 WHIRLPOOL 5215f3a4a859f5fa2b7ba93e032f6aaf09a494fb61a71bb8a3c7c55ffde27d49a74d8ea573f49e0d44aca764ce3fa703b2eaa9f7c89f717a275c9c410e029cb9
DIST ffmpeg-1.0.tar.bz2 6443851 SHA256 0d82c3e246b8a4510ed7947865c0415fef3bc1d1c1259a007463ce2f7e4171c9 SHA512 b9045351593666a8859bfa9c1ab658ffbd84c0c9f322ea91c126361cf0d1813f5749336c806cb23776eb6f3e83d548352c59ca843ba7ed77c104945b4e0fc23a WHIRLPOOL 1e241e2af44e13a90be79988194064dc101241d6fe72fb265eb855d67feb44acfd791520a1674e1fd0d014af21311fc18d0442f7fb8a5a322313d15023f856a5
@@ -13,16 +14,17 @@ EBUILD ffmpeg-0.10.2.ebuild 8623 SHA256 8dff0fc88d64be8e49c771027dc43e50264d3956
EBUILD ffmpeg-0.10.3.ebuild 8635 SHA256 7a93b57018947a7c57d3829c092aac4ee8e3b554c1116fd2fc41f4b4582bc7c3 SHA512 0a64ec7ef72af03d3997bc48191a4b8cf34ecc79d8cc4648a46e0ea303c38ba0bfe5877937328e7eec32950a6371288c7d4613eb14914bbe0f26f961cbda2d25 WHIRLPOOL 1e65a3790fa9c111c2266d5a2c5f6333ed3b37518dbd2a96d0ac7f6d969feb793430c7a79ee79de485d4c2e3d1b6da103936f22125ec87b061f319ab7bed4fc0
EBUILD ffmpeg-0.10.4.ebuild 8643 SHA256 e3ae3ab73de82507e2f24356540378123567d869f2ac25315510752071b3df10 SHA512 4fb4c70b55b52f235a277c655a16c06b41c6720c21729ab56d0c04bde689e8e88f46082f07bdc2c750630f448b0e665877e5e116b8d1e5854ff0bc331eb1f0ed WHIRLPOOL 8a72ab46e5856b86836382ad73b2a8c10493577c5a54ccc1e2e896ffd8b986f2904b2adfcd431bd9c1f2df4c62cf55b6667b845b2b9f9b4f16da43f00402fa79
EBUILD ffmpeg-0.10.5.ebuild 8643 SHA256 9cd95876fbefdbd3320b8667b0fc3e84f237916e22e74b5c6fdf739e6539fa25 SHA512 c72d810514a610c7399aa291ed9c6df941d59ca9b07206a2095446230c9799c917f2ac9324fa91682163ab478508804389409aad228c0b78ea29c077d93dd278 WHIRLPOOL 7310dac0aca5495bda031eac44eb5aa3eaaa8f6151039c41b4b749cd10b3ea1b7e2c6baab9225dec74539b1eff5a8e826e77420d0464390223a3e17059bec316
+EBUILD ffmpeg-0.10.6.ebuild 8645 SHA256 047f0b8fbba3c2af0672bd917d7f5f4f0a605a5fd1a99b6023bc6667219035bf SHA512 2af21f3a4924f4d441b799c7508c41d92634e60a9f85299a699fc20a2a0ee17198d96b4440410fe854896e232c78e52712a3edf9f5a8b7322b8f7a1644137f1c WHIRLPOOL d2054163e70653fc04b29db611ce012dab42b51a7586ea22a8c68daa68b74df928b6c8ab163381c183fd8999ed5508e8952e166adbf9de64e551fed1b6a375ad
EBUILD ffmpeg-0.11.1.ebuild 8781 SHA256 ac676957c3fa78197326e28cc49db75f626e10d73c218e58ec6daf125d5c1ec9 SHA512 79bcfc09186272f41ea531791c68390e7a65fb284848bc570162d9e92ac4b99d3eb1c391e2d1004f2450b86242b68261fabed99a6ff56734059479d864674030 WHIRLPOOL f0671834fdc160627a40de6d36075fd52744b8c8cbfdda68d2edd5b6e1584c9b424fb577d8614145b3809de4ec5399e5f92be0e1144968dc9be1dd3fde69f6dd
EBUILD ffmpeg-0.11.2.ebuild 8781 SHA256 1b3d27693e38c9ac39fd75c58625c969c157e5d1ce4962d86102cd8c14dc331f SHA512 a04bfcd20231537bed1d977fc924b7fefc5a71691f62327224c57e3b659193fe86742572a488ce9399a151229b7a907fac06b0cd87fad2a7d69baca9fc0b880a WHIRLPOOL 72879505edec487f42f42504fdca88148869e6c7e588c13c2c881e2356ae9055be32f33711fe11d6b3ed6c10ca4587de8f2e5004e15de8c8c69d575228a99a39
EBUILD ffmpeg-1.0.ebuild 9135 SHA256 3cb747f4032a2940bc7587e4b58eb3c086e7af1f563815bf342ced6fe76b7a42 SHA512 a29c8a1a2597d16d50dfcdf0fefa1dc0f7bb87fddf5d5950e827323060d90389519a4936ef46bb663a6bc54c84e08304fd44dccbd9720686811fa6ef0169915f WHIRLPOOL 32473219efd7e69e8c64edf85df4f01ff49c30d3d3db0d676ddfd9fe61d4c1c76efeb55dfaf2e57b4c2c2d58a87127224b42651d99780ccd2552a63ea54a3a0e
EBUILD ffmpeg-9999.ebuild 9236 SHA256 0f915d7aedeafc013eec1d3bc79629fe92803683c21ecdd4864b4ea486d718ad SHA512 f463a202f30162b0a835cfbd783a4bfcdc12ddfdad36d843e18b459cdb63fabf802cfb7034d49ea35319669a7fee1126e46d30be4ce16d550e82e6751e6e646a WHIRLPOOL 47ca7406f4e369691bf861f6601e9dcad4c63cf53a20400140329327f8430af79973bdb52c36e45a41d9af60072e884b89a8fd567cc8c866e2200a0b617a2c9f
-MISC ChangeLog 82783 SHA256 7e20f7f22a6e6c3acd0dfe76de1efb572bf3335e1298a6bb5616e4ce903d8fc8 SHA512 b915e38d5f86d7024dfff185d072bc7e0b73a93943cc636447e56f53477a9323e68b821d8f943d1b3f219015b0793c877b2e059b2bc2c176e4eab4b3ea7b8617 WHIRLPOOL 500737b9efec10cb6e0a4ba6fcf96b8f04e492a1a5ae8b0a389f725c9071dbb0983929e002ec8bef2ffc5ed8c4d7f999039d53caa801eba57c75b9ba0f834c45
+MISC ChangeLog 82904 SHA256 798138a344ca6ab5f3d708b90264e5c203daaede4c04ea8e97c240317779f15d SHA512 050d1592f2bf6f8dd9e4b8df3d96e3f7ff44352a67c96f34e8747c01a6ba512efc95d0367b8235ae504a7d0ebdc44c6049e840729111db4e894e9def5c7701c1 WHIRLPOOL 76c91b82f651f096256cdda47975c91de0201a3041b577ec2b32d4f0db2d19971a9da30685fdda055c8448237ebc7bf89ec1e301f3ed190c01a968e4d13ab381
MISC metadata.xml 3691 SHA256 d8f103ff120e9fbd1db48d048a4f3d5afad2a91647272e80af799b21ef8a0544 SHA512 4d7d3e2ada412a6dc15249b1a61a8ade25bf633748d1a21280946814f2f4206429d7b84959d592e3ac6645801750bcfcaf127aedddb9025c9d2cfee5af1a3a55 WHIRLPOOL 7efc7fee337bcda0bf6a2547519f19ea0a95f470edd3106acac3e28fcdfe445b0a9f7281e14d8ff2a53f0dd322ad63821fe3aba08c8b17d36b51803f9a25c329
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlB3/eEACgkQvFcC4BYPU0oVRQCgr2sEH+WIHYxvudBrA1VQuxJh
-ugIAmwXg8KhWTJhd6CCnCq4HTt6fWDN2
-=d0s2
+iEYEAREIAAYFAlCjkIAACgkQvFcC4BYPU0pOQQCff4/CvUYlMRKpSZ0dicpK52O7
+QzYAnRP9ZAGRM0b4W/Gx3QRSCSW7uM+U
+=ffvm
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-0.10.6.ebuild b/media-video/ffmpeg/ffmpeg-0.10.6.ebuild
new file mode 100644
index 000000000000..cc7facd719ee
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-0.10.6.ebuild
@@ -0,0 +1,285 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.10.6.ebuild,v 1.1 2012/11/14 12:37:17 aballier Exp $
+
+EAPI="4"
+
+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}
+
+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"
+if [ "${PV#9999}" = "${PV}" ] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-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
+
+FFTOOLS="aviocat cws2fws ffeval 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 )
+ bzip2? ( app-arch/bzip2 )
+ cdio? ( dev-libs/libcdio )
+ celt? ( >=media-libs/celt-0.11.1 )
+ dirac? ( media-video/dirac )
+ encode? (
+ aac? ( media-libs/vo-aacenc )
+ aacplus? ( media-libs/libaacplus )
+ amr? ( 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 )
+ vorbis? ( media-libs/libvorbis media-libs/libogg )
+ x264? ( >=media-libs/x264-0.0.20111017 )
+ xvid? ( >=media-libs/xvid-1.1.0 )
+ )
+ frei0r? ( media-plugins/frei0r-plugins )
+ gnutls? ( >=net-libs/gnutls-2.12.16 )
+ gsm? ( >=media-sound/gsm-1.0.12-r1 )
+ ieee1394? ( media-libs/libdc1394 sys-libs/libraw1394 )
+ jack? ( media-sound/jack-audio-connection-kit )
+ jpeg2k? ( >=media-libs/openjpeg-1.3-r2 )
+ libass? ( media-libs/libass )
+ libv4l? ( media-libs/libv4l )
+ modplug? ( media-libs/libmodplug )
+ openal? ( >=media-libs/openal-1.1 )
+ pulseaudio? ( media-sound/pulseaudio )
+ 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 )
+ truetype? ( media-libs/freetype:2 )
+ vaapi? ( >=x11-libs/libva-0.32 )
+ vdpau? ( x11-libs/libvdpau )
+ vpx? ( >=media-libs/libvpx-0.9.6 )
+ X? ( x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes )
+ zlib? ( sys-libs/zlib )
+ !media-video/qt-faststart
+ !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 )
+ fftools_cws2fws? ( zlib )
+ test? ( encode zlib )"
+
+S=${WORKDIR}/${P/_/-}
+
+src_prepare() {
+ if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
+ export revision=git-N-${FFMPEG_REVISION}
+ fi
+ epatch "${FILESDIR}/freiordl.patch"
+}
+
+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 sdl || myconf="${myconf} --disable-ffplay"
+
+ 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.
+ 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
+ ${version3}
+ --enable-postproc
+ --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"
+
+ cd "${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() {
+ emake
+
+ for i in ${FFTOOLS} ; do
+ if use fftools_$i ; then
+ emake tools/$i
+ fi
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install-man
+
+ dodoc Changelog README INSTALL
+ dodoc -r doc/*
+
+ for i in ${FFTOOLS} ; do
+ if use fftools_$i ; then
+ dobin tools/$i
+ fi
+ done
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/libpostproc:${S}/libswscale:${S}/libswresample:${S}/libavcodec:${S}/libavdevice:${S}/libavfilter:${S}/libavformat:${S}/libavutil" \
+ emake fate
+}