Files
haikuports/media-gfx/pngcrush/pngcrush-1.8.0.recipe
2016-02-02 17:23:38 +01:00

50 lines
1.2 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="baa7048351c341e3a0c4769db7093b3206d46aa66ca93ac039c896ace63563bf"
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
"
BUILD()
{
make LIBS="-L$libDir -lpng -lz"
}
INSTALL()
{
mkdir -p $binDir
cp -af pngcrush $binDir
}