diff --git a/media-gfx/pngcrush/pngcrush-1.7.77.recipe b/media-gfx/pngcrush/pngcrush-1.7.77.recipe new file mode 100644 index 000000000..fa0a188e7 --- /dev/null +++ b/media-gfx/pngcrush/pngcrush-1.7.77.recipe @@ -0,0 +1,55 @@ +SUMMARY="Pngcrush is 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/" +SRC_URI="http://sourceforge.net/projects/pmt/files/pngcrush/$portVersion/pngcrush-$portVersion-nolib.tar.xz" +CHECKSUM_SHA256="ca1de3b7bddabd6118c5f1212f16ab71e508de554ffbcca322239995cb110410" +REVISION="1" +LICENSE="LibPNG" +COPYRIGHT="1998-2009 Glenn Randers-Pehrson + 2005 Greg Roelofs" +ARCHITECTURES="x86 x86_gcc2 x86_64" + +#PATCHES="pngcrush-$portVersion.patchset" + +SOURCE_DIR="pngcrush-${portVersion}-nolib" + +PROVIDES=" + pngcrush = $portVersion compat >= 1.7 + cmd:pngcrush = $portVersion compat >= 1.7 + " + +REQUIRES=" + haiku >= $haikuVersion + lib:libpng + lib:libz + " + +BUILD_REQUIRES=" + devel:libpng + devel:libz + " + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:make + cmd:gcc + " + +BUILD() +{ + make LIBS="-L$libDir -lpng -lz" +} + +INSTALL() +{ + mkdir -p $binDir + cp -af pngcrush $binDir +} +