SUMMARY="A minimalistic plugin API for video effects"
DESCRIPTION="Frei0r is a minimalistic plugin API for video effects.

The main emphasis is on simplicity for an API that will round up the most \
common video effects into simple filters, sources and mixers that can be \
controlled by parameters.

It's our hope that this way these simple effects can be shared between \
many applications, avoiding their reimplementation by different projects."
HOMEPAGE="https://frei0r.dyne.org/"
COPYRIGHT="2004-2019 Akito Iwakura, Albert Frisch, Brian Matherly, Burkhard Plaum, Carlo E. Prelz, Dan Dennedy, Denis Jaromil Roio, Filippo Giunchedi, Gabriel Finch, Georg Seidel, Hedde Bosman, IOhannes M. Zmölnig, Janne Liljeblad, Jean-Sebastien Senecal, Joshua M. Doe, Luca Bigliardi, Maksim Golovkin (Максим Головкин), Marko Cebokli, Martin Bayer, Mathieu Guindon, Phillip Promesberger, Richard Spindler, Samuel Mimram, Simon A. Eugster, Stefano Sabatini, Steinar H. Gunderson, Till Theato."
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://files.dyne.org/frei0r/frei0r-plugins-1.6.1.tar.gz"
CHECKSUM_SHA256="e0c24630961195d9bd65aa8d43732469e8248e8918faa942cfb881769d11515e"
SOURCE_DIR="frei0r-plugins-$portVersion"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	frei0r$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libcairo$secondaryArchSuffix
	#lib:libopencv_face$secondaryArchSuffix
	#lib:libopencv_highgui$secondaryArchSuffix
	"

PROVIDES_devel="
	frei0r${secondaryArchSuffix}_devel = $portVersion
	"

REQUIRES_devel="
	frei0r$secondaryArchSuffix == $portVersion base
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libcairo$secondaryArchSuffix
	#devel:libopencv_face$secondaryArchSuffix
	#devel:libopencv_highgui$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autom4te
	cmd:autoreconf
	cmd:awk
	cmd:find
	cmd:gcc$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	"

BUILD()
{
	#./autogen.sh
	runConfigure ./configure
	# TODO: fix configure.ac for docsdir
	make $jobArgs docsdir=$docDir
}

INSTALL()
{
	make install docsdir=$docDir

	fixPkgconfig

	packageEntries devel \
		$developDir
}
