# Template file for 'libraw'
pkgname=libraw
version=0.14.7
revision=1
wrksrc=LibRaw-${version}
build_style=gnu-configure
configure_args="--disable-static"
makedepends="pkg-config lcms2-devel jasper-devel libgomp-devel"
short_desc="Raw image decoder library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2, CDDL, ${pkgname}"
homepage="http://www.libraw.org"
distfiles="${homepage}/data/LibRaw-${version}.tar.gz"
checksum=7307a607249043bb544f3ab3b3a999e1923d72fbed12e4e2239d172e522143da
long_desc="
 libraw is a library for reading RAW files obtained from digital photo
 cameras (CRW/CR2, NEF, RAF, DNG, and others)."

subpackages="${pkgname}-devel ${pkgname}-progs"

post_install() {
	vmkdir usr/share/licenses
	rm -f ${DESTDIR}/usr/share/doc/libraw/Changelog.txt
	mv ${DESTDIR}/usr/share/doc/libraw ${DESTDIR}/usr/share/licenses
}
