summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-11-13 10:10:27 +0100
committerAlexis Ballier <aballier@gentoo.org>2015-11-13 10:10:27 +0100
commitdba2bf883ad6c0592965df297d93f5f5c5de3375 (patch)
tree6de74987e3ba434284fcc0fe00ce04277eae09a1 /media-libs
parentapp-text/highlight: bump to 3.24 (diff)
downloadgentoo-dba2bf883ad6c0592965df297d93f5f5c5de3375.tar.gz
gentoo-dba2bf883ad6c0592965df297d93f5f5c5de3375.tar.bz2
gentoo-dba2bf883ad6c0592965df297d93f5f5c5de3375.zip
media-libs/kvazaar: bump to 0.7.2 and export CC
Package-Manager: portage-2.2.24 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/kvazaar/Manifest1
-rw-r--r--media-libs/kvazaar/kvazaar-0.7.2.ebuild63
-rw-r--r--media-libs/kvazaar/kvazaar-9999.ebuild3
3 files changed, 66 insertions, 1 deletions
diff --git a/media-libs/kvazaar/Manifest b/media-libs/kvazaar/Manifest
index 23e738ff2c02..f3675dd5a91e 100644
--- a/media-libs/kvazaar/Manifest
+++ b/media-libs/kvazaar/Manifest
@@ -1 +1,2 @@
DIST kvazaar-0.7.1.tar.gz 288339 SHA256 c3693f801f0e717b1dcab3494d3e18a1687861af1a2c33b8878b2f70bcf18164 SHA512 a7d0a68e4b898f7dbb4175ab8a005d88786f522e185c1814a36a48395d34398880fc18e6baeebe4fef0ea97829e937df2ec9f547e05a9a1b2fdb74e260390e2a WHIRLPOOL ad640f5cf4c8238c7fbda3d126e1d7d37b3619a3eb000737eabf75b464fbf37cbc1de11c643725fb8cfbbfe8aa21df12d2c7b7aed0df29f7d8774256e78818a0
+DIST kvazaar-0.7.2.tar.gz 293147 SHA256 623e955d1dbf4f469a57c540537e977f3cead2abcb43d640e2fa0f568168cede SHA512 db06bed953cbe69f2388adfeeecdd150f36a436199e9627a06c26e4fee740255d47757522a3216c2aaca6233fbff0bf64ab5fa6ac6a26cf5af88bfd07c7d78a0 WHIRLPOOL 371379ed6c30c6db3c729e0cfded3f300157a62255b9865f4f45666354f1e2e35cad2e869600de662745251f044f7852dcb8e08e820f4d41f3e7efea13ccb645
diff --git a/media-libs/kvazaar/kvazaar-0.7.2.ebuild b/media-libs/kvazaar/kvazaar-0.7.2.ebuild
new file mode 100644
index 000000000000..425dd69fffc9
--- /dev/null
+++ b/media-libs/kvazaar/kvazaar-0.7.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+SCM=""
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ultravideo/kvazaar"
+fi
+
+inherit multilib multilib-minimal toolchain-funcs ${SCM}
+
+DESCRIPTION="An open-source HEVC encoder"
+HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar"
+
+if [ "${PV#9999}" = "${PV}" ] ; then
+ SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="cpu_flags_x86_avx2 static-libs"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+S="${WORKDIR}/${P}/src"
+
+ASM_DEP=">=dev-lang/yasm-1.2.0"
+DEPEND="${DEPEND}
+ abi_x86_32? ( ${ASM_DEP} )
+ abi_x86_64? ( ${ASM_DEP} )"
+
+src_prepare() {
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ tc-export CC
+ emake \
+ ARCH="${CHOST%%-*}" \
+ $(usex cpu_flags_x86_avx2 "" "KVZ_DISABLE_AVX2=true") \
+ lib-shared \
+ $(usex static-libs "lib-static" "") \
+ $(multilib_is_native_abi && echo cli)
+}
+
+multilib_src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ install-pc install-lib \
+ $(usex static-libs "install-static" "") \
+ $(multilib_is_native_abi && echo install-prog)
+}
+
+multilib_src_install_all() {
+ dodoc "${WORKDIR}/${P}/README.md" "${WORKDIR}/${P}/CREDITS" "${WORKDIR}/${P}/doc/"*.txt
+}
diff --git a/media-libs/kvazaar/kvazaar-9999.ebuild b/media-libs/kvazaar/kvazaar-9999.ebuild
index 50c477d2aec0..425dd69fffc9 100644
--- a/media-libs/kvazaar/kvazaar-9999.ebuild
+++ b/media-libs/kvazaar/kvazaar-9999.ebuild
@@ -11,7 +11,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then
EGIT_REPO_URI="https://github.com/ultravideo/kvazaar"
fi
-inherit multilib multilib-minimal ${SCM}
+inherit multilib multilib-minimal toolchain-funcs ${SCM}
DESCRIPTION="An open-source HEVC encoder"
HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar"
@@ -39,6 +39,7 @@ src_prepare() {
}
multilib_src_compile() {
+ tc-export CC
emake \
ARCH="${CHOST%%-*}" \
$(usex cpu_flags_x86_avx2 "" "KVZ_DISABLE_AVX2=true") \