Skip to content

Commit

Permalink
media-libs/kvazaar: Initial import. Ebuild by me.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.23
  • Loading branch information
aballier committed Oct 30, 2015
1 parent 820ffc6 commit 793cfe5
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 0 deletions.
1 change: 1 addition & 0 deletions media-libs/kvazaar/Manifest
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
62 changes: 62 additions & 0 deletions media-libs/kvazaar/kvazaar-0.7.1.ebuild
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
}
62 changes: 62 additions & 0 deletions media-libs/kvazaar/kvazaar-9999.ebuild
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
}
8 changes: 8 additions & 0 deletions media-libs/kvazaar/metadata.xml
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>

0 comments on commit 793cfe5

Please sign in to comment.