source: trunk/dports/graphics/pngcrush/Portfile

Last change on this file was 154227, checked in by snc@…, 9 months ago

pngcrush: update to 1.8.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
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: Portfile 154227 2016-10-24 20:27:36Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pngcrush
7version             1.8.9
8categories          graphics
9maintainers         snc openmaintainer
10license             zlib
11installs_libs       no
12
13description         optimizer for PNG files
14
15long_description    pngcrush reads in a PNG image, and writes it out again, \
16                    with the optimum filter_type and zlib_level. It uses \
17                    brute force (trying filter_type none, and libpng adaptive \
18                    filtering, with compression levels 3 and 9). It does the \
19                    most time-consuming method last in case it turns out to \
20                    be the best. Optionally, it can remove unwanted chunks or \
21                    add gAMA and sRGB chunks.
22
23platforms           darwin freebsd
24
25homepage            http://pmt.sourceforge.net/pngcrush/
26master_sites        sourceforge:project/pmt/pngcrush/${version}
27use_xz              yes
28
29checksums           rmd160  24b2109d62e88f8e0f683dde064298230a3120b5 \
30                    sha256  1ec0c657b744dd6cc3c166e7fba53556c9bad425a3169d08ba02def9e23302ae
31
32patchfiles          patch-Makefile.diff
33# attempt to use Makefile-nolib for external libpng, zlib
34# currently undefined libpng symbols
35#depends_lib-append  port:libpng port:zlib
36#patch {
37#    file delete ${worksrcpath}/Makefile
38#    reinplace s#/usr/local/include#${prefix}/include# ${worksrcpath}/Makefile-nolib
39#    reinplace s#/usr/local/lib#${prefix}/lib# ${worksrcpath}/Makefile-nolib
40#    file rename ${worksrcpath}/Makefile-nolib ${worksrcpath}/Makefile
41#}
42#configure.ldflags-append    -L${prefix}/lib
43
44use_configure       no
45
46variant universal {}
47
48build.args-append   CC="${configure.cc} [get_canonical_archflags cc]" \
49                    LD="${configure.cc} [get_canonical_archflags ld]"
50build.post_args     CFLAGS="-I. -O3 -funroll-loops -fomit-frame-pointer -Wall -Wshadow -DZ_SOLO -DPNGCRUSH_COUNT_COLORS"
51
52destroot {
53    xinstall -m 755 -d ${destroot}${prefix}/bin
54    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
55}
56
57livecheck.url       http://sourceforge.net/api/file/index/project-id/1689/rss?path=%2F${name}
58livecheck.regex     ${name}-(\\d+(\\.\\d+)+)\\.
Note: See TracBrowser for help on using the repository browser.