* Write proper copyright year for zlib, depending upon ZLIB_VERNUM Changes 1.7.27: * Increased row_buf malloc to row_bytes+64 instead of row_bytes+16, to match the size of big_row_buf in pngrutil.c (it is 48 in libpng14, 15, 16, and 64 in libpng10, 12. Otherwise there is a double-free crash when the row_buf is destroyed. Changes 1.7.26: * Increased the text_text buffer from 2048 to 10*2048 (Ralph Giles), and changed an incorrect test for keyword length "< 180" to "< 80". The text_text buffer was inadvertently reduced from 20480 to 2048 in pngcrush-1.7.9. * Added -DZ_SOLO to CFLAGS, needed to compile zlib-1.2.6. * Changed user limits to width and height max 500000, malloc max 2MB, cache max 500. * Added -nolimits option which sets the user limits to the default unlimited values.
28 lines
766 B
Makefile
28 lines
766 B
Makefile
# $NetBSD: Makefile,v 1.56 2012/05/25 08:01:33 adam Exp $
|
|
|
|
DISTNAME= pngcrush-1.7.28-nolib
|
|
PKGNAME= ${DISTNAME:C/-nolib//}
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pmt/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= rh@NetBSD.org
|
|
HOMEPAGE= http://pmt.sourceforge.net/pngcrush/index.html
|
|
COMMENT= Optimizer for PNG (Portable Network Graphics) files
|
|
LICENSE= zlib
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
NO_CONFIGURE= yes
|
|
INSTALLATION_DIRS= bin
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} -DPNG_USE_LOCAL_ARRAYS \
|
|
${CFLAGS} `libpng-config --cflags` -o pngcrush pngcrush.c \
|
|
${LDFLAGS} `libpng-config --ldflags` -lz
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pngcrush ${DESTDIR}${PREFIX}/bin
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|