cfd9c425f7
* Check for NULL return from malloc(). * Undefine CLOCKS_PER_SECOND "1000" found in some version of MinGW. * Replaced most "atoi(argv[++i])" with "pngcrush_get_long" which does "BUMP_I; strtol(argv[i],ptr,10)" and added pngcrush_check_long macro to detect malformed or missing parameters (debian bug 716149). * Added global_things_have_changed=1 when reading -bkgd. * The "-bit_depth N" option did not work reliably and has been removed.
26 lines
731 B
Makefile
26 lines
731 B
Makefile
# $NetBSD: Makefile,v 1.77 2013/11/15 08:35:26 adam Exp $
|
|
|
|
DISTNAME= pngcrush-1.7.69-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
|
|
|
|
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"
|