diff options
author | Alexis Ballier <aballier@gentoo.org> | 2014-06-03 06:18:04 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2014-06-03 06:18:04 +0000 |
commit | ac387abb9fe26fefc0e6118a97edf6bdcc81085a (patch) | |
tree | a8491bb16023d87565609188ddfd63144f725256 /media-video | |
parent | Remove ChangeLog since it is either empty or non-existant, bug 512202. (diff) | |
download | historical-ac387abb9fe26fefc0e6118a97edf6bdcc81085a.tar.gz historical-ac387abb9fe26fefc0e6118a97edf6bdcc81085a.tar.bz2 historical-ac387abb9fe26fefc0e6118a97edf6bdcc81085a.zip |
verison 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.2.3.ebuild | 336 |
3 files changed, 348 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index af66b7e09248..4fd2de114fde 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.737 2014/05/20 18:30:09 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.738 2014/06/03 06:18:01 aballier Exp $ + +*ffmpeg-2.2.3 (03 Jun 2014) + + 03 Jun 2014; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.2.3.ebuild: + verison bump 20 May 2014; Alexis Ballier <aballier@gentoo.org> ffmpeg-2.2.2.ebuild: leverage x265 deps now that it works diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index 163ca2825ade..c0da6b63c3ea 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -12,18 +12,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.2.2.tar.bz2 7026587 SHA256 a42b97add671a0b40126261174397b5918e7ec219d8ec6b8e62e86aa0fb15218 SHA512 431e55fce3fdde6b56b82d90b9b9afac71225212234553e82c3f4c5b1408edd1f0ef06f8f098a5a863c6767c1f7c8cdfd41cea6fdf35aad000f8fbefe76ae454 WHIRLPOOL 6677346f3039cf7c6b560d7cc72a67f4c10f6baef64f973a84680da3fe45773a3384ffd9ce5f8f761b7cd5804cab902f61f9fe39453cb36131b5474398676e6f +DIST ffmpeg-2.2.3.tar.bz2 7025230 SHA256 670dd41511be0ebd0e5d1706b92da0b69abaa4df8ece3ed90ebc78acf199d2b8 SHA512 cd07480760455cd4b2173a5630abfedcb939eea0c169c98ed42ef04b93644406bc7599933e593af53fc8fb7ba536ca526a59fef25e301ef839d62aecfbb41348 WHIRLPOOL ca06f44dd5450829c9ff499436ac8df7ae77dea28c542d443a26fd3cfbc43470c106f8e0f27b71838c5b1dec9669d7c53a7845254b4f9d67f2d4c8bc786c10b5 EBUILD ffmpeg-0.10.12.ebuild 9679 SHA256 40ba2d60f25380e850798bae3132c42c69d7fc7fe6029a299fdf937da31eac3e SHA512 e6cefe5efae73ec08b140d371e00cba2fcb66773d4022035a889ef491fd5a627bbcbf0f05ba90acf85636bafa36def0e6694535ad57a57301bca40b6d331ca85 WHIRLPOOL fa03268ffcdd6e939e2f0da525f0812af09cc4efd91318309a3e499a1d26151c7b4dc7f96ea1a50fa008d379b74cb9eee4cea9dd643521a1da53f39a8b3dd9dc EBUILD ffmpeg-1.0.8.ebuild 9650 SHA256 32a1b9c7967b092291331f6a24a1d7cc1c8cbeb1c70ae959cb4689f1e9988180 SHA512 637658df591c78ab45015022054941846b4748de77633d2f2585ffb732ac6318b8a3e540b3f58d79dddf312580ff63d8f3b277e7db2db055c08d47170ccb9ffb WHIRLPOOL 645144c0fc95cb403336d76737d11914cd87ab48eeecf5ebdae45b8c255f8f3d495d45684047acc6bdbf680995424064225ea6a9f2d82099f68246417eb05e57 EBUILD ffmpeg-1.0.9.ebuild 9658 SHA256 c58257c61b10c0aeb7ade0b859e2855b556f5799feb0c288804ddccefacd7f28 SHA512 8bc1cf23bf6e46086bac12ed61fb953021b74eae466f21d49950a615e9e92551b62172930a851156926def8f470c056bea2ad85177261266655bc65df3ef802c WHIRLPOOL aae7a5426e7cc5215b58e951fb6487a7dcc621dbbcaffbf516ebe6ad39d6db6f60c7a84e0781b215e4fa4707be9ecb77308c5a4d654684f7de6a48c1c5488712 EBUILD ffmpeg-1.2.6.ebuild 8981 SHA256 247ef72c4c7360e1f119aa2bbc42915eda9d93b8aa8c1c1717d8063018af258d SHA512 76efe38ec7d4e19b811c3040e2416c028064feb085087cb0a087625b31261a12c011c7ae8dd641e8fe367afdb9dc4b1952ed30f812b212620cc82760e48d08cf WHIRLPOOL b68f8c2e7cfad966beb6afee7fceaa1a652824a1c7c4909612ef78af1b2c05882c25139a2f2a967eb90592467c6c20deebba3915b5e07307fdd7e3bf2095bded EBUILD ffmpeg-2.2.2.ebuild 10320 SHA256 a8cdda51c59f5f7c3ed15b721f98961428c35532d654f94311e96c3a8991ce2d SHA512 808fa41e91d25fda697279d8d4f5e1ec1a9f38dbf19a1893af35a868c40d1ed8ac8550bb97762ac84d0515e4b7064647fdc1239ddfdb14cda073dbd56e2cf90a WHIRLPOOL 455c13276f48f12ea9a7d0077f08fa14341025ffd6c8e3a3bc5570077c716135d70aebdf75f9e7afbf1654a7b0604b1f503afcaeb1d22ca5277768353e54b221 +EBUILD ffmpeg-2.2.3.ebuild 10320 SHA256 7c05919c00fced9813d272c31af2e29f4fa6a089676925c91d5289e15652c8d7 SHA512 2d16862f5a504b13ba24b86096d60b7bbef1ea27f59cbdb1463181cd428c2f29a52a79a536da0342bd5ad76ddbceeadca7814f70c582a65e68ee63fc8f3e28de WHIRLPOOL 48c7c5486c43bdef447f9ec2697b65c4b606336cc9429c97a46560d47db3ec56672ece9a46ec389045e11825e0c219fd064d0fb096cd36d081cbd26cb4aa789c EBUILD ffmpeg-9999.ebuild 10346 SHA256 e7c6dd876465900ae6b94a5474bada7cf25ee8d2417f63e4c4065ee05e6110b2 SHA512 b9443cc0dbbdf30bd2f47602067326a64ee68bd5aa3b3124b32be2eaf52b79e75c86bd5de2da3343f5eab0ce950ed909e139cd6283b9aec523816cdcb33c6ee4 WHIRLPOOL c7410a997e12077c9437d3ff7c3d67c3f610b064349b8f6aec7136d4e2c2c74eebc3db525cac4c1c346965d7c7207caf06fbbf18cbf508fe68afea6dbaa16d81 -MISC ChangeLog 102529 SHA256 76b3a987123619e7511b5dd4252243532b35ed26a4d735eddc0a428bc5fffd2a SHA512 4f2171047b95a01f69dfb2fd6c0128704babe9a4e3603c14f1456580ab3417076c86047759746ee59907ee4313cdccc017a59ed3f5ac3bc639f7ee703137fd22 WHIRLPOOL 9ec8e2cc170b9384c2caff48d9e3e77ec2f7787bdf6a9486997bcd767209b07334a733c2d941cb973e4853b3601131efbe883abe37bce5eb4a39349dd9c8c56f +MISC ChangeLog 102648 SHA256 1f6466b5cc135ba311f411c62afb954aaf67a6e1703a6eab34e581c7fb506201 SHA512 edabc35518c1a59426aa0dfd7e29955ed951a5111c92a01580ee36b3b255cad289e8eceb1c38d18f2e6dd95c4e030366c8ab0ed649253124624107d5da296665 WHIRLPOOL abf739cae37fa2442015904afb87555fddd557b3406bb3cd31f56f4cd7a19ac6ba0affa86396b89e3b1b0926501d9f99aba0acb9c2bc2d5c37829a9953510793 MISC metadata.xml 5340 SHA256 010fe23d4fce67e3ebfdba2d3d0e4c4ecf7cb12885397c2058096955733f19a3 SHA512 8b1e55fa5896382e700ff61be266b635b2f3873ac7e29f331cc3a31be683cf9b2e24d93b52cd109149dab2d98ae58f5151dccdc8e6f48f2abe56382a11a471db WHIRLPOOL 420bfe98b7d0b58cdc56f76cdcf74fb1fe69df2ec6501d1444202786465ad63d255ca1a63340d52bb4586b19b1f14fb1ca859f8798071644c95f1d200cd281cc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iEYEAREIAAYFAlN7nzIACgkQvFcC4BYPU0qBAACgm0aU6jHWuDCelzyGrevh6e9r -EtkAn1+2Z2G0+Y25R9JAIB5nbwhsS/e6 -=fpPL +iEYEAREIAAYFAlONaJoACgkQvFcC4BYPU0qJSgCghlOd3ipHTT8P2gZfBxtJGVCq +bF0AoMpnVZZSCchBinWk2cx32YpU0uRx +=PLL3 -----END PGP SIGNATURE----- diff --git a/media-video/ffmpeg/ffmpeg-2.2.3.ebuild b/media-video/ffmpeg/ffmpeg-2.2.3.ebuild new file mode 100644 index 000000000000..d0ec7f69bea7 --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-2.2.3.ebuild @@ -0,0 +1,336 @@ +# 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.3.ebuild,v 1.1 2014/06/03 06:18:01 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="~amd64 ~hppa ~mips ~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:= ) + 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[sound,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 "${FILESDIR}/ladspadl.patch" + 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 +} |