summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/pngrewrite/Makefile31
-rw-r--r--graphics/pngrewrite/distinfo2
-rw-r--r--graphics/pngrewrite/pkg-descr7
4 files changed, 41 insertions, 0 deletions
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 <daniel@roe.ch>
+#
+# $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 <bsd.port.mk>
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 <jason1@pobox.com>
+WWW: http://entropymine.com/jason/pngrewrite/