889df4cae7
Moved PNG_UINT_CHNK and some other defines from pngcrush.h to pngcrush.c Reject invalid color_type or bit_depth. Changes 1.6.6: Added dSIG support. Pngcrush will not rewrite an image containing a dSIG chunk immediately following the IHDR chunk, unless the dSIG is explicitly removed with "-rem dSIG" or explicitly kept with "-keep dSIG". In the latter case the saved dSIG chunks will become invalid if any changes are made to the datastream. Fixed bug in writing unknown chunks from the end_info_ptr. Changes 1.6.5: Discontinued adding a new gAMA chunk when writing sRGB chunk.
27 lines
744 B
Makefile
27 lines
744 B
Makefile
# $NetBSD: Makefile,v 1.28 2008/07/18 08:41:19 adam Exp $
|
|
|
|
DISTNAME= pngcrush-1.6.7-nolib
|
|
PKGNAME= pngcrush-1.6.7
|
|
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"
|