pkgsrc/graphics/pngcrush/Makefile

27 lines
735 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.20 2005/06/16 06:57:58 jlam Exp $
#
DISTNAME= pngcrush-1.5.10
PKGREVISION= 1
CATEGORIES= graphics
2000-11-11 18:49:22 +01:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pmt/}
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
NO_CONFIGURE= YES
INSTALLATION_DIRS= bin
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -o pngcrush pngcrush.c \
-Wall -Wl,-R${PREFIX}/lib -L${PREFIX}/lib -lm -lz -lpng
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pngcrush ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/pngcrush
${INSTALL_MAN} ${WRKSRC}/README.txt ${PREFIX}/share/pngcrush
2004-04-24 02:51:09 +02:00
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"