mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
Convert/update pngcrush to working recipe
This commit is contained in:
56
media-gfx/pngcrush/pngcrush-1.7.67.recipe
Normal file
56
media-gfx/pngcrush/pngcrush-1.7.67.recipe
Normal file
@@ -0,0 +1,56 @@
|
||||
SUMMARY="Pngcrush is an optimizer for PNG (Portable Network Graphics) 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/1.7.67/pngcrush-1.7.67-nolib.tar.xz"
|
||||
CHECKSUM_MD5="682318b86be2e01056b8dba7b90dee01"
|
||||
REVISION="1"
|
||||
LICENSE="LibPNG"
|
||||
COPYRIGHT="1998-2009 Glenn Randers-Pehrson
|
||||
2005 Greg Roelofs"
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
SOURCE_DIR="${portVersionedName}-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
|
||||
"
|
||||
|
||||
PATCHES="pngcrush-1.7.67.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make LIBS="-L$libDir -lpng -lz"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
cp -af pngcrush $binDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user