summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-10-30 13:39:54 +0100
committerAlexis Ballier <aballier@gentoo.org>2015-10-30 13:40:16 +0100
commit793cfe55265a87c421c00665900c5d8e0c1b421d (patch)
tree9ce7d8c6320e33da12266e8a9b4b588c07adbf41 /media-libs/kvazaar
parentdev-lang/R: Clean old (diff)
downloadgentoo-793cfe55265a87c421c00665900c5d8e0c1b421d.tar.gz
gentoo-793cfe55265a87c421c00665900c5d8e0c1b421d.tar.bz2
gentoo-793cfe55265a87c421c00665900c5d8e0c1b421d.zip
media-libs/kvazaar: Initial import. Ebuild by me.
Package-Manager: portage-2.2.23
Diffstat (limited to 'media-libs/kvazaar')
-rw-r--r--media-libs/kvazaar/Manifest1
-rw-r--r--media-libs/kvazaar/kvazaar-0.7.1.ebuild62
-rw-r--r--media-libs/kvazaar/kvazaar-9999.ebuild62
-rw-r--r--media-libs/kvazaar/metadata.xml8
4 files changed, 133 insertions, 0 deletions
diff --git a/media-libs/kvazaar/Manifest b/media-libs/kvazaar/Manifest
new file mode 100644
index 000000000000..23e738ff2c02
--- /dev/null
+++ b/media-libs/kvazaar/Manifest
@@ -0,0 +1 @@
+DIST kvazaar-0.7.1.tar.gz 288339 SHA256 c3693f801f0e717b1dcab3494d3e18a1687861af1a2c33b8878b2f70bcf18164 SHA512 a7d0a68e4b898f7dbb4175ab8a005d88786f522e185c1814a36a48395d34398880fc18e6baeebe4fef0ea97829e937df2ec9f547e05a9a1b2fdb74e260390e2a WHIRLPOOL ad640f5cf4c8238c7fbda3d126e1d7d37b3619a3eb000737eabf75b464fbf37cbc1de11c643725fb8cfbbfe8aa21df12d2c7b7aed0df29f7d8774256e78818a0
diff --git a/media-libs/kvazaar/kvazaar-0.7.1.ebuild b/media-libs/kvazaar/kvazaar-0.7.1.ebuild
new file mode 100644
index 000000000000..50c477d2aec0
--- /dev/null
+++ b/media-libs/kvazaar/kvazaar-0.7.1.ebuild
@@ -0,0 +1,62 @@
+# 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 ${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() {
+ 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
new file mode 100644
index 000000000000..50c477d2aec0
--- /dev/null
+++ b/media-libs/kvazaar/kvazaar-9999.ebuild
@@ -0,0 +1,62 @@
+# 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 ${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() {
+ 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/metadata.xml b/media-libs/kvazaar/metadata.xml
new file mode 100644
index 000000000000..c572c7d9b478
--- /dev/null
+++ b/media-libs/kvazaar/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>video</herd>
+ <maintainer>
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>