76c51054c0
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.
21 lines
528 B
Makefile
21 lines
528 B
Makefile
# $NetBSD: Makefile,v 1.5 2000/07/05 15:15:11 rh Exp $
|
|
#
|
|
|
|
DISTNAME= pngcrush-1.4.5
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://download.sourceforge.net/pmt/
|
|
|
|
MAINTAINER= rh@netbsd.org
|
|
HOMEPAGE= http://pmt.sourceforge.net/pngcrush/index.html
|
|
|
|
NO_CONFIGURE= YES
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -o pngcrush *.c -lm
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pngcrush ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pngcrush
|
|
${INSTALL_MAN} ${WRKSRC}/README.txt ${PREFIX}/share/pngcrush
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|