# -*- 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
PortGroup           cmake 1.1

github.setup        pnggroup pngcheck 4.0.0 v
github.tarball_from archive
revision            0
categories          graphics
license             MIT GPL-2
maintainers         nomaintainer
description         Validate and inspect PNG, JNG and MNG files
long_description    ${name} verifies the integrity of PNG, JNG and MNG files \
                    (by checking the internal 32-bit CRCs [checksums] and \
                    decompressing the image data)\; it can optionally dump \
                    almost all of the chunk-level information in the image in \
                    human-readable form. For example, it can be used to print \
                    the basic statistics about an image (dimensions, bit \
                    depth, etc.)\; to list the color and transparency info in \
                    its palette (assuming it has one)\; or to extract the \
                    embedded text annotations. This is a command-line program \
                    with batch capabilities.
homepage            https://www.libpng.org/pub/png/apps/pngcheck.html

checksums           rmd160  260e47c8ead46211ab56a1238f00675b3e9dc466 \
                    sha256  ed13f49bc1205bdf7cd0fc208b6e0eef550da021d1631f7180f718a4db379398 \
                    size    69977

depends_lib-append  port:zlib

configure.args-append \
                    -DPNGCHECK_ENABLE_AUX_TOOLS=ON

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        README.md \
        CHANGELOG \
        gpl/COPYING \
        ${destroot}${prefix}/share/doc/${name}
}
