From 4e4d12faf211ac9fdd08b61c81dc0c881000f50b Mon Sep 17 00:00:00 2001 From: brad Date: Sun, 26 Dec 1999 04:24:38 +0000 Subject: [PATCH] add pngcrush port; an optimizer for PNG files --- graphics/pngcrush/Makefile | 14 ++++++++++++++ graphics/pngcrush/files/Makefile | 13 +++++++++++++ graphics/pngcrush/files/md5 | 3 +++ graphics/pngcrush/pkg/COMMENT | 1 + graphics/pngcrush/pkg/DESCR | 6 ++++++ graphics/pngcrush/pkg/PLIST | 1 + 6 files changed, 38 insertions(+) create mode 100644 graphics/pngcrush/Makefile create mode 100644 graphics/pngcrush/files/Makefile create mode 100644 graphics/pngcrush/files/md5 create mode 100644 graphics/pngcrush/pkg/COMMENT create mode 100644 graphics/pngcrush/pkg/DESCR create mode 100644 graphics/pngcrush/pkg/PLIST diff --git a/graphics/pngcrush/Makefile b/graphics/pngcrush/Makefile new file mode 100644 index 00000000000..3634a8a4d43 --- /dev/null +++ b/graphics/pngcrush/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD: Makefile,v 1.1 1999/12/22 14:53:53 jedgar Exp $ + +DISTNAME= pngcrush-1.3.0 +CATEGORIES= graphics +MASTER_SITES= ftp://ftp.xnot.com/pmt/pub/pngcrush/src/ + +MAINTAINER= brad@openbsd.org + +post-extract: + @cp ${FILESDIR}/Makefile ${WRKSRC} + +.include + + diff --git a/graphics/pngcrush/files/Makefile b/graphics/pngcrush/files/Makefile new file mode 100644 index 00000000000..2a180995073 --- /dev/null +++ b/graphics/pngcrush/files/Makefile @@ -0,0 +1,13 @@ +PROG= pngcrush +SRCS= adler32.c crc32.c deflate.c gzio.c infblock.c infcodes.c \ + inffast.c inflate.c inftrees.c infutil.c png.c pngcrush.c \ + pngerror.c pngget.c pngmem.c pngpread.c pngread.c pngrio.c \ + pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c \ + pngwio.c pngwrite.c pngwtran.c pngwutil.c trees.c zutil.c + +BINDIR= ${PREFIX}/bin +CFLAGS+=-Wall +LDADD+= -lm +NOMAN= yes + +.include diff --git a/graphics/pngcrush/files/md5 b/graphics/pngcrush/files/md5 new file mode 100644 index 00000000000..1d5c3e81427 --- /dev/null +++ b/graphics/pngcrush/files/md5 @@ -0,0 +1,3 @@ +MD5 (pngcrush-1.3.0.tar.gz) = 2214cc7062b2020d0c8a2e4c06aa2fd1 +RMD160 (pngcrush-1.3.0.tar.gz) = 3f2f70707a940e371b0713ab005b4c165dfb8a45 +SHA1 (pngcrush-1.3.0.tar.gz) = 5522105c631ea56cb17a9484f2d57c7e8a6cc79b diff --git a/graphics/pngcrush/pkg/COMMENT b/graphics/pngcrush/pkg/COMMENT new file mode 100644 index 00000000000..c5fa4e72881 --- /dev/null +++ b/graphics/pngcrush/pkg/COMMENT @@ -0,0 +1 @@ +an optimizer for PNG files diff --git a/graphics/pngcrush/pkg/DESCR b/graphics/pngcrush/pkg/DESCR new file mode 100644 index 00000000000..3def2245855 --- /dev/null +++ b/graphics/pngcrush/pkg/DESCR @@ -0,0 +1,6 @@ +pngcrush reads in a PNG image, and writes it out again, with the +optimum filter_type and zlib_level. It uses brute force (trying +filter_type none, and libpng adaptive filtering, with compression +levels 3 and 9). It does the most time-consuming method last in case +it turns out to be the best. Optionally, it can remove unwanted +chunks or add gAMA and sRGB chunks. diff --git a/graphics/pngcrush/pkg/PLIST b/graphics/pngcrush/pkg/PLIST new file mode 100644 index 00000000000..a0e36080622 --- /dev/null +++ b/graphics/pngcrush/pkg/PLIST @@ -0,0 +1 @@ +bin/pngcrush