0
0
Fork 0
haikuports/media-gfx/pngcrush/pngcrush-1.8.13.recipe

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="1"
SOURCE_URI="https://downloads.sf.net/pmt/pngcrush-$portVersion-nolib.tar.gz"
CHECKSUM_SHA256="fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be"
SOURCE_DIR="pngcrush-$portVersion-nolib"
PATCHES="pngcrush-$portVersion.patchset"
ARCHITECTURES="all"
PROVIDES="
pngcrush = $portVersion compat >= 1.8
cmd:pngcrush = $portVersion compat >= 1.8
"
REQUIRES="
haiku
lib:libpng16
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libpng16 >= 16.27.0
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:install
cmd:make
"
BUILD()
{
make LIBS="-L$libDir -lpng -lz"
}
INSTALL()
{
install -d $binDir $docDir
install -t $binDir -s pngcrush
install -t $docDir -m 444 LICENSE
}