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

52 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2016-02-02 16:17:46 +00:00
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
2016-02-02 16:17:46 +00:00
2005 Greg Roelofs"
LICENSE="LibPNG"
2017-09-03 07:16:10 +00:00
REVISION="1"
SOURCE_URI="https://downloads.sf.net/pmt/pngcrush-$portVersion-nolib.tar.gz"
2017-09-03 07:16:10 +00:00
CHECKSUM_SHA256="fed0aaf5c098aa8c7f78c75365cd18d7341417326ecbdba547876b7b4f3df4be"
2016-09-25 01:01:41 +00:00
SOURCE_DIR="pngcrush-$portVersion-nolib"
2016-02-02 16:17:46 +00:00
PATCHES="pngcrush-$portVersion.patchset"
ARCHITECTURES="all"
2016-02-02 16:17:46 +00:00
PROVIDES="
pngcrush = $portVersion compat >= 1.8
cmd:pngcrush = $portVersion compat >= 1.8
"
REQUIRES="
haiku
lib:libpng16
lib:libz
"
BUILD_REQUIRES="
2016-09-25 01:01:41 +00:00
haiku_devel
devel:libpng16 >= 16.27.0
2016-02-02 16:17:46 +00:00
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:install
2018-08-09 07:04:20 +00:00
cmd:make
2016-02-02 16:17:46 +00:00
"
BUILD()
{
make LIBS="-L$libDir -lpng -lz"
}
INSTALL()
{
install -d $binDir $docDir
install -t $binDir -s pngcrush
install -t $docDir -m 444 LICENSE
2016-02-02 16:17:46 +00:00
}