forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-libs/kvazaar: Initial import. Ebuild by me.
Package-Manager: portage-2.2.23
- Loading branch information
Showing
4 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST kvazaar-0.7.1.tar.gz 288339 SHA256 c3693f801f0e717b1dcab3494d3e18a1687861af1a2c33b8878b2f70bcf18164 SHA512 a7d0a68e4b898f7dbb4175ab8a005d88786f522e185c1814a36a48395d34398880fc18e6baeebe4fef0ea97829e937df2ec9f547e05a9a1b2fdb74e260390e2a WHIRLPOOL ad640f5cf4c8238c7fbda3d126e1d7d37b3619a3eb000737eabf75b464fbf37cbc1de11c643725fb8cfbbfe8aa21df12d2c7b7aed0df29f7d8774256e78818a0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>[email protected]</email> | ||
</maintainer> | ||
</pkgmetadata> |