diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-09-17 00:19:16 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-09-17 00:19:16 +0000 |
commit | 75f2c761c3c738ecb37e06d27b0ef4288cc0faa7 (patch) | |
tree | 39c8234ebfa2c7113915a58824dc977bcabb1a67 | |
parent | Add libav-11 to the package mask (diff) | |
download | historical-75f2c761c3c738ecb37e06d27b0ef4288cc0faa7.tar.gz historical-75f2c761c3c738ecb37e06d27b0ef4288cc0faa7.tar.bz2 historical-75f2c761c3c738ecb37e06d27b0ef4288cc0faa7.zip |
New major release
Package-Manager: portage-2.2.12/cvs/Linux x86_64
-rw-r--r-- | media-video/libav/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/libav/Manifest | 4 | ||||
-rw-r--r-- | media-video/libav/libav-11.ebuild | 330 |
3 files changed, 339 insertions, 2 deletions
diff --git a/media-video/libav/ChangeLog b/media-video/libav/ChangeLog index cc12eb1e4ad7..ba1b357ccc89 100644 --- a/media-video/libav/ChangeLog +++ b/media-video/libav/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-video/libav # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.222 2014/09/17 00:11:43 lu_zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/libav/ChangeLog,v 1.223 2014/09/17 00:19:13 lu_zero Exp $ + +*libav-11 (17 Sep 2014) + + 17 Sep 2014; Luca Barbato <lu_zero@gentoo.org> +libav-11.ebuild: + New major release 17 Sep 2014; Luca Barbato <lu_zero@gentoo.org> libav-9999.ebuild: Update depencencies and allow to override the EGIT variables diff --git a/media-video/libav/Manifest b/media-video/libav/Manifest index 1d1795f86305..fe151c42e7a1 100644 --- a/media-video/libav/Manifest +++ b/media-video/libav/Manifest @@ -5,6 +5,7 @@ DIST libav-10.1.tar.xz 4646616 SHA256 d5e04dc9adf43a467aa628f622425697d587a29cb0 DIST libav-10.2.tar.xz 4649332 SHA256 49f000f6fbfc73c6070aa84b93412b5912b53548ec297ccc309c52cb42999b1b SHA512 fe9b303759f4ef6ce188d252558ea91c3388989edb96db18b5ad0b43e7152ae3eebddcf1d7471ee6a3d5becd477846d7f7f9c12bcac83c12dd100600a042dd62 WHIRLPOOL 8a950048730e3eddc60953d0b583322b6420f67953afa29231f60dc0b50119f85256826af7e1b24a774110a3eb4d08e8f94df57c13f2ff246e73b9abcc677e1b DIST libav-10.3.tar.xz 4647920 SHA256 b92c9feccc48f36b2aa5d1ef7785c5be3652668a854f4825968e8c52581e08bb SHA512 77e9d01921eb11478a570f228fc6013e16a6eaa76e0628d19868527c36ebf42b98a40876d5118fa3ae01f0bad9a502b7988f4d42958a1ca7b089779436008134 WHIRLPOOL 93a4fe94fc6dfacfdf1520b5727b229c3f79ebcd634b22ff968bee13c1e92f034320a34735b8c5eda1c0e981abc09455c089feba5fffcf593b5840b836bbfb81 DIST libav-10.tar.xz 4646864 SHA256 69ce0756ad5916fb1cf47d198d7b6232d2aed42c39e3e350b6adafb3e45679a0 SHA512 00505d0491fff4a502af9d6472670c31ffaccebf26aea85ced751eb2070108f56ebf930204a4ea4640eaf6d46ebf3e9629bc95a75786fb4c2b2866f794dd3f35 WHIRLPOOL ace1a0ca9b736c9f5039c586069f3de854bfe2ee030c5537685cfee5e36c7e247fc64f99c5a135bc794926a7cca77408280573897b262595c180ff50b68be2fa +DIST libav-11.tar.xz 4871572 SHA256 1f920f057f93752f44e8ed3b497129ffca249d462721bed8270726023b6a8835 SHA512 d40d245fbbe19713f75d52da61866cb59de0bd649fd3c91af2e6675efb2c81778240eaeee441fe823c4ffa8ade85dbe74883fec259d8a7d6b260724eedbf055f WHIRLPOOL b907547a9e5e9e03f99352089c5be7889197b4ff4e7e40c151e1be8a3fac056fffbe5e03a498e8f98f459011568c1596bdd8f53afe754e4361cb42d8397df3b5 DIST libav-9.14.tar.xz 4077424 SHA256 e4baf0c2adbd941a827854794dd6af9c29cd2042b23501c5828e9b8e1725f61d SHA512 fa8e83cb92a5a565cd23c63467c64972a69a4cbd652b946c7891b73180b609890f67a6f89f009ed263fb9e2c769236f3a8f7f70b0fce4c4373fa93a49470c04d WHIRLPOOL 178ba6c6ad0ecd8ad59eb3bf7a0d4289a3c253d82981cf3ad454e3b222848ae4f875e37cfd280be43faa25a9614c445106555c9f3b5ee4497aec9d71f39ac1af DIST libav-9.16.tar.xz 4079520 SHA256 ca846473b0b8ed8e3404c52e5e92df6d35cb5fa487eec498525de3ffda4367a0 SHA512 b77385db20d2160aa31a47bfb2073853175b3b1def350d28616f8bd83926d795b66b4c5b349f7af47ecc3a29195505f747b7397e1a0699ebce9ae4089cd992b9 WHIRLPOOL 14b59cdeab9dcf8b56e2b3c62e3314218edf402e7e976f588cda2beee6f244e9ab1485115cd6f9e175e086a9e32162ebaa6bda0469c7957f11d9be2ca396cdb7 EBUILD libav-10.1-r1.ebuild 10141 SHA256 5dd529a0c63879a970d0954251036c3cfc73ee9e9b4d499a2f5f6138edf705e9 SHA512 c87c7ca2aea92b92cc4b7bb1f17c36d7fa260f9a78cb5f5826245899b24b8dc2f05be529a12daa2ff568f1f827e22da66d5962f83595d967769c039c4384e6e7 WHIRLPOOL b488a93d303a38d3dae600d6af7127083cf249b5c956c8cce1130faa5268e2d468f8e79793e2ac44dc14fa1cc416008e7844b7155571fa127b35a4b4941dc576 @@ -13,9 +14,10 @@ EBUILD libav-10.2.ebuild 10138 SHA256 e14e3f3c36d16f2dcc9e04a27ef975291718957dac EBUILD libav-10.3.ebuild 10135 SHA256 40e4946d92e66c145f466d69ffe3433678eecc1328957c8017457822a5db92d6 SHA512 0a9149d80a3971ca9d35be332b85a71703ef3befd80fc7d463746b114a2b77a3cfb33ca492ee30383285b33c597446cdf9f7a1162b66268282bef8f56413216c WHIRLPOOL 062d83d811fb7ac3e40fabe0535932a99ce9410bf3d127dfd4afaf7b73b3c2ed2b445e04c70eb219b679b9b044bea5902a0c55d6cd4bbe74ac3950acafbd2c96 EBUILD libav-10.9999.ebuild 10238 SHA256 b6d7496a7c706f0e5b8771f7451b6e5e7801e0a30e62e5a29f24f092ef453b31 SHA512 96c69fbc93e81e4a8155fe59e512239617c068f4cde2a2b3c8bd2f27ffa5ca65363d28d32f3dffbfe2d9de2f34d684fa968aa56b6f5d4ff5ca28b1437f993957 WHIRLPOOL f507677255e0f239cd5626a8855c183304e4bdea6208cfedbf457a1bdef9fabf5af6192500c0daefdeabd8dbc80bd01f1038b5e81dc6d822e70f2ba8b433780c EBUILD libav-10.ebuild 8372 SHA256 03a45a976332200c542471da8ea936b13b74fd5b754c676fa9591f1b91fb83bf SHA512 3d2a25ff06b2ac139c208983647e42c15b439f103e4b324ebb6013111ba7e1b944b69e95b2e2028803ce0c7e2db30041cc3199675133107403322e55eb301598 WHIRLPOOL 5e16b09b6a73ac6f873d5a31b06c5163a19e34eb363da86cd26fbefa12a63e87eadfc1f7d861a51866723d8910e4aa21a328829ba476dab464c5d4ccb3115fe7 +EBUILD libav-11.ebuild 10466 SHA256 3e9426005a95b4a572642a595927c123e82d21c1b5be9199f5dba04a9ee2c7c1 SHA512 91e7d3b3e6b3a66a1b478c98f09f3e9a4231606f74c99d8ea2d9722dc7d7eec5282acfe964780a3d2b8b042ad7411e270bc475279fdcc4cc9f49ce1af35d31ed WHIRLPOOL a011d30bc3b7ca67fbe46549c1afa2220ce7ed3ea6c4369b9de56714b2fb403c231eb5e6e90335eb34180a4c5eaa80909034b8a69f3757ebff6bb2500d692ae3 EBUILD libav-9.14.ebuild 10157 SHA256 cb77e984a6ebba124a24673ef9948779023e0a1aa0ae618d0184e1ba1c08a6d9 SHA512 8c2bd51379ed4753d82a8cb738c1bbd2eb194218480839f96552666c7ed8a0bd2455f0a751a55fac242ec867c8d80ecba6bc07c935756b372f992f559e2cf07e WHIRLPOOL a92d9c03c8b083c54c2eecf4d9e90aedebb11ff8c82296339d9386384bb8ac66ff671faa2092c007e667aca7c915bf75e5345c5125cca2d6d9aac17b670f5ba6 EBUILD libav-9.16.ebuild 10166 SHA256 ed6b2744db84c65696888907b064b90c5f5a7aa3566886fd1679f573a73d1cc5 SHA512 26a26f8a47f13837df48ad9da10a7146a53ba10c0a7cc3f391aeab968d554a1de1628581f52cc9afc9797a82b049261dabe97cb16db078bbf05a945edd05f03e WHIRLPOOL 241535e813d3d1c33194fe186a1ca29ff9243a800ce88926fa59fecf706154a827ec7aef77cb80c317663e092197e81030d8977494d8d55a909a5cc7b08a81fc EBUILD libav-9.9999.ebuild 10168 SHA256 8e825f17f40724cb919f81e5f07c62bd5ec33069f10e1731d93671e7a2e14a53 SHA512 8276ebb9269043a0dd574916d5de75b405dd46c1e386391b2cae1b842c0b18ef00df7e508250e96a1ec24b3f819b21ec431ab04f67b6327ef350952422dca603 WHIRLPOOL e1f0a9148578e2b87d48711835e0183645dc0338fecbf131eebf597e930ee086f6865c4c6920ffaf66b88c171a487505395a47d6db307c0050eaa17880e5865e EBUILD libav-9999.ebuild 10469 SHA256 c209dd986d27b4a7dc54e9ea1de818450a0e14a67343b1070d4a12401bfda334 SHA512 aa8f4a5072484a217f31991aa57f37223dce259a6294a7784f446f816a1e14ccfad50c4f69bf982f0569db6eed9f86c0a8140aa1638f56a0298b1846f8e3aa46 WHIRLPOOL 9e211db0b7f9384e7b24ab7bf921ae01a9e540eee5376946384d2b87eab5b1d75cfc072b491ecf924e4202f2fc33ba407be84e2b387ed3aa9684dcf610c38915 -MISC ChangeLog 33915 SHA256 79a9e7506c1419a8f6ab89f9e796a9d92c3c3e1754fd6e60442c15723ed9bfc1 SHA512 4a90311eaee12355952e7d5e3ef4db41cb27cb6d0899c6ea7259b2fb9c7dd5250505a701ae7c5408a581465b008878ade659d7890d22a80ecd5f8129d0f3f0e2 WHIRLPOOL d3e591622edf2ee47873086a1d2dcdc284b847f01a84ef2edc3998df746ba07b7def5a3a35d54546a25eae1e0c023d40a3825cbe1d71c959b4e425c38e7908c6 +MISC ChangeLog 34028 SHA256 ff616b132fc72e2b72ef84cb8f8aead328eade10ef0f83cc101c598723859161 SHA512 9e934e231d1e01390c4213ea2158f6258967e599bf056500ca4228961645a5ca28084b097d1214c929ae5ac007bc5903e1240e3f90313fcbe3ed863e5faf804e WHIRLPOOL 8afd217702ee06659d924266053af944c9287c09751eaf2999b5031ec11d7d297c748699a059c6e6df7887e5bb43640cbf6794c12c07ac64485197bdf752e484 MISC metadata.xml 3062 SHA256 63aeaae7b95e8df34cfc3de199206124db7fee93217af471549763188d9d1da6 SHA512 4725fb1fdd818fb8e669f1643077c1fd4e898783081bb44eea44680ce51a581ad20c9bac23664b4bdf6e7a79a9ef4bd82411d00f30ef0f0b9772aefda2414e5d WHIRLPOOL 89633c75e96fb3bc727c3418172efe932bbf296b46aa69ade59e4fc0d967b65a215dfd79a336b759a4085bfb1b310fa34f65d063014950e1c836bec17aaea127 diff --git a/media-video/libav/libav-11.ebuild b/media-video/libav/libav-11.ebuild new file mode 100644 index 000000000000..186fd6305585 --- /dev/null +++ b/media-video/libav/libav-11.ebuild @@ -0,0 +1,330 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-11.ebuild,v 1.1 2014/09/17 00:19:13 lu_zero Exp $ + +EAPI=5 + +if [[ ${PV} == *9999 ]] ; then + SCM="git-2" + : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"} + if [[ ${PV%9999} != "" ]] ; then + : ${EGIT_BRANCH:="release/${PV%.9999}"} + fi +fi + +inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs ${SCM} + +DESCRIPTION="Complete solution to record, convert and stream audio and video" +HOMEPAGE="http://libav.org/" +if [[ ${PV} == *9999 ]] ; then + SRC_URI="" +elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot + SRC_URI="http://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz" +else # Official release + SRC_URI="http://${PN}.org/releases/${P}.tar.xz" +fi + +LICENSE="LGPL-2.1 gpl? ( GPL-3 )" +SLOT="0/10" +[[ ${PV} == *9999 ]] || KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 +~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos +~x64-solaris ~x86-solaris" +IUSE="aac alsa amr bindist +bzip2 cdio cpudetection custom-cflags debug doc + +encode faac fdk frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k + mp3 +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl + static-libs test theora threads tools truetype v4l vaapi vdpau vorbis vpx X + wavpack webp x264 x265 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 neon ssse3 vis avx2" +for i in ${CPU_FEATURES} ; do + IUSE+=" ${i%:*}" +done + +RDEPEND=" + !media-video/ffmpeg:0 + alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) + amr? ( >=media-libs/opencore-amr-0.1.3-r1[${MULTILIB_USEDEP}] ) + bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] ) + cdio? ( + || ( + >=dev-libs/libcdio-paranoia-0.90_p1-r1[${MULTILIB_USEDEP}] + <dev-libs/libcdio-0.90[-minimal,${MULTILIB_USEDEP}] + ) + ) + encode? ( + aac? ( >=media-libs/vo-aacenc-0.1.3[${MULTILIB_USEDEP}] ) + amr? ( >=media-libs/vo-amrwbenc-0.1.2-r1[${MULTILIB_USEDEP}] ) + faac? ( >=media-libs/faac-1.28-r3[${MULTILIB_USEDEP}] ) + fdk? ( >=media-libs/fdk-aac-0.1.2[${MULTILIB_USEDEP}] ) + mp3? ( >=media-sound/lame-3.99.5-r1[${MULTILIB_USEDEP}] ) + theora? ( + >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] + >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] + ) + vorbis? ( + >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] + >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] + ) + webp? ( >=media-libs/libwebp-0.3.0[${MULTILIB_USEDEP}] ) + wavpack? ( >=media-sound/wavpack-4.60.1-r1[${MULTILIB_USEDEP}] ) + x264? ( >=media-libs/x264-0.0.20130506:=[${MULTILIB_USEDEP}] ) + x265? ( >=media-libs/x265-1.2:=[${MULTILIB_USEDEP}] ) + xvid? ( >=media-libs/xvid-1.3.2-r1[${MULTILIB_USEDEP}] ) + ) + frei0r? ( media-plugins/frei0r-plugins ) + gsm? ( >=media-sound/gsm-1.0.13-r1[${MULTILIB_USEDEP}] ) + ieee1394? ( + >=media-libs/libdc1394-2.2.1[${MULTILIB_USEDEP}] + >=sys-libs/libraw1394-2.1.0-r1[${MULTILIB_USEDEP}] + ) + jack? ( >=media-sound/jack-audio-connection-kit-0.121.3-r1[${MULTILIB_USEDEP}] ) + jpeg2k? ( >=media-libs/openjpeg-1.5.0:0[${MULTILIB_USEDEP}] ) + opus? ( >=media-libs/opus-1.0.2-r2[${MULTILIB_USEDEP}] ) + pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) + rtmp? ( >=media-video/rtmpdump-2.4_p20131018[${MULTILIB_USEDEP}] ) + ssl? ( + openssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] ) + !openssl? ( >=net-libs/gnutls-2.12.23-r6[${MULTILIB_USEDEP}] ) + ) + sdl? ( >=media-libs/libsdl-1.2.15-r4[sound,video,${MULTILIB_USEDEP}] ) + schroedinger? ( >=media-libs/schroedinger-1.0.11-r1[${MULTILIB_USEDEP}] ) + speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] ) + truetype? ( >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}] ) + fontconfig? ( >=media-libs/fontconfig-2.10[${MULTILIB_USEDEP}] ) + vaapi? ( >=x11-libs/libva-1.2.1-r1[${MULTILIB_USEDEP}] ) + vdpau? ( >=x11-libs/libvdpau-0.7[${MULTILIB_USEDEP}] ) + vpx? ( >=media-libs/libvpx-1.2.0_pre20130625[${MULTILIB_USEDEP}] ) + X? ( + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] + >=x11-libs/libXfixes-5.0.1[${MULTILIB_USEDEP}] + ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) +" + +DEPEND="${RDEPEND} + >=sys-devel/make-3.81 + doc? ( app-text/texi2html ) + ieee1394? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + mmx? ( dev-lang/yasm ) + rtmp? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + schroedinger? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + ssl? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + test? ( sys-devel/bc ) + truetype? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + fontconfig? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] ) + v4l? ( sys-kernel/linux-headers ) +" + +RDEPEND="${RDEPEND} + abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20140508-r3 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" + +# faac can't be binary distributed +# openssl support marked as nonfree +# faac and aac are concurent implementations +# amr and aac require at least lgpl3 +# x264 requires gpl2 +REQUIRED_USE="bindist? ( !faac !openssl !fdk ) + rtmp? ( network ) + amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) x265? ( gpl ) + test? ( encode zlib ) + fontconfig? ( truetype ) +" + +# Test on live ebuild are not possible as they require trunk fate +RESTRICT="test" + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/libavutil/avconfig.h +) + +src_prepare() { + epatch_user + + # if we have snapshot then we need to hardcode the version + if [[ ${PV%_p*} != ${PV} ]]; then + sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die + fi + + TOOLS=( aviocat graph2dot ismindex pktdumper qt-faststart trasher ) + use zlib && TOOLS+=( cws2fws ) + + MAKEOPTS+=" V=1" +} + +multilib_src_configure() { + local myconf=( ${EXTRA_LIBAV_CONF} ) + local uses i + + myconf+=( + $(use_enable gpl) + $(use_enable gpl version3) + --enable-avfilter + ) + + # enabled by default + uses="debug doc network zlib" + for i in ${uses}; do + use ${i} || myconf+=( --disable-${i} ) + done + use bzip2 || myconf+=( --disable-bzlib ) + use sdl || myconf+=( --disable-avplay ) + + if use ssl; then + use openssl && myconf+=( --enable-openssl --enable-nonfree ) \ + || myconf+=( --enable-gnutls ) + fi + + use custom-cflags && myconf+=( --disable-optimizations ) + use cpudetection && myconf+=( --enable-runtime-cpudetect ) + + use vdpau || myconf+=( --disable-vdpau ) + + use vaapi && myconf+=( --enable-vaapi ) + + # Encoders + if use encode; then + use faac && myconf+=( --enable-nonfree ) + use fdk && myconf+=( --enable-nonfree --enable-libfdk-aac ) + use mp3 && myconf+=( --enable-libmp3lame ) + use amr && myconf+=( --enable-libvo-amrwbenc ) + use aac && myconf+=( --enable-libvo-aacenc ) + uses="faac theora vorbis wavpack webp x264 x265 xvid" + for i in ${uses}; do + use ${i} && myconf+=( --enable-lib${i} ) + done + else + myconf+=( --disable-encoders ) + fi + + # libavdevice options + use cdio && myconf+=( --enable-libcdio ) + use ieee1394 && myconf+=( --enable-libdc1394 ) + use pulseaudio && myconf+=( --enable-libpulse ) + + # Indevs + # v4l1 is gone since linux-headers-2.6.38 + myconf+=( --disable-indev=v4l ) + use v4l || myconf+=( --disable-indev=v4l2 ) + for i in alsa oss jack; do + use ${i} || myconf+=( --disable-indev=${i} ) + done + use X && myconf+=( --enable-x11grab ) + # Outdevs + for i in alsa oss ; do + use ${i} || myconf+=( --disable-outdev=${i} ) + done + # libavfilter options + multilib_is_native_abi && use frei0r && myconf+=( --enable-frei0r ) + use truetype && myconf+=( --enable-libfreetype ) + use fontconfig && myconf+=( --enable-libfontconfig ) + + # Threads; we only support pthread for now + use threads && myconf+=( --enable-pthreads ) + + # Decoders + use amr && myconf+=( --enable-libopencore-amrwb --enable-libopencore-amrnb ) + uses="gsm opus rtmp schroedinger speex vpx" + for i in ${uses}; do + use ${i} && myconf+=( --enable-lib${i} ) + done + use jpeg2k && myconf+=( --enable-libopenjpeg ) + + # CPU features + for i in ${CPU_FEATURES}; do + use ${i%:*} || myconf+=( --disable-${i#*:} ) + done + + # pass the right -mfpu as extra + use neon && myconf+=( --extra-cflags=-mfpu=neon ) + + # disable mmx accelerated code if PIC is required + # as the provided asm decidedly is not PIC for x86. + if use pic && [[ ${ABI} == x86 ]]; then + myconf+=( --disable-mmx --disable-mmxext ) + fi + + # Option to force building pic + use pic && myconf+=( --enable-pic ) + + # 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 + + # Misc stuff + use hardcoded-tables && myconf+=( --enable-hardcoded-tables ) + + # Specific workarounds for too-few-registers arch... + if [[ ${ABI} == x86 ]]; then + local CFLAGS=${CFLAGS} CXXFLAGS=${CXXFLAGS} + filter-flags -fforce-addr -momit-leaf-frame-pointer + append-flags -fomit-frame-pointer + is-flag -O? || append-flags -O2 + if use debug; then + # no need to warn about debug if not using debug flag + ewarn "" + ewarn "Debug information will be almost useless as the frame pointer is omitted." + ewarn "This makes debugging harder, so crashes that has no fixed behavior are" + ewarn "difficult to fix. Please have that in mind." + ewarn "" + fi + fi + + set -- "${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)" \ + --ar="$(tc-getAR)" \ + --optflags="${CFLAGS}" \ + --extra-cflags="${CFLAGS}" \ + $(use_enable static-libs static) \ + "${myconf[@]}" + echo "${@}" + "${@}" || die +} + +multilib_src_compile() { + emake + + if use tools; then + tc-export CC + + emake ${TOOLS[@]/#/tools/} + fi +} + +multilib_src_install() { + emake DESTDIR="${D}" install install-man + use doc && dodoc doc/*.html + + if use tools; then + dobin ${TOOLS[@]/#/tools/} + fi +} + +multilib_src_install_all() { + dodoc Changelog README INSTALL +} + +multilib_src_test() { + LD_LIBRARY_PATH="${BUILD_DIR}/libavcore:${BUILD_DIR}/libswscale:${BUILD_DIR}/libavcodec:${BUILD_DIR}/libavdevice:${BUILD_DIR}/libavfilter:${BUILD_DIR}/libavformat:${BUILD_DIR}/libavutil" \ + emake -j1 fate +} |