summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-06-11 20:54:55 +0000
committerMichał Górny <mgorny@gentoo.org>2014-06-11 20:54:55 +0000
commit70abb2ed90d45c29c8ed854befeeba401e288696 (patch)
treeb6981789e1bd196257f60b21ddc986f4a9f46ae4 /media-video
parentMask multilib media-video/ffmpeg. (diff)
downloadhistorical-70abb2ed90d45c29c8ed854befeeba401e288696.tar.gz
historical-70abb2ed90d45c29c8ed854befeeba401e288696.tar.bz2
historical-70abb2ed90d45c29c8ed854befeeba401e288696.zip
Enable multilib support, bug #489816.
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xEFB4464E!
Diffstat (limited to 'media-video')
-rw-r--r--media-video/ffmpeg/ChangeLog8
-rw-r--r--media-video/ffmpeg/Manifest35
-rw-r--r--media-video/ffmpeg/ffmpeg-2.2.3-r1.ebuild366
-rw-r--r--media-video/ffmpeg/ffmpeg-9999.ebuild274
4 files changed, 544 insertions, 139 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index 7fb6fc078e01..4cdb1d4b6998 100644
--- a/media-video/ffmpeg/ChangeLog
+++ b/media-video/ffmpeg/ChangeLog
@@ -1,6 +1,12 @@
# 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.746 2014/06/08 13:01:45 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.747 2014/06/11 20:54:53 mgorny Exp $
+
+*ffmpeg-2.2.3-r1 (11 Jun 2014)
+
+ 11 Jun 2014; Michał Górny <mgorny@gentoo.org> +ffmpeg-2.2.3-r1.ebuild,
+ ffmpeg-9999.ebuild:
+ Enable multilib support, bug #489816.
08 Jun 2014; Agostino Sarubbo <ago@gentoo.org> ffmpeg-1.2.6.ebuild:
Stable for sparc, wrt bug #508372
diff --git a/media-video/ffmpeg/Manifest b/media-video/ffmpeg/Manifest
index 54961cc4768c..1e61ca60c651 100644
--- a/media-video/ffmpeg/Manifest
+++ b/media-video/ffmpeg/Manifest
@@ -18,24 +18,27 @@ EBUILD ffmpeg-1.0.8.ebuild 9650 SHA256 32a1b9c7967b092291331f6a24a1d7cc1c8cbeb1c
EBUILD ffmpeg-1.0.9.ebuild 9658 SHA256 c58257c61b10c0aeb7ade0b859e2855b556f5799feb0c288804ddccefacd7f28 SHA512 8bc1cf23bf6e46086bac12ed61fb953021b74eae466f21d49950a615e9e92551b62172930a851156926def8f470c056bea2ad85177261266655bc65df3ef802c WHIRLPOOL aae7a5426e7cc5215b58e951fb6487a7dcc621dbbcaffbf516ebe6ad39d6db6f60c7a84e0781b215e4fa4707be9ecb77308c5a4d654684f7de6a48c1c5488712
EBUILD ffmpeg-1.2.6.ebuild 8995 SHA256 f4c2793bcf14315fbdb7a210e86cb39747a2211a9d4f8aa97a79d26e4a44ed9e SHA512 9ae6b8785d8f11d0321f6dfb034dc630f23facfca1e96ad8e89d7ea704b3e4151728edef3dc247526697cf8254c75d1860774826440b7781be465d3a970a29ca WHIRLPOOL d0f08e038fef816028792ff064d8196f61fa0a5494bed33c68a6cc33c917ade86d98bacd07c0128cb6d321c6864ba34f8a8e65b633fff396e40b6506c221971d
EBUILD ffmpeg-2.2.2.ebuild 10320 SHA256 a8cdda51c59f5f7c3ed15b721f98961428c35532d654f94311e96c3a8991ce2d SHA512 808fa41e91d25fda697279d8d4f5e1ec1a9f38dbf19a1893af35a868c40d1ed8ac8550bb97762ac84d0515e4b7064647fdc1239ddfdb14cda073dbd56e2cf90a WHIRLPOOL 455c13276f48f12ea9a7d0077f08fa14341025ffd6c8e3a3bc5570077c716135d70aebdf75f9e7afbf1654a7b0604b1f503afcaeb1d22ca5277768353e54b221
+EBUILD ffmpeg-2.2.3-r1.ebuild 11759 SHA256 f9f6d81a779c65313c23dc11d8e60e57efd61f4467fbb769a31172428d19f184 SHA512 8be9e2cd49d22879989c863439e244a52c7b218d476fe16660db27c7217a659d1a0cbf232210e14ec731a223e6f5b7843b9158898f46fb912417d4157140d2ae WHIRLPOOL af56c0f0e9b2f454921f2246dc8ad0990ef8bcf2dff4b9de7210a81403b8461994802a98cf17d4b84c956f5b7400413753643d0ea464c5e434caadfe0eee39a0
EBUILD ffmpeg-2.2.3.ebuild 10320 SHA256 7c05919c00fced9813d272c31af2e29f4fa6a089676925c91d5289e15652c8d7 SHA512 2d16862f5a504b13ba24b86096d60b7bbef1ea27f59cbdb1463181cd428c2f29a52a79a536da0342bd5ad76ddbceeadca7814f70c582a65e68ee63fc8f3e28de WHIRLPOOL 48c7c5486c43bdef447f9ec2697b65c4b606336cc9429c97a46560d47db3ec56672ece9a46ec389045e11825e0c219fd064d0fb096cd36d081cbd26cb4aa789c
-EBUILD ffmpeg-9999.ebuild 10354 SHA256 8589fed7f8229a78b4c8e51b7ddd3eaaf5371b662dd57ba2179fe807455db3cf SHA512 94db977e8bbfc0a3974af2950106a2184ac20f3f38b494a98aee15d615d897b8c561eeb42b9fbc1d9a4fd0200b0ee4b7486ecf552697d47bc711ab4ed1ba5778 WHIRLPOOL b23e16005c73156a5c7b44b6e9f17c78467a2b2ef06a73c6d3a0c899ab15a13852a41de4fa0f147583957225778de2c4077210e3d81e4085bdc0e3fbae81ff84
-MISC ChangeLog 103490 SHA256 fa033ba2681304b67aa1639779c91c3f65799b1b37280e79f18315bc0a5944b6 SHA512 736249720b11184ac6e7445b7d44669ed20719eac7508e6ee29280360ed09cb5670d9997dd595af3d7c40013e4079c766a7443bb66ba83d0c805ba5317125b9f WHIRLPOOL e8f855beaf8aff1e7da296a196c63639017b4f5a2a60a633688624d3b709c19a9c4e9d8efe5981d08656ca4072b662f975d8329c0ef2a43e87b0316b765186af
+EBUILD ffmpeg-9999.ebuild 11790 SHA256 a20e8444834d8f01b77d95c031da05eb8c06f904bec73e7d72237d8097c50b7e SHA512 7bcb29a0564b78246772a9bbb9892a819a5022898c4a630b01dce810e3730543f81ebf354914e08fa0f868b89df57bda73009cc004ae0d7e81a4f5f3881e9ea0 WHIRLPOOL e2ae4c7ca9c4e9f7e8370de912136e8c35842db655da714a857eaa7fbe5496864028538b4a6d9ace2f07cde14ed5673bc2e59641846ab5afb2cd77eb76f56135
+MISC ChangeLog 103663 SHA256 6f706d10fc844f3234b73fe9d056a5459672201af72b52246618d7629b9caa60 SHA512 e31c17f05dcd7840e1d188d081a088819120973aa36fb8da581ee756535dd20457dba59d1dd3eb99415e562a40b3009b37db0a7db80c1903d90b90a2c79ccbc8 WHIRLPOOL 7d95339b6a2297068357bd175468af22bb888950da0cdab65cd986416ca9ece25a7bf39fd549f3af65e00403a737b09fbc80a28bd043747a05558d1bc2930017
MISC metadata.xml 5340 SHA256 010fe23d4fce67e3ebfdba2d3d0e4c4ecf7cb12885397c2058096955733f19a3 SHA512 8b1e55fa5896382e700ff61be266b635b2f3873ac7e29f331cc3a31be683cf9b2e24d93b52cd109149dab2d98ae58f5151dccdc8e6f48f2abe56382a11a471db WHIRLPOOL 420bfe98b7d0b58cdc56f76cdcf74fb1fe69df2ec6501d1444202786465ad63d255ca1a63340d52bb4586b19b1f14fb1ca859f8798071644c95f1d200cd281cc
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
+Version: GnuPG v2
-iQIcBAEBCAAGBQJTlF69AAoJELp701BxlEWfCtAQAKno6fNhc4+Pf8sfmYAfhDTO
-sSjj8tixDOYFwc3n8xl16O/7xSzl9mlOvp3uMUjUFwcxDLttTMNEUnxFdM0qMleS
-fj7OfemmAvsAz1U0Wu7FdYunMjg87YYjLqZNMDXShF8irYq9ubJhOaJSG19vVPy9
-GNhGKU48MemswFRTeQY44FGHa20PjUi/LBVU9mfgMvGnmFcvTGnPSWV+/F0XZK3B
-YKXpF/Gl891mktM6EebdLErwy+pImhDdFkFzsNcyRTY7qgholHBZQ9RvNDLhRUXV
-yIiGZrPtHutiNEBk5BRQcPGMouxK2u0WkchhyyMf0/0posOhUSKhtknNFlkocew8
-7SAxK4yAvcsEVj2CaUtKlHfeI25m5oSP2xwjOq/gub7zirGkEJ/H666UrGsTTBxj
-9La/9PNx+pVO3aD8pCRLkwVrfYsF5/wGlK7DEdvl0DD/WcdwELQgZD0bUZl6ig+4
-5uBNrXnKiz82/PQ6aywhvTuwpvqETwzVvHxA5E2EBO06kTsZhvjF1ovdfNfUtXnl
-R8LU/el/C+//WgNLcX8OgWyo0G+1QyvK2YofSjl7L6dhF9sH5HcUFZ4o0r42HBPM
-nD4vaUBBm1sRTnZEuMzd/yjj87i0h1yadePYZPafTdfFEmch3DJ2kXFByKj4nM8Q
-C5DkWzLSBzeckT+ZMF7j
-=tuOu
+iQJ8BAEBCABmBQJTmMIfXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC
+MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZOJckP/0ZzdkQgwO2WU8YBfWaUg0TS
+4OBx96NtgBOa4AmcRVHN+2alHZa2WTW1JlEaRlua93ylChQANeI6mAH5tU1RKkg4
+Li6Ho96I2fYW7Ntjv1sOuU8txmiNwCeCLyBUXb2PCf4YGZxxvvtgve7s8c23FZC3
+CWtyUB5n0WaQwezi2eT2IEH0gUCcUkqJPiyJaJsR78joB8tiXgjYFQ4GBzkRQftI
+dgEl4s0/IezWoa49kIAAN0Dptn0woJ7qAwm2AUJs1gSB0HiBx5bZ2DJSuinb1U5e
+MMsv5ZTp1JqG1I2XO5Tz0IkZRP1dSGM/16hAQg+kTpGMtwPg1zCj20wijpFpJNOj
+11N/SdyJczn7wfzmGNb+EdQHQOgFDzYdDtHR6AKC337Pth3ICsok73CJjdYelif6
+qAi5Rmy0eRUaambKEnR127sgGpSTAtlwTNlvOof86UCa3dhBsd6GxfWLuGJpz6/r
+4yJFaXv0ImMi2lXHqe+Lp7UanZA5RU+BSpkF0sb1nL7jCxVzxyYrUjCCwc17qeEc
+qqjjN/WadMhh66FtEz6pwJqrafYKr6gzGfPxLlIHsXO1D654dENi4Wl3HZeS977f
+HKZy9LNwscPq9D4WRBfCVjFCSP2TtnZc8bk7RlfSI1l1g76Flwku6H3Q9VfTCL4q
+apkvcv+ihu5EUOYdknlh
+=CGZS
-----END PGP SIGNATURE-----
diff --git a/media-video/ffmpeg/ffmpeg-2.2.3-r1.ebuild b/media-video/ffmpeg/ffmpeg-2.2.3-r1.ebuild
new file mode 100644
index 000000000000..6211124cfcf2
--- /dev/null
+++ b/media-video/ffmpeg/ffmpeg-2.2.3-r1.ebuild
@@ -0,0 +1,366 @@
+# 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-r1.ebuild,v 1.1 2014/06/11 20:54:53 mgorny 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 multilib-minimal 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[${MULTILIB_USEDEP}] )
+ amr? ( media-libs/opencore-amr[${MULTILIB_USEDEP}] )
+ bluray? ( media-libs/libbluray[${MULTILIB_USEDEP}] )
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+ cdio? (
+ || (
+ dev-libs/libcdio-paranoia[${MULTILIB_USEDEP}]
+ <dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}]
+ )
+ )
+ celt? ( >=media-libs/celt-0.11.1[${MULTILIB_USEDEP}] )
+ encode? (
+ aac? ( media-libs/vo-aacenc[${MULTILIB_USEDEP}] )
+ aacplus? ( media-libs/libaacplus[${MULTILIB_USEDEP}] )
+ amrenc? ( media-libs/vo-amrwbenc[${MULTILIB_USEDEP}] )
+ faac? ( media-libs/faac[${MULTILIB_USEDEP}] )
+ mp3? ( >=media-sound/lame-3.98.3[${MULTILIB_USEDEP}] )
+ theora? (
+ >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
+ media-libs/libogg[${MULTILIB_USEDEP}]
+ )
+ twolame? ( media-sound/twolame[${MULTILIB_USEDEP}] )
+ wavpack? ( media-sound/wavpack[${MULTILIB_USEDEP}] )
+ webp? ( media-libs/libwebp[${MULTILIB_USEDEP}] )
+ x264? ( >=media-libs/x264-0.0.20111017:=[${MULTILIB_USEDEP}] )
+ x265? ( media-libs/x265:=[${MULTILIB_USEDEP}] )
+ xvid? ( >=media-libs/xvid-1.1.0[${MULTILIB_USEDEP}] )
+ )
+ fdk? ( >=media-libs/fdk-aac-0.1.3[${MULTILIB_USEDEP}] )
+ flite? ( app-accessibility/flite[${MULTILIB_USEDEP}] )
+ fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
+ frei0r? ( media-plugins/frei0r-plugins )
+ gme? ( media-libs/game-music-emu[${MULTILIB_USEDEP}] )
+ gnutls? ( >=net-libs/gnutls-2.12.16[${MULTILIB_USEDEP}] )
+ gsm? ( >=media-sound/gsm-1.0.12-r1[${MULTILIB_USEDEP}] )
+ iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
+ iec61883? (
+ media-libs/libiec61883[${MULTILIB_USEDEP}]
+ sys-libs/libraw1394[${MULTILIB_USEDEP}]
+ sys-libs/libavc1394[${MULTILIB_USEDEP}]
+ )
+ ieee1394? (
+ media-libs/libdc1394[${MULTILIB_USEDEP}]
+ sys-libs/libraw1394[${MULTILIB_USEDEP}]
+ )
+ jack? ( media-sound/jack-audio-connection-kit[${MULTILIB_USEDEP}] )
+ jpeg2k? ( >=media-libs/openjpeg-1.3-r2:0[${MULTILIB_USEDEP}] )
+ libass? ( media-libs/libass[${MULTILIB_USEDEP}] )
+ libcaca? ( media-libs/libcaca[${MULTILIB_USEDEP}] )
+ libsoxr? ( media-libs/soxr[${MULTILIB_USEDEP}] )
+ libv4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
+ modplug? ( media-libs/libmodplug[${MULTILIB_USEDEP}] )
+ openal? ( >=media-libs/openal-1.1[${MULTILIB_USEDEP}] )
+ opengl? ( virtual/opengl[${MULTILIB_USEDEP}] )
+ openssl? ( dev-libs/openssl[${MULTILIB_USEDEP}] )
+ opus? ( media-libs/opus[${MULTILIB_USEDEP}] )
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
+ quvi? ( media-libs/libquvi:0.4 )
+ rtmp? ( >=media-video/rtmpdump-2.2f[${MULTILIB_USEDEP}] )
+ sdl? ( >=media-libs/libsdl-1.2.13-r1[sound,video,${MULTILIB_USEDEP}] )
+ schroedinger? ( media-libs/schroedinger[${MULTILIB_USEDEP}] )
+ speex? ( >=media-libs/speex-1.2_beta3[${MULTILIB_USEDEP}] )
+ ssh? ( net-libs/libssh[${MULTILIB_USEDEP}] )
+ truetype? ( media-libs/freetype:2[${MULTILIB_USEDEP}] )
+ vaapi? ( >=x11-libs/libva-0.32[${MULTILIB_USEDEP}] )
+ vdpau? ( x11-libs/libvdpau[${MULTILIB_USEDEP}] )
+ vorbis? (
+ media-libs/libvorbis[${MULTILIB_USEDEP}]
+ media-libs/libogg[${MULTILIB_USEDEP}]
+ )
+ vpx? ( >=media-libs/libvpx-0.9.6[${MULTILIB_USEDEP}] )
+ X? (
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ x11-libs/libXfixes[${MULTILIB_USEDEP}]
+ )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+ zvbi? ( media-libs/zvbi[${MULTILIB_USEDEP}] )
+ !media-video/qt-faststart
+ !media-libs/libpostproc
+"
+
+DEPEND="${RDEPEND}
+ >=sys-devel/make-3.81
+ doc? ( app-text/texi2html )
+ fontconfig? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ gnutls? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ ieee1394? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ ladspa? ( media-libs/ladspa-sdk[${MULTILIB_USEDEP}] )
+ libv4l? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ mmx? ( >=dev-lang/yasm-1.2 )
+ rtmp? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ schroedinger? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ test? ( net-misc/wget )
+ truetype? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ 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
+ epatch "${FILESDIR}/ladspadl.patch"
+ epatch_user
+}
+
+multilib_src_configure() {
+ 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+=( --enable-nonfree )
+
+ # Encoders
+ if use encode
+ then
+ ffuse+=( aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame )
+ for i in aacplus faac theora twolame wavpack webp x264 x265 xvid; do
+ ffuse+=( ${i}:lib${i} )
+ done
+
+ # Licensing.
+ if use aac || use amrenc ; then
+ myconf+=( --enable-version3 )
+ fi
+ if use aacplus || use faac ; then
+ myconf+=( --enable-nonfree )
+ fi
+ else
+ myconf+=( --disable-encoders )
+ fi
+
+ # libavdevice options
+ ffuse+=( cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl )
+
+ # Indevs
+ use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
+ for i in alsa oss jack ; do
+ use ${i} || myconf+=( --disable-indev=${i} )
+ done
+ ffuse+=( libv4l:libv4l2 pulseaudio:libpulse X:x11grab )
+
+ # Outdevs
+ for i in alsa oss sdl ; do
+ use ${i} || myconf+=( --disable-outdev=${i} )
+ done
+
+ # libavfilter options
+ ffuse+=( flite:libflite frei0r fontconfig ladspa libass truetype:libfreetype )
+
+ # libswresample options
+ ffuse+=( libsoxr )
+
+ # Threads; we only support pthread for now but ffmpeg supports more
+ ffuse+=( threads:pthreads )
+
+ # Decoders
+ ffuse+=( amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg )
+ use amr && myconf+=( --enable-version3 )
+ for i in bluray celt gme gsm modplug opus quvi rtmp ssh schroedinger speex vorbis vpx zvbi; do
+ ffuse+=( ${i}:lib${i} )
+ done
+ use fdk && myconf+=( --enable-nonfree )
+
+ for i in "${ffuse[@]}" ; do
+ myconf+=( $(use_enable ${i%:*} ${i#*:}) )
+ done
+
+ # (temporarily) disable non-multilib deps
+ if ! multilib_is_native_abi; then
+ for i in frei0r libquvi; do
+ myconf+=( --disable-${i} )
+ done
+ fi
+
+ # CPU features
+ for i in ${CPU_FEATURES}; do
+ use ${i%:*} || myconf+=( --disable-${i#*:} )
+ done
+ if use pic ; then
+ myconf+=( --enable-pic )
+ # disable asm code if PIC is required
+ # as the provided asm decidedly is not PIC for x86.
+ [[ ${ABI} == x86 ]] && 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+=( --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+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
+ case ${CHOST} in
+ *freebsd*)
+ myconf+=( --target-os=freebsd )
+ ;;
+ mingw32*)
+ myconf+=( --target-os=mingw32 )
+ ;;
+ *linux*)
+ 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
+}
+
+multilib_src_compile() {
+ emake V=1
+
+ if multilib_is_native_abi; then
+ for i in ${FFTOOLS} ; do
+ if use fftools_${i} ; then
+ emake V=1 tools/${i}
+ fi
+ done
+ fi
+}
+
+multilib_src_install() {
+ emake V=1 DESTDIR="${D}" install install-man
+
+ if multilib_is_native_abi; then
+ for i in ${FFTOOLS} ; do
+ if use fftools_${i} ; then
+ dobin tools/${i}
+ fi
+ done
+ fi
+}
+
+multilib_src_install_all() {
+ 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
+}
+
+multilib_src_test() {
+ 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
+}
diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild
index 54d96a6eef2f..17d04a794743 100644
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
@@ -1,6 +1,6 @@
# 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-9999.ebuild,v 1.154 2014/06/03 06:20:53 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild,v 1.155 2014/06/11 20:54:53 mgorny Exp $
EAPI="5"
@@ -21,7 +21,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then
EGIT_REPO_URI="git://source.ffmpeg.org/ffmpeg.git"
fi
-inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
+inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM}
DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec."
HOMEPAGE="http://ffmpeg.org/"
@@ -74,62 +74,84 @@ for i in ${FFTOOLS}; do
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 )
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+ amr? ( media-libs/opencore-amr[${MULTILIB_USEDEP}] )
+ bluray? ( media-libs/libbluray[${MULTILIB_USEDEP}] )
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+ cdio? (
+ || (
+ dev-libs/libcdio-paranoia[${MULTILIB_USEDEP}]
+ <dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}]
+ )
+ )
+ celt? ( >=media-libs/celt-0.11.1[${MULTILIB_USEDEP}] )
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 )
+ aac? ( media-libs/vo-aacenc[${MULTILIB_USEDEP}] )
+ aacplus? ( media-libs/libaacplus[${MULTILIB_USEDEP}] )
+ amrenc? ( media-libs/vo-amrwbenc[${MULTILIB_USEDEP}] )
+ faac? ( media-libs/faac[${MULTILIB_USEDEP}] )
+ mp3? ( >=media-sound/lame-3.98.3[${MULTILIB_USEDEP}] )
+ theora? (
+ >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}]
+ media-libs/libogg[${MULTILIB_USEDEP}]
+ )
+ twolame? ( media-sound/twolame[${MULTILIB_USEDEP}] )
+ wavpack? ( media-sound/wavpack[${MULTILIB_USEDEP}] )
+ webp? ( media-libs/libwebp[${MULTILIB_USEDEP}] )
+ x264? ( >=media-libs/x264-0.0.20111017:=[${MULTILIB_USEDEP}] )
+ x265? ( >=media-libs/x265-0.9:=[${MULTILIB_USEDEP}] )
+ xvid? ( >=media-libs/xvid-1.1.0[${MULTILIB_USEDEP}] )
)
- fdk? ( >=media-libs/fdk-aac-0.1.3 )
- flite? ( app-accessibility/flite )
- fontconfig? ( media-libs/fontconfig )
+ fdk? ( >=media-libs/fdk-aac-0.1.3[${MULTILIB_USEDEP}] )
+ flite? ( app-accessibility/flite[${MULTILIB_USEDEP}] )
+ fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
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 )
+ gme? ( media-libs/game-music-emu[${MULTILIB_USEDEP}] )
+ gnutls? ( >=net-libs/gnutls-2.12.16[${MULTILIB_USEDEP}] )
+ gsm? ( >=media-sound/gsm-1.0.12-r1[${MULTILIB_USEDEP}] )
+ iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
+ iec61883? (
+ media-libs/libiec61883[${MULTILIB_USEDEP}]
+ sys-libs/libraw1394[${MULTILIB_USEDEP}]
+ sys-libs/libavc1394[${MULTILIB_USEDEP}]
+ )
+ ieee1394? (
+ media-libs/libdc1394[${MULTILIB_USEDEP}]
+ sys-libs/libraw1394[${MULTILIB_USEDEP}]
+ )
+ jack? ( media-sound/jack-audio-connection-kit[${MULTILIB_USEDEP}] )
+ jpeg2k? ( >=media-libs/openjpeg-1.3-r2:0[${MULTILIB_USEDEP}] )
+ libass? ( media-libs/libass[${MULTILIB_USEDEP}] )
+ libcaca? ( media-libs/libcaca[${MULTILIB_USEDEP}] )
+ libsoxr? ( media-libs/soxr[${MULTILIB_USEDEP}] )
+ libv4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
+ modplug? ( media-libs/libmodplug[${MULTILIB_USEDEP}] )
+ openal? ( >=media-libs/openal-1.1[${MULTILIB_USEDEP}] )
+ opengl? ( virtual/opengl[${MULTILIB_USEDEP}] )
+ openssl? ( dev-libs/openssl[${MULTILIB_USEDEP}] )
+ opus? ( media-libs/opus[${MULTILIB_USEDEP}] )
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
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 )
+ rtmp? ( >=media-video/rtmpdump-2.2f[${MULTILIB_USEDEP}] )
+ sdl? ( >=media-libs/libsdl-1.2.13-r1[sound,video,${MULTILIB_USEDEP}] )
+ schroedinger? ( media-libs/schroedinger[${MULTILIB_USEDEP}] )
+ speex? ( >=media-libs/speex-1.2_beta3[${MULTILIB_USEDEP}] )
+ ssh? ( net-libs/libssh[${MULTILIB_USEDEP}] )
+ truetype? ( media-libs/freetype:2[${MULTILIB_USEDEP}] )
+ vaapi? ( >=x11-libs/libva-0.32[${MULTILIB_USEDEP}] )
+ vdpau? ( x11-libs/libvdpau[${MULTILIB_USEDEP}] )
+ vorbis? (
+ media-libs/libvorbis[${MULTILIB_USEDEP}]
+ media-libs/libogg[${MULTILIB_USEDEP}]
+ )
+ vpx? ( >=media-libs/libvpx-0.9.6[${MULTILIB_USEDEP}] )
+ X? (
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ x11-libs/libXfixes[${MULTILIB_USEDEP}]
+ )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+ zvbi? ( media-libs/zvbi[${MULTILIB_USEDEP}] )
!media-video/qt-faststart
!media-libs/libpostproc
"
@@ -137,16 +159,16 @@ RDEPEND="
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 )
+ fontconfig? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ gnutls? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ ieee1394? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ ladspa? ( media-libs/ladspa-sdk[${MULTILIB_USEDEP}] )
+ libv4l? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
mmx? ( >=dev-lang/yasm-1.2 )
- rtmp? ( virtual/pkgconfig )
- schroedinger? ( virtual/pkgconfig )
+ rtmp? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
+ schroedinger? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
test? ( net-misc/wget )
- truetype? ( virtual/pkgconfig )
+ truetype? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
v4l? ( sys-kernel/linux-headers )
"
# faac is license-incompatible with ffmpeg
@@ -156,95 +178,100 @@ REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
test? ( encode )"
S=${WORKDIR}/${P/_/-}
-BUILD_DIR=${S}_build
src_prepare() {
- if [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot
+ 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}"
+multilib_src_configure() {
+ 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 X:xlib zlib"
- use openssl && myconf="${myconf} --enable-nonfree"
+ local ffuse=(
+ bzip2:bzlib cpudetection:runtime-cpudetect debug doc
+ gnutls hardcoded-tables iconv network openssl sdl:ffplay vaapi
+ vdpau X:xlib zlib
+ )
+ use openssl && myconf+=( --enable-nonfree )
# Encoders
if use encode
then
- ffuse="${ffuse} aac:libvo-aacenc amrenc:libvo-amrwbenc mp3:libmp3lame"
+ 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}"
+ ffuse+=( ${i}:lib${i} )
done
# Licensing.
if use aac || use amrenc ; then
- myconf="${myconf} --enable-version3"
+ myconf+=( --enable-version3 )
fi
if use aacplus || use faac ; then
- myconf="${myconf} --enable-nonfree"
+ myconf+=( --enable-nonfree )
fi
else
- myconf="${myconf} --disable-encoders"
+ myconf+=( --disable-encoders )
fi
# libavdevice options
- ffuse="${ffuse} cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl"
+ ffuse+=( cdio:libcdio iec61883:libiec61883 ieee1394:libdc1394 libcaca openal opengl )
# Indevs
- use v4l || myconf="${myconf} --disable-indev=v4l2 --disable-outdev=v4l2"
+ use v4l || myconf+=( --disable-indev=v4l2 --disable-outdev=v4l2 )
for i in alsa oss jack ; do
- use ${i} || myconf="${myconf} --disable-indev=${i}"
+ use ${i} || myconf+=( --disable-indev=${i} )
done
- ffuse="${ffuse} libv4l:libv4l2 pulseaudio:libpulse X:x11grab"
+ ffuse+=( libv4l:libv4l2 pulseaudio:libpulse X:x11grab )
# Outdevs
for i in alsa oss sdl ; do
- use ${i} || myconf="${myconf} --disable-outdev=${i}"
+ use ${i} || myconf+=( --disable-outdev=${i} )
done
# libavfilter options
- ffuse="${ffuse} flite:libflite frei0r fontconfig ladspa libass truetype:libfreetype"
+ ffuse+=( flite:libflite frei0r fontconfig ladspa libass truetype:libfreetype )
# libswresample options
- ffuse="${ffuse} libsoxr"
+ ffuse+=( libsoxr )
# Threads; we only support pthread for now but ffmpeg supports more
- ffuse="${ffuse} threads:pthreads"
+ ffuse+=( threads:pthreads )
# Decoders
- ffuse="${ffuse} amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg"
- use amr && myconf="${myconf} --enable-version3"
+ ffuse+=( amr:libopencore-amrwb amr:libopencore-amrnb fdk:libfdk-aac jpeg2k:libopenjpeg )
+ use amr && 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}"
+ ffuse+=( ${i}:lib${i} )
done
- use fdk && myconf="${myconf} --enable-nonfree"
+ use fdk && myconf+=( --enable-nonfree )
- for i in ${ffuse} ; do
- myconf="${myconf} $(use_enable ${i%:*} ${i#*:})"
+ for i in "${ffuse[@]}" ; do
+ myconf+=( $(use_enable ${i%:*} ${i#*:}) )
done
+ # (temporarily) disable non-multilib deps
+ if ! multilib_is_native_abi; then
+ for i in frei0r libquvi; do
+ myconf+=( --disable-${i} )
+ done
+ fi
+
# CPU features
for i in ${CPU_FEATURES}; do
- use ${i%:*} || myconf="${myconf} --disable-${i#*:}"
+ use ${i%:*} || myconf+=( --disable-${i#*:} )
done
if use pic ; then
- myconf="${myconf} --enable-pic"
+ 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"
+ [[ ${ABI} == x86 ]] && myconf+=( --disable-asm )
fi
- [[ ${ABI} == "x32" ]] && myconf+=" --disable-asm" #427004
+ [[ ${ABI} == x32 ]] && myconf+=( --disable-asm ) #427004
# Try to get cpu type based on CFLAGS.
# Bug #172723
@@ -252,32 +279,33 @@ src_configure() {
# 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}"
+ [[ ${i} = native ]] && i="host" # bug #273421
+ myconf+=( --cpu=${i} )
break
done
# Mandatory configuration
- myconf="
+ myconf=(
--enable-gpl
--enable-postproc
--enable-avfilter
--enable-avresample
--disable-stripping
- ${myconf}"
+ "${myconf[@]}"
+ )
# cross compile support
if tc-is-cross-compiler ; then
- myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}-"
+ myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- )
case ${CHOST} in
*freebsd*)
- myconf="${myconf} --target-os=freebsd"
+ myconf+=( --target-os=freebsd )
;;
mingw32*)
- myconf="${myconf} --target-os=mingw32"
+ myconf+=( --target-os=mingw32 )
;;
*linux*)
- myconf="${myconf} --target-os=linux"
+ myconf+=( --target-os=linux )
;;
esac
fi
@@ -295,31 +323,34 @@ src_configure() {
--extra-cflags="${CFLAGS}" \
--extra-cxxflags="${CXXFLAGS}" \
$(use_enable static-libs static) \
- ${myconf} || die
+ "${myconf[@]}" || die
}
-src_compile() {
- cd "${BUILD_DIR}"
+multilib_src_compile() {
emake V=1
- for i in ${FFTOOLS} ; do
- if use fftools_$i ; then
- emake V=1 tools/$i
- fi
- done
+ if multilib_is_native_abi; then
+ for i in ${FFTOOLS} ; do
+ if use fftools_${i} ; then
+ emake V=1 tools/${i}
+ fi
+ done
+ fi
}
-src_install() {
- cd "${BUILD_DIR}"
+multilib_src_install() {
emake V=1 DESTDIR="${D}" install install-man
- for i in ${FFTOOLS} ; do
- if use fftools_$i ; then
- dobin tools/$i
- fi
- done
+ if multilib_is_native_abi; then
+ for i in ${FFTOOLS} ; do
+ if use fftools_${i} ; then
+ dobin tools/${i}
+ fi
+ done
+ fi
+}
- cd "${S}"
+multilib_src_install_all() {
dodoc Changelog README.md CREDITS doc/*.txt doc/APIchanges doc/RELEASE_NOTES
use doc && dohtml -r doc/*
if use examples ; then
@@ -328,8 +359,7 @@ src_install() {
fi
}
-src_test() {
- cd "${BUILD_DIR}"
+multilib_src_test() {
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
}