summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-01-18 16:13:26 +0100
committerAlexis Ballier <aballier@gentoo.org>2016-01-18 16:13:34 +0100
commit7b4560e017ba5383287a0ce4623decf7c4033d80 (patch)
treefe5c8304254d470cae8bb2f2193d982268a890a4 /media-libs/kvazaar/kvazaar-9999.ebuild
parentnet-libs/jreen: add missing USE dependency (diff)
downloadgentoo-7b4560e017ba5383287a0ce4623decf7c4033d80.tar.gz
gentoo-7b4560e017ba5383287a0ce4623decf7c4033d80.tar.bz2
gentoo-7b4560e017ba5383287a0ce4623decf7c4033d80.zip
media-libs/kvazaar: update live ebuild and bump to 0.8.2
Package-Manager: portage-2.2.26 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'media-libs/kvazaar/kvazaar-9999.ebuild')
-rw-r--r--media-libs/kvazaar/kvazaar-9999.ebuild32
1 files changed, 10 insertions, 22 deletions
diff --git a/media-libs/kvazaar/kvazaar-9999.ebuild b/media-libs/kvazaar/kvazaar-9999.ebuild
index 425dd69fffc9..972f429e423d 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 toolchain-funcs ${SCM}
+inherit multilib autotools multilib-minimal toolchain-funcs ${SCM}
DESCRIPTION="An open-source HEVC encoder"
HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar"
@@ -22,12 +22,12 @@ if [ "${PV#9999}" = "${PV}" ] ; then
fi
LICENSE="LGPL-2.1"
-SLOT="0"
+# subslot = libkvazaar major
+SLOT="0/3"
IUSE="cpu_flags_x86_avx2 static-libs"
DEPEND=""
RDEPEND="${DEPEND}"
-S="${WORKDIR}/${P}/src"
ASM_DEP=">=dev-lang/yasm-1.2.0"
DEPEND="${DEPEND}
@@ -35,29 +35,17 @@ DEPEND="${DEPEND}
abi_x86_64? ( ${ASM_DEP} )"
src_prepare() {
- multilib_copy_sources
+ eautoreconf
}
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)
+ ECONF_SOURCE="${S}" \
+ econf \
+ --docdir "/usr/share/doc/${PF}" \
+ $(use_enable static-libs static) \
+ $(use_enable cpu_flags_x86_avx2 asm)
}
multilib_src_install_all() {
- dodoc "${WORKDIR}/${P}/README.md" "${WORKDIR}/${P}/CREDITS" "${WORKDIR}/${P}/doc/"*.txt
+ find "${ED}" -name '*.la' -delete
}