# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=frei0r-plugins
pkgver=1.6.1
pkgrel=0
pkgdesc="A minimalistic plugin API for video sources and filters"
url=" "
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+"
depends=""
makedepends="opencv-dev gavl-dev file cairo-dev doxygen
	automake autoconf libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://files.dyne.org/frei0r/releases/frei0r-plugins-$pkgver.tar.gz
	facebl0r-opencv-3.4.3.patch
	"

prepare() {
	default_prepare
	cd "$builddir"
	touch README AUTHORS ChangeLog TODO
	autoreconf -i
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="843790389e6de83817d1c3744a91d3365864bb0c22cf6598707ccba5ec8933f6209434011cde1303e16edd89f6cde2f22aa1fb6eca3548d892a2c77332c44aac  frei0r-plugins-1.6.1.tar.gz
785ff3459f371620780f274b82702c8f6625d78fcd6000fddca0585e3aeaa0af57fd9d9444c4d0f1ca47e84b47b8a2fca4b86fa44ebe93487948eb8f4a193503  facebl0r-opencv-3.4.3.patch"