From e261609bf01517cfebb0e7a6ad89a88bf2899e7d Mon Sep 17 00:00:00 2001 From: pav Date: Wed, 11 Feb 2004 19:23:30 +0000 Subject: Add pngrewrite, a utility to reduce unnecessarily large palletes in PNG images. PR: ports/62614 Submitted by: Daniel Roethlisberger --- graphics/Makefile | 1 + graphics/pngrewrite/Makefile | 31 +++++++++++++++++++++++++++++++ graphics/pngrewrite/distinfo | 2 ++ graphics/pngrewrite/pkg-descr | 7 +++++++ 4 files changed, 41 insertions(+) create mode 100644 graphics/pngrewrite/Makefile create mode 100644 graphics/pngrewrite/distinfo create mode 100644 graphics/pngrewrite/pkg-descr (limited to 'graphics') diff --git a/graphics/Makefile b/graphics/Makefile index ece2bc146091..88e23df809a5 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -311,6 +311,7 @@ SUBDIR += pngcheck SUBDIR += pngcrush SUBDIR += pngquant + SUBDIR += pngrewrite SUBDIR += pngwriter SUBDIR += pornview SUBDIR += potrace diff --git a/graphics/pngrewrite/Makefile b/graphics/pngrewrite/Makefile new file mode 100644 index 000000000000..23885bff3925 --- /dev/null +++ b/graphics/pngrewrite/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: pngrewrite +# Date created: 10 February 2004 +# Whom: Daniel Roethlisberger +# +# $FreeBSD$ +# + +PORTNAME= pngrewrite +PORTVERSION= 1.2.1 +CATEGORIES= graphics +MASTER_SITES= http://entropymine.com/jason/pngrewrite/ \ + http://dragon.roe.ch/mirrors/distfiles/pngrewrite/ + +MAINTAINER= daniel@roe.ch +COMMENT= A PNG palette optimizer + +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png + +USE_ZIP= yes +NO_WRKSUBDIR= yes + +PLIST_FILES= bin/pngrewrite + +do-build: + ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \ + -o ${WRKSRC}/pngrewrite ${WRKSRC}/pngrewrite.c -lpng -lz -lm + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pngrewrite ${PREFIX}/bin + +.include diff --git a/graphics/pngrewrite/distinfo b/graphics/pngrewrite/distinfo new file mode 100644 index 000000000000..84eef52c1ed1 --- /dev/null +++ b/graphics/pngrewrite/distinfo @@ -0,0 +1,2 @@ +MD5 (pngrewrite-1.2.1.zip) = 62c52a2924a49a65b43bfd3231d2dc51 +SIZE (pngrewrite-1.2.1.zip) = 95519 diff --git a/graphics/pngrewrite/pkg-descr b/graphics/pngrewrite/pkg-descr new file mode 100644 index 000000000000..f9d04718fdde --- /dev/null +++ b/graphics/pngrewrite/pkg-descr @@ -0,0 +1,7 @@ +Pngrewrite is a utility that reduces unnecessarily large palettes +of PNG images. It also optimizes transparency settings, and reduces +the bits-per-pixel if possible. +Handy for post-processing images before putting them on a web site. + +Author: Jason Summers +WWW: http://entropymine.com/jason/pngrewrite/ -- cgit