From c0dad883c85460da30774e8331d86928a7152e40 Mon Sep 17 00:00:00 2001 From: odrling Date: Sat, 6 Jul 2019 13:22:37 +0200 Subject: [PATCH] vapoursynth-descale --- .../vapoursynth-descale-9999.ebuild | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 media-plugins/vapoursynth-descale/vapoursynth-descale-9999.ebuild diff --git a/media-plugins/vapoursynth-descale/vapoursynth-descale-9999.ebuild b/media-plugins/vapoursynth-descale/vapoursynth-descale-9999.ebuild new file mode 100644 index 0000000..e51014a --- /dev/null +++ b/media-plugins/vapoursynth-descale/vapoursynth-descale-9999.ebuild @@ -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} +}