55ae9bf28b
Improved reporting of invalid chunk names. Does not try to put non-printable characters in STDERR; displays hex numbers instead. Fixed include path for utime.h on MSVC (Louis McLaughlin). Eliminated "FAR" memory support (it was removed from libpng at version 1.6.0). Disabled the "-already_crushed" option which does not really work well.
26 lines
741 B
Makefile
26 lines
741 B
Makefile
# $NetBSD: Makefile,v 1.85 2015/06/15 09:03:31 adam Exp $
|
|
|
|
DISTNAME= pngcrush-1.7.85-nolib
|
|
PKGNAME= ${DISTNAME:C/-nolib//}
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pmt/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@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"
|