Added pngquant recipe (#909)

not supported by gcc2
This commit is contained in:
Winston Durand
2016-12-04 00:42:04 -08:00
committed by Adrien Destugues
parent ba3affc33a
commit a0584cde1b

View File

@@ -0,0 +1,53 @@
SUMMARY="A utility for lossy compression of PNG images"
DESCRIPTION="Pngquant converts 32-bit RGBA PNGs to 8-bit (or smaller) \
RGBA-palette PNGs, optionally using Floyd-Steinberg dithering.
The conversion reduces file sizes significantly (often as much as 70%) and \
preserves full alpha transparency. Generated images are compatible with all \
modern web browsers, and have better fallback in IE6 than 24-bit PNGs."
HOMEPAGE="https://pngquant.org/"
COPYRIGHT="2009-2016 by Kornel Lesiński"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/pornel/pngquant/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="071e1af157ed2044d68522f4a18c5d94c5b6cbd83827a08e1bdf0ec0649f9cc9"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
PROVIDES="
pngquant$secondaryArchSuffix = $portVersion
cmd:pngquant = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libpng16$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:awk
cmd:git
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure ./configure
make
}
INSTALL()
{
make install
mkdir -p $manDir
cp $prefix/share/man/man1/* $manDir
rm -rf $prefix/share
}