# -*- 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 55678 2009-08-17 01:59:36Z devans@macports.org $

PortSystem              1.0
PortGroup               muniversal 1.0

name                    lcms
version                 1.18a
categories              graphics
platforms               darwin
maintainers             nomaintainer
use_parallel_build      yes

description             Little Color Management System, a color matching \
                        method library
long_description        LCMS is the Little Color Management System, a Color \
                        Matching Method (CMM) library which implements fast \
                        transforms between ICC profiles. It is released under \
                        LGPL with source code and meant to be portable. \
                        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}

worksrcdir              ${name}-1.18

checksums               md5     f4abfe1c57ea3f633c2e9d034e74e3e8 \
                        sha1    657837dcc3992a0b0aa538c4b5a4ead82a7cbbb3 \
                        rmd160  98219a12e5a1d333e82d3c36de13ac88e10c366e

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

test.run                yes
test.target             check

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