diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-11-22 06:26:30 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-11-22 06:26:30 +0000 |
commit | d152c404ef6f55bd852c5d21358be80f00f3febc (patch) | |
tree | 1b0e8eaffff9d5b5df6388a34b2bdb5e6932b43b /media-video | |
parent | src_compile make target changes in latest upstream version bump. (diff) | |
download | historical-d152c404ef6f55bd852c5d21358be80f00f3febc.tar.gz historical-d152c404ef6f55bd852c5d21358be80f00f3febc.tar.bz2 historical-d152c404ef6f55bd852c5d21358be80f00f3febc.zip |
version bump
Package-Manager: portage-2.2.7/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.1.1.ebuild | 321 |
3 files changed, 333 insertions, 5 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog index 85fc84d83c4a..eaaa4aca9203 100644 --- a/media-video/ffmpeg/ChangeLog +++ b/media-video/ffmpeg/ChangeLog @@ -1,6 +1,11 @@ # 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.691 2013/11/14 19:38:57 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.692 2013/11/22 06:26:26 aballier Exp $ + +*ffmpeg-2.1.1 (22 Nov 2013) + + 22 Nov 2013; Alexis Ballier <aballier@gentoo.org> +ffmpeg-2.1.1.ebuild: + version bump *ffmpeg-0.10.10 (14 Nov 2013) diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest index 72e52c9581d1..710a9a1f0632 100644 --- a/media-video/ffmpeg/Manifest +++ b/media-video/ffmpeg/Manifest @@ -10,6 +10,7 @@ DIST ffmpeg-1.0.8.tar.bz2 6452144 SHA256 8580a317aa09fdabdcf5119c87f59fd3baa4df0 DIST ffmpeg-1.2.3.tar.bz2 5968552 SHA256 d97462cf1619bc9552092649c409ed94854b22cffbd274df8cfbefa8f8a3715b SHA512 81a9a0a351a44bd4ae4162a78f886a7e4981420d5bc6af980a1126068cf77494f236153a4a39cafc01049cb1c57247a79034e7fd3a5adb441d103024aee6c7de WHIRLPOOL 3ffc7ba68cb3acc01a2a01f662c856663645f92596e17aa919500fa90edde085b552a06edd50f9c852a9e8952307ed13bb6abd67ff923dfe3b131132032523fd DIST ffmpeg-1.2.4.tar.bz2 5967562 SHA256 3b96c8ce1b86575cd74f540e5b7a52681554289017d4b974e4efad2a09290ddf SHA512 9c3bf2b31cc0d0028cb83b9c4821073b7c11a0c24ca44f6353086e67c208c45840e71810d70309b655fb1e7b8bbe073f9ab7f336d8064c0e6130244a806a10b2 WHIRLPOOL ad1f10a5191a185c08022f80aa8861eede4680b083224e9181328b2f62a78d3a69c96b53a638125ac44ee68a949a96bd17b913955393d135293fb3ae2174651b DIST ffmpeg-2.0.2.tar.bz2 6191390 SHA256 986f63dc0785f473b1832d0eead502e39c9706fbe7f9677bbea0dad6fe0fab4a SHA512 4b194e78a011c0df0173f1e99511ae25272501cc380ca616d60e10a489b1f7e4f1b72f681e4539db4e2da491010fb2225190a24e480a1b285decf4085a4a31f4 WHIRLPOOL 080c9eef1bb0645d88f30efddb31e5443582345d11e6df508d74a0dad98380abb432af8f46ce348b4bcac478595f55416ca60ea5eeb57de8ee9ddcb7391bf2d1 +DIST ffmpeg-2.1.1.tar.bz2 6641619 SHA256 bef95e5b9aac45adec7ef434537504a63b4bbc22a8ce6a96a68e19c5efbadae2 SHA512 762691408d536753a08620162b04d2b7746e814d666e6e7b5341f4731de5e38e043ed47a6f0a96a09795aec8de07814946911fec48e8cdff60d0317f85a4b7e5 WHIRLPOOL bd14c405eea1b4214773a075ff4e7e902de34f1fc7a7a48722c295549b76e47ed51674996d1e065a96d71259463ae8ecb4b9be5223a298f58603303c2abf8f19 DIST ffmpeg-2.1.tar.bz2 6640774 SHA256 926603fd974e9b38071a5cfc6fd0d93857801d1968145dfce7fdc627ab1d68df SHA512 e4c98a6d92c3e89ca55280c7e399f6abacc0f2b8d2e97662202e988b9632f124dd849cbbdd7472dc1d77c22d5ca023f6be14173e2b567a0d13775f64fbc08099 WHIRLPOOL 0ec7fedf2c90016f4baec18a5fa7d2f078e5f4405ecc66a9d6025ccfe3b56f1abbe7673926b34670e63ee968333ec1bb6b279202e160f826ff857f80141d790f EBUILD ffmpeg-0.10.10.ebuild 9629 SHA256 34ad62fd8e306d7afe517e8664d5e934b0f5057242e16523f29516d5be5dfbd9 SHA512 af2bea1048eb6927c8feb97d27eb31aafd6938b2c088b5f40a280221b0bba6935c19fef8528337319f6c7cbb293f11d02e443e9c13085deb8c2c82ad93247cb2 WHIRLPOOL 55711751a2238dd479687941fb0da5b3647707aab38fea9bf1d3c01e658f4143c47d269f2538b0b6a1326c6556cd0d3d1140d0232cf64c6da4fdad87eaa23117 EBUILD ffmpeg-0.10.9.ebuild 9628 SHA256 1ae7fe6e3d8cfff291dd06abbde97523225a04d69fa5634d999a233b0d65184a SHA512 282212ba8a13e6eaf8676f0a6b08f506ed5a183f050abcd30fef30f301248368a51dac89d5185332a25b4c59400b125467f8b277cbf58f3ea5d0e9e0f79bf5dc WHIRLPOOL f8602667c35525b7339cd3df4610e444ff762a13081bca9977b4728d8a8d6084a873eb7c170bc5e99a3d993ad5f1108306e40d94fc1d21b9e181b538823493c2 @@ -18,14 +19,15 @@ EBUILD ffmpeg-1.0.8.ebuild 9610 SHA256 9a1e202ad82a5be36254ad110de5adc1329fedc63 EBUILD ffmpeg-1.2.3.ebuild 8938 SHA256 c93bdb73ebf4c2fc20f047983e3532cecd533918218196777de3e730f6cc0db8 SHA512 87c906c60da0302d4f3c5731995ec3a399d1c2b12ed571d2979d8cedfec8ebd561750da16449d76a684fdd1b883eeba7e782c3859148da8c9286acaa4cd33cbe WHIRLPOOL cb3f2b83ae6f849db0c7344cfb79f64fc06ff87f9dd7ea39f3352b8337ade1a16dde5b404a194c8e4185b8fb6b20f4128a80b19bb579a21503bcce423bfc35a4 EBUILD ffmpeg-1.2.4.ebuild 8938 SHA256 355e1e93f1e29be91bccdae3e8a29a7fb2200eb6cd8ef65d11afbf45ae49f714 SHA512 67386dd72541faeb911c2ccf93d29becd149dd47af17c857062dc438fa38e6235691595e1fecc1a6506d485844589b6e60f04006e57726c5d863b2b684f072b9 WHIRLPOOL f0c6a478834ab4132753d3253ce7cfc7020a929067a7baaaab49b19451ae8ec3b4e8465a45dc6ef490630932220d82e5f10c2f101206be58f0c99e58bf65becc EBUILD ffmpeg-2.0.2.ebuild 9757 SHA256 1a73660a475f3a910e627fb356a787c00cfff1d5d1dd069aa93af8a1d4b0c613 SHA512 c6156d4301d691f2442066cdb5b020416d007dbfda569ba5f3c1851ab48a94f6775eedbb54ac4e930d281e7c142cdf178d20b8ff927d745eaf4f070d5f80be3b WHIRLPOOL 8448dd2b1b2f556949216f771a0ce44c24a80afe948898dfe6c6fdaa86c5ac302a8f6b89beb410fc388618779245bffdf5442c6741bd4832507317ea67c19f67 +EBUILD ffmpeg-2.1.1.ebuild 9924 SHA256 cf80853fa0e3c4f4acdfeb25faf858b69fa7e74c4aa7e8867667759216656c63 SHA512 2543ad88a67c7649b2ac77bf07d4882f5960284c4cf14c1a56d81c7aa644d1bb3451021eae8fb9d5f8bbe49f3a357e8fea1d3c5b7992db27f8d09ec581b388f5 WHIRLPOOL 8eca7d094267eb10639bf95574394102013fdb80b166a3d93d91e58d75d52aec6b76a3104d0c912bd00570b274b13005779e9fc324031e0ca8e7110b4b1adf2f EBUILD ffmpeg-2.1.ebuild 9922 SHA256 ada45fb54f06e6be078dde8594d51a83fab8a58b5be5154c75e33aaccde8085b SHA512 fcae83cfd6f6a102fd573818d1e55f47a194a248218124e2f121f7866611bbf082be7bed44cfef29beee675a980b83fd76af6832901b2d6b8cfa6fdbe52d23ad WHIRLPOOL 2d70f8fd5cee37691d15e9f0fa87a30455e5d0459acce9a5489e3a1467cd5eb6646610dacd7f5a73515de73ff76719160abead0ea920e33c5c4be972e6df1402 EBUILD ffmpeg-9999.ebuild 9925 SHA256 2d9183864b2fe21859e3b04d40b1cde163bcb5e76f7975ae0c08a81bd2d43cd9 SHA512 c708c7009e690005415708919c63764e7353254ceea41938ff280681ea055a1f5d173097e48fb85f81e42368d8ad645beedf5a8b52c10f98e630414650f38b5a WHIRLPOOL 65a3cca3423e90baf6792039cabcdc79ecdc9ace59a903b301482fa51a82f0449a78b56b7b4e32ef4c0881e07362272bc718617980ad2cb5b8c16a3cb0a042c0 -MISC ChangeLog 96535 SHA256 eb2f412a322128bb27343ed26d63c13f0f5a37906c2b0c16c503c4333cf0003b SHA512 f7773a68a61ae2b7c6f76c8c9ac3e9689ac59ab0c6981b7658ad4fca1a9209a0cbc9ded9d01718cb369f0df6ea75067529e7f77b0ba5385edf0005ab81565101 WHIRLPOOL dd0ce7c2600aa6708336b904863064c0d9cc6fe575fa75de11752b738feb4566da86d00592fb043fe1d236dcfc6d591539b1fd5c83b8a53c2d24c7c1bf908d5e +MISC ChangeLog 96654 SHA256 8caeb4c18f0c4e1b1c8ac74755570521f788af602c9c2f7c2e79fab3e1e95090 SHA512 ae5543770ec59f1b8ac0ce526902184fb2911952d09d8ab91da39ab7fe5af69b3e0e0e0a82d888bdb5e206ca18a66e1cf8d44e6fa0939f9a2b94c916fa2f4f2c WHIRLPOOL 0beb40ded66644e8f81005d9dd976cb648161e1b33e174cd68a1711d3278538ae0dba1b8ff57c0f09caff8b24adeeb508486b9e5d97a4f3636b8b9c06a68ac32 MISC metadata.xml 4146 SHA256 474b6b289c999523a070334dfa7ee06f58a3264704c7352a3a1ae47b71daf46f SHA512 c3f32b37a9a250d1af577e6b78b450625e2b9b891b7c5eb7ee021f0c15cd599f893dce2f16b0b6bf2f58fd6e67bec6bd629e053c5d84d1e95ce355f2baea8da4 WHIRLPOOL 39e5994f1daf7ca5057275cf20b5e24a4ef277ef5687ecdde5987335432f8efbb02beea7d4fbc5c4e554c589e5edeecb19291b74a7b7972d72fbdc7b0d514de8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iEYEAREIAAYFAlKFJtIACgkQvFcC4BYPU0oOXwCfXyXN2ITGjcWt/zwLFxHqglfl -HDMAoIFPPQqaH3Vtg5p3L8bC1oD41tLE -=7Y5U +iEYEAREIAAYFAlKO+RMACgkQvFcC4BYPU0oWYwCgujIW/qNXKAigJagcLK6UkFPk +I8oAoLgBBgJfn9FfdZkCnnVYbcNX+aPg +=NiBX -----END PGP SIGNATURE----- diff --git a/media-video/ffmpeg/ffmpeg-2.1.1.ebuild b/media-video/ffmpeg/ffmpeg-2.1.1.ebuild new file mode 100644 index 000000000000..6516e846f153 --- /dev/null +++ b/media-video/ffmpeg/ffmpeg-2.1.1.ebuild @@ -0,0 +1,321 @@ +# 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-2.1.1.ebuild,v 1.1 2013/11/22 06:26:26 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 openssl opus + oss pic pulseaudio quvi rtmp schroedinger sdl speex ssh static-libs test theora + threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack X x264 xvid + +zlib zvbi + " + +# 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 avx2 mmx mmxext ssse3 vis neon" + +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 ) + x264? ( >=media-libs/x264-0.0.20111017:= ) + xvid? ( >=media-libs/xvid-1.1.0 ) + ) + fdk? ( media-libs/fdk-aac ) + 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 ) + openssl? ( dev-libs/openssl ) + opus? ( media-libs/opus ) + pulseaudio? ( media-sound/pulseaudio ) + quvi? ( media-libs/libquvi ) + 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 x264 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" + + # 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 +} |