# -*- 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

PortSystem          1.0

name                CImg
version             3.4.3
categories          devel
platforms           any
maintainers         yandex.com:bstj openmaintainer
supported_archs     noarch
license             {CeCILL-C CeCILL}

description         C++ Template Image Processing Toolkit

long_description    Open source, C++ toolkit for image processing

homepage            https://cimg.eu \
                    https://github.com/GreycLab/CImg
master_sites        https://cimg.eu/files/
use_zip             yes

distfiles           CImg_${version}.zip

checksums           rmd160  64339741623c9ff4206b60459a495c7df43d6bc3 \
                    sha256  60a73922f2c6bb5b570eeda511aed029b3c9f3d7a3295ecb10fad14e41373e91 \
                    size    4732095

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}
