1SUMMARY="An optimizer for PNG files" 2DESCRIPTION="Pngcrush is an optimizer for PNG (Portable Network Graphics) \ 3files. It can be run from a commandline in an MSDOS window, or from a UNIX or \ 4LINUX commandline. Its main purpose is to reduce the size of the PNG IDAT \ 5datastream by trying various compression levels and PNG filter methods. It \ 6also can be used to remove unwanted ancillary chunks, or to add certain chunks \ 7including gAMA, tRNS, iCCP, and textual chunks." 8HOMEPAGE="http://pmt.sourceforge.net/pngcrush/" 9COPYRIGHT="1998-2002, 2006-2017 Glenn Randers-Pehrson 10 2005 Greg Roelofs" 11LICENSE="LibPNG" 12REVISION="1" 13SOURCE_URI="https://downloads.sf.net/pmt/pngcrush-$portVersion-nolib.tar.gz" 14CHECKSUM_SHA256="fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be" 15SOURCE_DIR="pngcrush-$portVersion-nolib" 16PATCHES="pngcrush-$portVersion.patchset" 17 18ARCHITECTURES="all" 19 20PROVIDES=" 21 pngcrush = $portVersion compat >= 1.8 22 cmd:pngcrush = $portVersion compat >= 1.8 23 " 24REQUIRES=" 25 haiku 26 lib:libpng16 27 lib:libz 28 " 29 30BUILD_REQUIRES=" 31 haiku_devel 32 devel:libpng16 >= 16.27.0 33 devel:libz 34 " 35BUILD_PREREQUIRES=" 36 cmd:gcc 37 cmd:install 38 cmd:make 39 " 40 41BUILD() 42{ 43 make LIBS="-L$libDir -lpng -lz" 44} 45 46INSTALL() 47{ 48 install -d $binDir $docDir 49 install -t $binDir -s pngcrush 50 install -t $docDir -m 444 LICENSE 51} 52