vapoursynth-descale

This commit is contained in:
odrling 2019-07-06 13:22:37 +02:00
parent e30f0e3771
commit c0dad883c8

View file

@ -0,0 +1,40 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="VapourSynth plugin to undo upscaling"
HOMEPAGE="https://github.com/BluBb-mADe/vapoursynth-descale"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/BluBb-mADe/vapoursynth-descale.git"
KEYWORDS=""
else
inherit vcs-snapshot
SRC_URI="https://github.com/BluBb-mADe/${PN}/archive/r${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="WTFPL"
SLOT="0"
RDEPEND+="
media-libs/vapoursynth
"
DEPEND="${RDEPEND}"
LIBNAME="libdescale.so"
EXTRAFLAGS="-fPIC -shared -std=c++11"
src_compile(){
echo "$(tc-getCC) ${CFLAGS} ${EXTRAFLAGS} ${LDFLAGS} -o ${LIBNAME} descale.cpp"
$(tc-getCC) ${CFLAGS} ${EXTRAFLAGS} ${LDFLAGS} -o ${LIBNAME} descale.cpp || die "Build failed"
}
src_install(){
exeinto /usr/$(get_libdir)/vapoursynth/
doexe ${LIBNAME}
}