Files
haikuports/media-gfx/optipng/optipng-0.7.7.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

54 lines
1006 B
Bash

SUMMARY="A PNG optimizer, making PNG files smaller"
DESCRIPTION="OptiPNG is a PNG optimizer, recompressing PNG files so they \
become smaller, without losing any information. Additionally, OptiPNG can \
convert other image formats, such as BMP, GIF, PNM and TIFF, to PNG files."
HOMEPAGE="http://optipng.sourceforge.net/"
COPYRIGHT="2001-2017 Cosmin Truta"
LICENSE="Zlib"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/optipng/optipng-$portVersion.tar.gz"
CHECKSUM_SHA256="4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452"
ARCHITECTURES="all"
PROVIDES="
optipng = $portVersion
cmd:optipng = $portVersion
"
REQUIRES="
haiku
lib:libpng16
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libpng16
devel:libz
"
BUILD_PREREQUIRES="
cmd:ar
cmd:diff
cmd:gcc
cmd:make
cmd:ranlib
"
BUILD()
{
LIBM= CFLAGS="-O2 -Wall" ./configure -bindir=$binDir -mandir=$manDir \
-with-system-libpng \
-with-system-zlib
make
}
INSTALL()
{
make install
}
TEST()
{
make check
}