# -*- 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 97590 2012-09-09 17:28:38Z ryandesign@macports.org $

PortSystem          1.0

name                CImg
version             1.5.1
categories          devel
platforms           darwin
maintainers         workisfun.ru:ivan
supported_archs     noarch
license             CeCILL-C CeCILL

description         C++ Template Image Processing Toolkit

long_description    Open source, C++ toolkit for image processing

homepage            http://cimg.sourceforge.net/
master_sites        sourceforge:project/cimg
use_zip             yes

checksums           rmd160  96d48c7496bbd4ba98aac35716ba5bd99eb59514 \
                    sha256  f0082fbd55e5462f26ee54554e9dc62e9fcfa143c0024dd401a1318789211260

use_configure       no

build {}

destroot {
    xinstall -m 644 ${worksrcpath}/CImg.h ${destroot}${prefix}/include
    
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        Licence_CeCILL-C_V1-en.txt \
        Licence_CeCILL_V2-en.txt \
        README.txt \
        ${docdir}
}

livecheck.regex     /CImg-(\[0-9.\]+)${extract.suffix}
