* Added missing "(...)" in png_get_uint_32(). * Only compile png_get_uint_32(), etc., when PNG_LIBPNG_VER < 1.2.9 * Revised help info for "-zitxt". Changes 1.7.9: * Defined TOO_FAR == 32767 in pngcrush.h (instead of in deflate.c) * Revised the "nolib" Makefiles to remove reference to gzio.c and pnggccrd.c Changes 1.7.8: * Removed gzio.c Changes 1.7.7: * Updated bundled libpng to version 1.4.0. * Check the "-plte_len n" option for out-of-range value of n. * Changed local variable "write" to "z_write" in inffast.c (zlib-1.2.3.4) to avoid shadowed declaration warning. Changes 1.7.6: * Change some "if defined(X)" to "ifdef X" according to libpng coding style. * Added some defines to suppress pedantic warnings from libpng-1.2.41beta15 and later. A warning about deprecated access to png_ptr->zstream is otherwise unavoidable. When building the embedded libpng, a warning about png_default_error() returning is also otherwise unavoidable. * Write premultiplied alpha if output extension is .ppng and PNG_READ_PREMULTIPLIED_ALPHA_SUPPORTED is set (needs libpng-1.5.0). * Check the "-m method" option for out-of-range method value. Changes 1.7.4: * Use unmodified pngconf.h from libpng-1.2.41beta05 or later.
27 lines
746 B
Makefile
27 lines
746 B
Makefile
# $NetBSD: Makefile,v 1.39 2010/04/18 08:35:44 adam Exp $
|
|
|
|
DISTNAME= pngcrush-1.7.10-nolib
|
|
PKGNAME= pngcrush-1.7.10
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pmt/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= rh@NetBSD.org
|
|
HOMEPAGE= http://pmt.sourceforge.net/pngcrush/index.html
|
|
COMMENT= Optimizer for PNG (Portable Network Graphics) files
|
|
|
|
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"
|