# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit git-r3 DESCRIPTION="Fmtconv is a format-conversion plug-in for the Vapoursynth video processing engine." HOMEPAGE="https://github.com/vapoursynth/fmtconv" EGIT_REPO_URI="https://github.com/vapoursynth/fmtconv.git" LICENSE="WTFPL-2" SLOT="0" KEYWORDS="" IUSE="doc" RDEPEND="${PYTHON_DEPS} media-libs/vapoursynth" DEPEND="${RDEPEND}" src_compile() { # There REALLY is no build system... cd src && $(tc-getCC) ${CFLAGS} ${LDFLAGS} -shared -fPIC -o libfmtconv.so -I. \ main.cpp AvstpWrapper.cpp fmtc/*.cpp fstb/*.cpp vsutl/*.cpp } src_install() { dolib src/libfmtconv.so dodoc -r doc/* # Symlink to to vapoursynth-directory to enable plugin autoloading. dosym "${EPREFIX}"/usr/$(get_libdir)/libfmtconv.so "${EPREFIX}"/usr/$(get_libdir)/vapoursynth/libfmtconv.so }