# $Id: Portfile,v 1.14 2006/07/16 12:24:35 mww Exp $

PortSystem 1.0
name			pngcrush	
version			1.6.4
categories      graphics	
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.
homepage	    http://pmt.sourceforge.net/pngcrush/
platforms	    darwin freebsd
maintainers	    michaelm@opendarwin.org
master_sites	sourceforge:pmt
checksums	    md5 bfff75606fa86b96c06b77cc1684ba36 \
                sha1 a6efa5b6081994449ffe9fe31cf8f6775a797f3a
use_bzip2		yes

use_configure	no

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

platform darwin 8 {
	build.args-append CC="/usr/bin/gcc-4.0 -DPNG_NO_ASSEMBLER_CODE"
}
