pkgsrc/graphics/pngcrush/Makefile

28 lines
746 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.32 2009/02/20 06:01:29 adam Exp $
DISTNAME= pngcrush-1.6.14-nolib
PKGNAME= pngcrush-1.6.14
CATEGORIES= graphics
2000-11-11 18:49:22 +01:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pmt/}
EXTRACT_SUFX= .tar.bz2
2003-07-17 23:41:05 +02:00
MAINTAINER= rh@NetBSD.org
Update pngcrush to 1.4.5 Changes are: * Added color-counting and palette-building capability * Added "-fix" option, for fixing bad CRC's and other correctable conditions. * Write sBIT.alpha=1 when adding an opaque alpha channel and sBIT is present. * Identify the erroneous 2615-byte sRGB monitor profile being written by Photoshop 5.5, which causes many apps to crash, and replace it with an sRGB chunk. * Added a check for input and output on different devices before rejecting the output file as being the same as the input file based on inode. * Added some UCITA language to the disclaimer. * Reduced scope of Try/Catch blocks to avoid nesting them, and removed returns from within the Try blocks, where they are not allowed. * Removed direct access to the png structure when possible * Removes extra IDAT chunks (such as found in some POV-ray PNGs) with a warning instead of bailing out. * Removed the old setjmp interface entirely. * RGB to Grayscale conversion is more accurate (15-bit instead of 8-bit) and now uses only integer arithmetic. * Changed "Compressed" to "Uncompressed" in help for -itxt. * Stifled some compiler warnings * Add test on stat_buf.st_size to verify fpin==fpout, because stat in MSVC++6.0 standard version returns stat_buf.st_ino=0 for all files * Revised pngcrush.h to make it easier to control PNG_ZBUF_SIZE and PNG_NO_FLOATING_POINT_SUPPORTED from a makefile. * Restored ability to enter "replace_gamma" value as a float even when floating point arithmetic is not enabled. * Enabled removing tEXt, zTXt, or iTXt chunks by chunk type * Removed definition of TOO_FAR from pngcrush.h * Uses new libpng error handler; if a file has errors, pngcrush now will continue on and compress the remaining files instead of bailing out.
2000-07-05 17:15:11 +02:00
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
2004-04-24 02:51:09 +02:00
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"