diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-02-07 13:38:06 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-02-07 13:38:06 +0000 |
commit | d3cd3fa527cb5cc93e840ff7435e372e740e3799 (patch) | |
tree | 479b042c1504a1ebf8a9f85b737c81a7aaf90b2d /media-video | |
parent | Stable for hppa, wrt bug #454906 (diff) | |
download | historical-d3cd3fa527cb5cc93e840ff7435e372e740e3799.tar.gz historical-d3cd3fa527cb5cc93e840ff7435e372e740e3799.tar.bz2 historical-d3cd3fa527cb5cc93e840ff7435e372e740e3799.zip |
Restore the 1.0 branch as this one could be unmasked rather soonish, 1.1 will require more work since the change of output format of some audio decoders causes runtime regressions in some programs.
Package-Manager: portage-2.2.0_alpha161/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/ffmpeg/ChangeLog | 9 | ||||
-rw-r--r-- | media-video/ffmpeg/Manifest | 10 | ||||
-rw-r--r-- | media-video/ffmpeg/ffmpeg-1.0.4.ebuild | 309 |
3 files changed, 323 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index 71fe170fd54f..40ed8626a8ca 100644 --- a/media-video/ffmpeg/ChangeLog +++ b/media-video/ffmpeg/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-video/ffmpeg # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.599 2013/02/07 12:17:39 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.600 2013/02/07 13:37:56 aballier Exp $ + +*ffmpeg-1.0.4 (07 Feb 2013) + + 07 Feb 2013; Alexis Ballier <aballier@gentoo.org> +ffmpeg-1.0.4.ebuild: + Restore the 1.0 branch as this one could be unmasked rather soonish, 1.1 will + require more work since the change of output format of some audio decoders + causes runtime regressions in some programs. *ffmpeg-1.1.2 (07 Feb 2013) diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index 19efe6716075..2fde1a38b279 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -5,19 +5,21 @@ AUX flashtest.patch 2343 SHA256 fcd05d4ad3f8cc6dd64a55c83279bd5738002100f1cfdf2f AUX freiordl.patch 611 SHA256 4857bbf856e2014f41d89d0ed0744f7bb3277e5600a877f2b84e0aae571f3dcf SHA512 1d7491e65fec247d9cb6b14e9a494f55e3a88ca9ce0962b7874e3f3e5c087ca7672bda5949637f4493c49a388070addb9db909c2e384f8a4349609ec02e7dd3f WHIRLPOOL dc2bbc9c95dff14998ef8f7f15c55b9cdc9464e01e036c3b67935d9505596360d103aafb9a50b43e6d2e78950664c4b6f214a874fc6aa29727397130a98e6511 DIST ffmpeg-0.10.3.tar.bz2 5855494 SHA256 7d1ca0abc80e2f6161e2a48878b62a2e6d0301c231f91e7677b889ef048b931f SHA512 41509b736b3158f3b77620bddee509c07d16d239feb881644a1cdbd97a0ea5e2a8cb469c47b2f19c03518dbed8388ab20684f095e023c97f1a6d0b4765f73e64 WHIRLPOOL 7cb9ebf16ec0ee4680876db86a4aa579819055451d546a7dfadf0b8b18c7930036d8670446c75ef2fa51c6ba2a1ed8e7dd1351459caf0023f72825900d901fb2 DIST ffmpeg-0.10.6.tar.bz2 5778721 SHA256 8c67c0be9dc568a857d5542247aa4e3c1c6538fa3643b47c9deb7ff004a97626 SHA512 f563bd8aa0daa982a7f63560b7c1ed5d630976aac2efb9b37031923d078bb7111fa96f7a05f241743eb0eafb071d439e90a87c9377cd6db70ad0df7599a0a0c8 WHIRLPOOL fef0f748276250e47e6ac30aad31f2a50ebb222aa989b48f82408eb9ab3cba77a07fecd9a67f05ae32dbe8fe95b65a6156cade2cd477e14c0d827087887cbc91 +DIST ffmpeg-1.0.4.tar.bz2 6448411 SHA256 15f46524195b2c88973585ab29416badd86a92040e96ec38b7df0b4536ba3e53 SHA512 dece791af5f9e99ed0f5697668646ea810105e5f1baa9f56245a1b794f7ae0c4f7c604b7146b44cd7e8ad9cef2751ed93677a112ef6dd9fca2118c2f34137ecc WHIRLPOOL 65e0769bdc8a6d90a837a7c1ae3956b2927cc87f2ef13f5e6ee2b82f79fe0d222a3e70db8bb41160cdcd8ccd98c07f3e03572b68807a0d8cd7f3b23a2a3b9010 DIST ffmpeg-1.1.1.tar.bz2 5808380 SHA256 32ce36c75a288471ca5ecc7660e200d415669c4cd149826d722fa856a1a57fad SHA512 c0f809e271772a0d00c77ff86f48568d4dde070439e0f68bd3513692595685bb2398a069c49dfc18b2293f5a8e16deb4fbba18a78ad8cd4f0267d82507aa2126 WHIRLPOOL f602a3122727308ab03cb425a42af21f65828194a88363d89e8f573adfcea5a8bfe6dbc79960322472e9f76b19cc7cb864e1ae83e979ab5abc0dabe9ed706673 DIST ffmpeg-1.1.2.tar.bz2 5810976 SHA256 dc91e4a2499b05740cfddc2b679694e5c0f2ca20c94191de82d7eb200e8c48ce SHA512 b947d18c7ea7d371e772c97873b180c00b94025a8546eb4663e42f37fbf66d52b1ea8241219b6c4700bd8c12cfb6af12fb7d823f7632061c447e2d95e30f83aa WHIRLPOOL 41d49b5d7eb0667b48b8292b5cc89dabf3a52d6cfc7bb27137546efa41ccc9f6ccc0f2a0a53162d93cefdcc2cfd130c039b298f5c1eab113a8af0a36380ee04d EBUILD ffmpeg-0.10.3.ebuild 8635 SHA256 7a93b57018947a7c57d3829c092aac4ee8e3b554c1116fd2fc41f4b4582bc7c3 SHA512 0a64ec7ef72af03d3997bc48191a4b8cf34ecc79d8cc4648a46e0ea303c38ba0bfe5877937328e7eec32950a6371288c7d4613eb14914bbe0f26f961cbda2d25 WHIRLPOOL 1e65a3790fa9c111c2266d5a2c5f6333ed3b37518dbd2a96d0ac7f6d969feb793430c7a79ee79de485d4c2e3d1b6da103936f22125ec87b061f319ab7bed4fc0 EBUILD ffmpeg-0.10.6.ebuild 8939 SHA256 d9bb2819b636920d559c7db27b2a7c94763528a2768b4b77d405504cbab9c122 SHA512 9aaee9ceda324977310e80303c1702e352942183dc13d2752746999b9d3c95b9651ea68836197284eeb7b98baa5c49ec88647258e1faef290d7464a7b8925b41 WHIRLPOOL 64f8d4de75e78993b9af6a6ed7b28d6a7774a9f7e8c00bf9dcc8a1e9a51df82a26d295d0e6edc375a5ba34d4b5b0dc97c0c57488a5d42d28b4fe44d7b414c059 +EBUILD ffmpeg-1.0.4.ebuild 9581 SHA256 ec5ff5228c222f6ba5bd77d1be4c81fc74b704e1fedabee42c4a32acc953cc81 SHA512 085c0518736768b698f08a7af97fa1bd3ca78fc1e5e5d3b2f0fa0391562d2e95cb834e17c49e77cde60a2abe4e1bd7001bcb2ce12e418dc64ede71ce3feeb60f WHIRLPOOL 27a9fcca56ec3976b48471b6e456739025793d0ce42233451a651eec1ad6f4b757d9e3d0515a50de019332d57eb465c67aade8660ba896cc1c078dc19283bcb0 EBUILD ffmpeg-1.1.1.ebuild 9312 SHA256 db859c1e84d08105f7f18817bbc763b7bb82ce5b66af05a609ffa514ba2cb347 SHA512 38f1478ac636d122cf857a9268b2227407470564b559057ee43743772d90ac080055481e1b7ed98d72a6bf9ddf750e797daacd0d42c86f838e539fdbd76cba1d WHIRLPOOL b9c80788ef777fc98b2351c9338d3535f812cf9f42e67ccec0e15495149af724d6738e6df3bdd5e36b40677a7e6a7fc28849945c264b778c1d317b71cb080969 EBUILD ffmpeg-1.1.2.ebuild 9335 SHA256 8d1a97a21ab1a3202d43589a7acec88204feff83fbbe467c68633cb9499540e5 SHA512 7da94bc1672e36d6e8fe6ce35677f53b34010bc4e0c3416399a887228628624086769a83db333eac918c143ee93328445231efca2fa15f0918f46bdba828ec01 WHIRLPOOL 5847b9127a2220c4a4a2c5395a87cc9c8e8076c6a60ffb52f48f698ea6127dbf0da646a7bae6d63bd396107bd5f234a9d9f118c740f02d9d2ebee0e6a38949fa EBUILD ffmpeg-9999.ebuild 9336 SHA256 5bc21f611a1d644d6a5b7aa868f19cdd8a0f2813b7d53367e32e8a56befe735c SHA512 fe8e5c04a6653261e4383ea350ada5f3aaac71ac7774bc9f50c1457819d1254f3dfe5cdae6fc13aa3ea22b61bbcac5c22d8dc80a299aa3d9e9b5663b1fd24969 WHIRLPOOL 3769e39d8dff919eefa608e28c11a9bc7feb26439b088b762ef94451d0013628bb5add0607a6f2b3c4467d82ee263945866bff7e49ae2a52e765c3c5d5576136 -MISC ChangeLog 84637 SHA256 e00d40178d65e61c99a2b570967a3560a3942b75fe9f7cf3237bb657a12a0777 SHA512 f25e8e49289482d00b298173f817799fa1c58dc34e1e517ce3c0bd2943cbd2a3ddc5422809829596b65658153d6fe58e28aef5fe75d4880dac1e83eb95954bd9 WHIRLPOOL e65bef26ea69b8710689b54f0dc2bed54f1e317bb9861152700d682a4e504e609f4162268c9fc9249e87030aa2489db814c56195699997548613ddf6242c6aab +MISC ChangeLog 84945 SHA256 d79fcacff53ccfad012667cf11300f6a48529f92c1aa1a797add2848158c7794 SHA512 320d8d3870bcc047cc2858963b77b18bcb70ba570b6e54d4ec7516cd0ddfdc08f95d981f3b6b0f7d55c924bf7bf4d41d02fa690586a205e05389daaa6dd21639 WHIRLPOOL 492724dae8e3c23eb7d23417eab5618b25efecbc3e0db4834bc65e6acdb9bd455d7bb16e4a9b8230871bbe7ebbf0d24d526a6ea57099bcf3a07bff3f368fe5cc MISC metadata.xml 3635 SHA256 89039aac2113c4be46c76642a9ce0fc4d5047e74c19acca0e7e4b19bbc5d7ac1 SHA512 8ab0fd00c5b0eddd28e4c817a5cf3baded477fb22dec6fdff6e871442f92b7b68fa29eb80398e3c52cac5cfcc352e1fb848a6f46b19fc70d0822cc98cf6c1c03 WHIRLPOOL aa035a6597579cf2a212c28986aa4afbe52e3afe01617235801b3c842c8d6b1e7fcabda5beaa8971fb327c9bb475dfe189b95857def0573ad5181c8bec451493 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlETm2UACgkQvFcC4BYPU0pesACgmeZNfk9rVcM21n3eCWsF/W5t -79wAoJThfBuRl+f5vtf3budxiPR4YAAP -=1KP8 +iEYEAREIAAYFAlETrjYACgkQvFcC4BYPU0qZrwCggqhMZSxpLLN9hXpsd3Thq2Zc +HmEAoKhglh9dqwcPdTU2gcI8noL/MX0V +=AyWo -----END PGP SIGNATURE----- diff --git a/media-video/ffmpeg/ffmpeg-1.0.4.ebuild b/media-video/ffmpeg/ffmpeg-1.0.4.ebuild new file mode 100644 index 000000000000..3009c7c28262 --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-1.0.4.ebuild @@ -0,0 +1,309 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-1.0.4.ebuild,v 1.1 2013/02/07 13:37:56 aballier Exp $ + +EAPI="4" + +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" +if [ "${PV#9999}" = "${PV}" ] ; then + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +fi +IUSE=" + aac aacplus alsa amr avresample bindist bluray +bzip2 cdio celt + cpudetection debug doc +encode examples faac fdk flite fontconfig frei0r + gnutls gsm +hardcoded-tables iec61883 ieee1394 jack jpeg2k libass libcaca + libv4l modplug mp3 network openal openssl opus oss pic pulseaudio rtmp + schroedinger sdl speex static-libs test theora threads truetype twolame 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 ssse3 vis neon" + +for i in ${CPU_FEATURES}; do + IUSE="${IUSE} ${i%:*}" +done + +FFTOOLS="aviocat cws2fws ffeval 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 ) + amr? ( media-libs/vo-amrwbenc ) + faac? ( media-libs/faac ) + fdk? ( media-libs/fdk-aac ) + mp3? ( >=media-sound/lame-3.98.3 ) + theora? ( >=media-libs/libtheora-1.1.1[encode] media-libs/libogg ) + twolame? ( media-sound/twolame ) + x264? ( >=media-libs/x264-0.0.20111017 ) + xvid? ( >=media-libs/xvid-1.1.0 ) + ) + flite? ( app-accessibility/flite ) + fontconfig? ( media-libs/fontconfig ) + frei0r? ( media-plugins/frei0r-plugins ) + gnutls? ( >=net-libs/gnutls-2.12.16 ) + gsm? ( >=media-sound/gsm-1.0.12-r1 ) + 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 ) + libass? ( media-libs/libass ) + libcaca? ( media-libs/libcaca ) + libv4l? ( media-libs/libv4l ) + modplug? ( media-libs/libmodplug ) + openal? ( >=media-libs/openal-1.1 ) + opus? ( media-libs/opus ) + 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 ) + 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 ) + !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 ) + 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 )" + +S=${WORKDIR}/${P/_/-} + +src_prepare() { + if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot + export revision=git-N-${FFMPEG_REVISION} + fi + + 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 +} + +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} --disable-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 twolame 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" + use fdk && myconf="${myconf} --enable-libfdk-aac --enable-nonfree" + else + myconf="${myconf} --disable-encoders" + fi + + # libavdevice options + for i in cdio iec61883 ; do + use ${i} && myconf="${myconf} --enable-lib${i}" + done + use ieee1394 && myconf="${myconf} --enable-libdc1394" + use libcaca && myconf="${myconf} --enable-libcaca" + use openal && myconf="${myconf} --enable-openal" + # Indevs + 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 + for i in frei0r fontconfig libass ; do + use ${i} && myconf="${myconf} --enable-${i}" + done + use truetype && myconf="${myconf} --enable-libfreetype" + use flite && myconf="${myconf} --enable-libflite" + + # 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 bluray celt gsm modplug opus rtmp schroedinger speex vorbis 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 + + # 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 + + # avresample support for libav compatibility + use avresample && myconf="${myconf} --enable-avresample" + + # 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 V=1 + + for i in ${FFTOOLS} ; do + if use fftools_$i ; then + emake V=1 tools/$i + fi + done +} + +src_install() { + emake V=1 DESTDIR="${D}" install install-man + + dodoc Changelog README CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES + use doc && dohtml -r doc/* + if use examples ; then + insinto "/usr/share/doc/${PF}/examples" + doins -r doc/examples/* + fi + + 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 V=1 fate +} |