Files
haikuports/media-gfx/pngcrush/pngcrush-1.7.92.recipe
2016-01-12 22:43:24 +00: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-2009 Glenn Randers-Pehrson
2005 Greg Roelofs"
LICENSE="LibPNG"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/pmt/files/pngcrush/$portVersion/pngcrush-$portVersion-nolib.tar.xz"
CHECKSUM_SHA256="c49b4b13c646029b6ead77ed60626be52c5fa61d74428cdebe0ca43d195e9c36"
SOURCE_DIR="pngcrush-${portVersion}-nolib"
PATCHES="pngcrush-$portVersion.patchset"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
pngcrush = $portVersion compat >= 1.7
cmd:pngcrush = $portVersion compat >= 1.7
"
REQUIRES="
haiku
lib:libpng16
lib:libz
"
BUILD_REQUIRES="
devel:libpng16
devel:libz
"
BUILD_PREREQUIRES="
haiku_devel
cmd:make
cmd:gcc
"
BUILD()
{
make LIBS="-L$libDir -lpng -lz"
}
INSTALL()
{
mkdir -p $binDir
cp -af pngcrush $binDir
}