1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name pngcheck |
---|
7 | version 2.3.0 |
---|
8 | categories graphics |
---|
9 | license MIT GPL-2 |
---|
10 | platforms darwin |
---|
11 | maintainers vt.edu:jpo openmaintainer |
---|
12 | description validate and inspect PNG, JNG and MNG files |
---|
13 | long_description pngcheck verifies the integrity of PNG, JNG and MNG files \ |
---|
14 | (by checking the internal 32-bit CRCs [checksums] and \ |
---|
15 | decompressing the image data)\; it can optionally dump \ |
---|
16 | almost all of the chunk-level information in the image in \ |
---|
17 | human-readable form. For example, it can be used to print \ |
---|
18 | the basic statistics about an image (dimensions, bit \ |
---|
19 | depth, etc.)\; to list the color and transparency info in \ |
---|
20 | its palette (assuming it has one)\; or to extract the \ |
---|
21 | embedded text annotations. This is a command-line program \ |
---|
22 | with batch capabilities. |
---|
23 | homepage http://www.libpng.org/pub/png/apps/pngcheck.html |
---|
24 | master_sites sourceforge:project/png-mng/pngcheck/${version} |
---|
25 | |
---|
26 | checksums rmd160 6a132516eeaf787eefa4d02eaecb06834fe9d2be \ |
---|
27 | sha256 77f0a039ac64df55fbd06af6f872fdbad4f639d009bbb5cd5cbe4db25690f35f |
---|
28 | |
---|
29 | depends_lib port:zlib |
---|
30 | |
---|
31 | variant universal {} |
---|
32 | |
---|
33 | use_configure no |
---|
34 | |
---|
35 | build.pre_args-append -f Makefile.unx |
---|
36 | build.args-append CC="${configure.cc} [get_canonical_archflags]" \ |
---|
37 | LD="${configure.cc} [get_canonical_archflags ld]" \ |
---|
38 | ZLIB="-L${prefix}/lib -lz" \ |
---|
39 | ZINC="" |
---|
40 | |
---|
41 | destroot { |
---|
42 | xinstall -m 755 -W ${worksrcpath} pngcheck pngsplit png-fix-IDAT-windowsize ${destroot}${prefix}/bin |
---|
43 | |
---|
44 | set docdir ${prefix}/share/doc/${subport} |
---|
45 | xinstall -d ${destroot}${docdir} |
---|
46 | xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir} |
---|
47 | } |
---|
48 | |
---|
49 | livecheck.name png-mng |
---|
50 | livecheck.regex $name-(\\d+(?:\\.\\d+)*) |
---|