Files
haikuports/media-gfx/pngcrush/pngcrush-1.8.11.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

52 lines
1.3 KiB
Bash

SUMMARY="An optimizer for PNG files"
DESCRIPTION="Pngcrush is an optimizer for PNG (Portable Network Graphics) \
files. It can be run from a commandline in an MSDOS window, or from a UNIX or \
LINUX commandline. Its main purpose is to reduce the size of the PNG IDAT \
datastream by trying various compression levels and PNG filter methods. It \
also can be used to remove unwanted ancillary chunks, or to add certain chunks \
including gAMA, tRNS, iCCP, and textual chunks."
HOMEPAGE="http://pmt.sourceforge.net/pngcrush/"
COPYRIGHT="1998-2002, 2006-2017 Glenn Randers-Pehrson
2005 Greg Roelofs"
LICENSE="LibPNG"
REVISION="2"
SOURCE_URI="https://downloads.sf.net/pmt/pngcrush-$portVersion-nolib.tar.gz"
CHECKSUM_SHA256="df5a4fc7b9029bc6991d531c44ccce59a97a2137010416ad6910312bebce79b0"
SOURCE_DIR="pngcrush-$portVersion-nolib"
PATCHES="pngcrush-$portVersion.patchset"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
pngcrush = $portVersion compat >= 1.8
cmd:pngcrush = $portVersion compat >= 1.8
"
REQUIRES="
haiku
lib:libpng16
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libpng16
devel:libz
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
cmd:install
"
BUILD()
{
make LIBS="-L$libDir -lpng -lz"
}
INSTALL()
{
install -d $binDir $docDir
install -t $binDir -s pngcrush
install -t $docDir -m 444 LICENSE
}