# -*- 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
PortGroup           github 1.0

github.setup        GreycLab CImg 3.7.4 v.
revision            0
categories          devel graphics
platforms           any
maintainers         yandex.com:bstj openmaintainer
license             {CeCILL-C CeCILL}

description         C++ template image processing toolkit
long_description    Open-source C++ toolkit for image processing.
homepage            https://cimg.eu
use_zip             yes
distfiles           CImg_${version}.zip
checksums           rmd160  04d0b7250b99e27b8e0de3955a60a035f849d000 \
                    sha256  bced3f716ba36da32ec0cecadfbdfaa8640416e0955acd1154e4899aad9dd6f3 \
                    size    12836584
github.tarball_from archive
supported_archs     noarch

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}
}
