Ticket #41545: Portfile

File Portfile, 2.1 KB (added by jpo@…, 10 years ago)

more improvements

Line 
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
4PortSystem          1.0
5
6name                pngcheck
7version             2.3.0
8categories          graphics
9license             MIT GPL-2
10platforms           darwin
11maintainers         vt.edu:jpo openmaintainer
12description         validate and inspect PNG, JNG and MNG files
13long_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.
23homepage            http://www.libpng.org/pub/png/apps/pngcheck.html
24master_sites        sourceforge:project/png-mng/pngcheck/${version}
25
26checksums           rmd160  6a132516eeaf787eefa4d02eaecb06834fe9d2be \
27                    sha256  77f0a039ac64df55fbd06af6f872fdbad4f639d009bbb5cd5cbe4db25690f35f
28
29depends_lib         port:zlib
30
31variant universal   {}
32
33use_configure       no
34
35build.pre_args-append   -f Makefile.unx
36build.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
41destroot {
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
49livecheck.name      png-mng
50livecheck.regex     $name-(\\d+(?:\\.\\d+)*)