# -*- 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 pngcheck version 3.0.3 revision 0 categories graphics license MIT GPL-2 platforms darwin maintainers nomaintainer description validate and inspect PNG, JNG and MNG files long_description pngcheck 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 http://www.libpng.org/pub/png/apps/pngcheck.html master_sites http://www.libpng.org/pub/png/src/ checksums rmd160 c772a7e562c471c25a6150f857cddd89d8053f20 \ sha256 c36a4491634af751f7798ea421321642f9590faa032eccb0dd5fb4533609dee6 \ size 63766 depends_lib port:zlib variant universal {} use_configure no build.pre_args-append -f Makefile.unx build.args-append CC="${configure.cc} [get_canonical_archflags cc]" \ LD="${configure.cc} [get_canonical_archflags ld]" \ ZLIB="${configure.ldflags} -lz" \ ZINC="${configure.cppflags}" destroot { xinstall -m 755 -W ${worksrcpath} pngcheck pngsplit png-fix-IDAT-windowsize ${destroot}${prefix}/bin set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir} set man1dir ${prefix}/share/man/man1 xinstall -d ${destroot}${man1dir} xinstall -m 644 ${worksrcpath}/pngcheck.1 ${destroot}${man1dir} } livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)