mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
committed by
Adrien Destugues
parent
ba3affc33a
commit
a0584cde1b
53
media-gfx/pngquant/pngquant-2.7.2.recipe
Normal file
53
media-gfx/pngquant/pngquant-2.7.2.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user