# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 64763 2010-03-15 16:31:33Z nox@macports.org $

PortSystem              1.0
PortGroup               muniversal 1.0

name                    lcms
version                 1.19
revision                2
categories              graphics
platforms               darwin
maintainers             nomaintainer
license                 MIT
use_parallel_build      yes

description             Little Color Management System, a color matching \
                        method library
long_description        LCMS is the Little Color Management System, a portable \
                        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.

homepage                http://www.littlecms.com/

master_sites            sourceforge:lcms \
                        ${homepage}

checksums           md5     8af94611baf20d9646c7c2c285859818 \
                    sha1    d5b075ccffc0068015f74f78e4bc39138bcfe2d4 \
                    rmd160  530615c061dccdcb64d75c6fab148dd565bb6c91

depends_lib             port:jpeg \
                        port:tiff \
                        port:zlib

test.run                yes
test.target             check

livecheck.type  regex
livecheck.url   http://www.littlecms.com/downloads.htm
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\]?)${extract.suffix}"
