mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
optipng: bump to 0.7.6, use env vars instead of patch, add TEST. (#765)
This commit is contained in:
53
media-gfx/optipng/optipng-0.7.6.recipe
Normal file
53
media-gfx/optipng/optipng-0.7.6.recipe
Normal file
@@ -0,0 +1,53 @@
|
||||
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-2016 Cosmin Truta"
|
||||
LICENSE="Zlib"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://downloads.sf.net/optipng/optipng-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="4870631fcbd3825605f00a168b8debf44ea1cda8ef98a73e5411eee97199be80"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
optipng = $portVersion
|
||||
cmd:optipng = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libpng >= 16
|
||||
lib:libz
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libpng >= 16
|
||||
devel:libz
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:ar
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
cmd:ranlib
|
||||
cmd:diff
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
LIBM= CFLAGS="-O2 -Wall" ./configure -bindir=$binDir -mandir=$manDir \
|
||||
-with-system-libpng \
|
||||
-with-system-zlib
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user