# Template build file for 'gegl'.
pkgname=gegl
version=0.4.2
revision=2
build_style=gnu-configure
configure_args="--disable-docs --without-sdl --without-libopenraw
 --without-libavformat --without-graphviz --without-lua --without-libspiro
 --without-umfpack --with-exiv2 --without-libv4l --disable-introspection"
hostmakedepends="pkg-config intltool"
makedepends="libglib-devel libpng-devel babl-devel jasper-devel
 libjpeg-turbo-devel librsvg-devel gtk+-devel exiv2-devel json-glib-devel"
short_desc="Graph based image processing framework"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-3.0, LGPL-3.0"
homepage="https://www.gimp.org"
distfiles="https://download.gimp.org/pub/gegl/${version%.*}/gegl-${version}.tar.bz2"
checksum=6a358bc19d20b8ac1daf645cc8b53cdc2ea6f9c98a6036179a57045a26a07f8d

gegl-devel_package() {
	depends="json-glib-devel babl-devel gegl>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/libgegl-0.4.so"
	}
}
