aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-08-03 01:37:49 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-08-03 01:37:49 +0800
commit8ed66c22421b5b032517395a35b677dbcbfbc743 (patch)
treef6fb5605f3ff34d5daaf908766e41414a02f0a48 /graphics
parentc8468879167eed544571bc9d6d839a6581e33059 (diff)
downloadfreebsd-ports-gnome-8ed66c22421b5b032517395a35b677dbcbfbc743.tar.gz
freebsd-ports-gnome-8ed66c22421b5b032517395a35b677dbcbfbc743.tar.zst
freebsd-ports-gnome-8ed66c22421b5b032517395a35b677dbcbfbc743.zip
- Add LICENSE
- Cosmetic change - Update pkg-descr - Remove Author line - Take maintainership
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pngrewrite/Makefile12
-rw-r--r--graphics/pngrewrite/pkg-descr9
2 files changed, 12 insertions, 9 deletions
diff --git a/graphics/pngrewrite/Makefile b/graphics/pngrewrite/Makefile
index 4905932fff28..fcb3bc84a471 100644
--- a/graphics/pngrewrite/Makefile
+++ b/graphics/pngrewrite/Makefile
@@ -8,21 +8,25 @@ CATEGORIES= graphics
MASTER_SITES= http://entropymine.com/jason/pngrewrite/ \
http://mirror.roe.ch/dist/pngrewrite/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sunpoet@FreeBSD.org
COMMENT= PNG palette optimizer
+LICENSE= ZLIB
+
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lm -lpng -lz
USES= zip
+
NO_WRKSUBDIR= yes
PLIST_FILES= bin/pngrewrite
do-build:
- ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
- -o ${WRKSRC}/pngrewrite ${WRKSRC}/pngrewrite.c ${WRKSRC}/libpngrewrite.c -lpng -lz -lm
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/pngrewrite ${WRKSRC}/libpngrewrite.c ${WRKSRC}/pngrewrite.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pngrewrite ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/pngrewrite ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
diff --git a/graphics/pngrewrite/pkg-descr b/graphics/pngrewrite/pkg-descr
index f9d04718fdde..82066dd74f1a 100644
--- a/graphics/pngrewrite/pkg-descr
+++ b/graphics/pngrewrite/pkg-descr
@@ -1,7 +1,6 @@
-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.
+Pngrewrite is command-line utility that reduces the unnecessarily large palettes
+that some programs write into PNG files. It also optimizes transparency data,
+and reduces the bits-per-pixel if possible. Handy for post-processing PNG files
+before putting them on a web site.
-Author: Jason Summers <jason1@pobox.com>
WWW: http://entropymine.com/jason/pngrewrite/