Files
haikuports/media-gfx/pngcrush/pngcrush-1.8.5.recipe
2016-08-24 06:20:01 +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-2002, 2006-2016 Glenn Randers-Pehrson
2005 Greg Roelofs"
LICENSE="LibPNG"
REVISION="1"
SOURCE_URI="http://downloads.sf.net/pmt/pngcrush-$portVersion-nolib.tar.xz"
CHECKSUM_SHA256="1f843d836de8ef90b99b0a9e3e37f4ff4776278b5605293d5644b6efd537d934"
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="
devel:libpng16
devel:libz
"
BUILD_PREREQUIRES="
haiku_devel
cmd:make
cmd:gcc
cmd:install
"
BUILD()
{
make LIBS="-L$libDir -lpng -lz"
}
INSTALL()
{
install -d -m 755 $binDir $docDir
install -t $binDir -c -m 555 -s pngcrush
install -t $docDir -c -m 444 LICENSE
}