# Template build file for 'lcms2'.
pkgname=lcms2
version=2.4
revision=4
build_style=gnu-configure
configure_args="--disable-static"
makedepends="tiff-devel"
short_desc="Small-footprint color management engine, version 2"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.littlecms.com"
license="MIT"
distfiles="${SOURCEFORGE_SITE}/lcms/lcms2-$version.tar.gz"
checksum=2a514d10eff26901505c191a15c2588c751eb7fb86577118f6c235aff0be37e8
long_desc="
 LCMS2 is the Little Color Management System, a Color Matching Method
 (CMM) library which implements fast transforms between ICC profiles.

 Color management refers to techniques that ensure consistent color
 as images are transferred from scanners or cameras to monitors and
 printers."

lcms2-devel_package() {
	depends="tiff-devel lcms2>=${version}"
	short_desc+=" -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}

lcms2-tools_package() {
	short_desc+=" -- bundled tools"
	pkg_install() {
		vmove usr/bin
		vmove usr/share/man/man1
	}
}

lcms2_package() {
	pkg_install() {
		vmove usr
	}
}
