# Template file for 'libgdiplus'
pkgname=libgdiplus
version=6.0.5
revision=1
build_style=gnu-configure
configure_args="--with-cairo=system"
hostmakedepends="pkg-config automake libtool"
makedepends="tiff-devel cairo-devel giflib-devel glib-devel libexif-devel
 libpng-devel"
short_desc="Open Source Implementation of the GDI+ API"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="MIT"
homepage="http://www.mono-project.com/"
distfiles="https://github.com/mono/${pkgname}/archive/${version}.tar.gz"
checksum=1fd034f4b636214cc24e94c563cd10b3f3444d9f0660927b60e63fd4131d97fa

pre_configure() {
	autoreconf -fiv
}

post_install() {
	vlicense LICENSE
}

libgdiplus-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		# the .so symlink is needed at runtime
		vmove "usr/lib/*.a"
		vmove usr/lib/pkgconfig
	}
}
