# Template file for 'devil'
pkgname=devil
version=1.8.0
revision=6
build_wrksrc="DevIL"
build_style=cmake
hostmakedepends="pkg-config"
makedepends="lcms2-devel libpng-devel libmng-devel jasper-devel
 glew-devel libfreeglut-devel libopenexr-devel SDL_image-devel"
short_desc="Developer's Image Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1"
homepage="http://openil.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/openil/DevIL-${version}.tar.gz"
checksum=0075973ee7dd89f0507873e2580ac78336452d29d34a07134b208f44e2feb709
# The examples subpkg is gone
replaces="devil-examples<1.8.0"

devil-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmkdir usr/share/doc/devil
		cp -aR ${wrksrc}/DevIL-docs/*pdf ${PKGDESTDIR}/usr/share/doc/devil
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
