# $Id: Portfile 48763 2009-03-28 15:04:54Z arthurk@macports.org $

PortSystem          1.0
name                pngcrush
version             1.6.15
categories          graphics
maintainers         nomaintainer
description         optimizer for PNG files
long_description \
   pngcrush reads in a PNG image, and writes it out again, with the optimum \
   filter_type and zlib_level.  It uses brute force (trying filter_type \
   none, and libpng adaptive filtering, with compression levels 3 and 9).  \
   It does the most time-consuming method last in case it turns out to be \
   the best. Optionally, it can remove unwanted chunks or add gAMA and sRGB \
   chunks.

platforms           darwin freebsd

homepage            http://pmt.sourceforge.net/pngcrush/
master_sites        sourceforge:pmt
use_bzip2           yes

checksums           md5     e1e48750d135430c608b6029bd78a26b \
                    sha1    663d1d65fa0aa17836d29c26e4723f412b0de19d \
                    rmd160  e35fc64a0365f2fc3e5400c20ad8bbff0d69e7f8

use_configure       no

build.args-append   CC="${configure.cc}" LD="${configure.cc}"

destroot {
   xinstall -m 755 -d ${destroot}${prefix}/bin
   xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}
