mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
54 lines
1.3 KiB
Bash
54 lines
1.3 KiB
Bash
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
|
|
}
|