Index: Makefile =================================================================== RCS file: /home/pcvs/ports/graphics/optipng/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile 20 Aug 2003 14:03:18 -0000 1.2 +++ Makefile 24 Jul 2006 17:08:08 -0000 @@ -6,26 +6,30 @@ # PORTNAME= optipng -PORTVERSION= 0.4.3 +PORTVERSION= 0.5.3 CATEGORIES= graphics -MASTER_SITES= http://www.cs.toronto.edu/~cosmin/pngtech/optipng/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= freaky@aagh.net COMMENT= An optimizer for PNG files BUILD_WRKSRC= ${WRKSRC}/src -MAKEFILE= scripts/Makefile.gcc +MAKEFILE= scripts/gcc-syslib.mak +ALL_TARGET= ${PORTNAME} +PLIST_FILES= bin/optipng +MAN1= optipng.1 +PORTDOCS= CAVEAT.txt HISTORY.txt TODO.txt USAGE.txt \ + design.html features.html guide.html thanks.html do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/optipng ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/optipng ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/man/optipng.1 ${MAN1PREFIX}/man/man1/ post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - -.for i in CAVEAT DESIGN FEATURES HISTORY LICENSE README TODO USAGE index.html - ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${DOCSDIR} -.endfor +.ifndef NOPORTDOCS + ${INSTALL} -d ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/ .endif .include Index: distinfo =================================================================== RCS file: /home/pcvs/ports/graphics/optipng/distinfo,v retrieving revision 1.4 diff -u -r1.4 distinfo --- distinfo 22 Jan 2006 12:35:02 -0000 1.4 +++ distinfo 24 Jul 2006 17:08:08 -0000 @@ -1,3 +1,3 @@ -MD5 (optipng-0.4.3.tar.gz) = 3ed23ff9c204d7ffbd0fa6b3c53d830e -SHA256 (optipng-0.4.3.tar.gz) = 6950b5c506df4d57791870e5704c9766c8efe6e37f3073215d1c960e05d1dd8a -SIZE (optipng-0.4.3.tar.gz) = 555842 +MD5 (optipng-0.5.3.tar.gz) = a6f3234a47464ecc1f455b52f0769492 +SHA256 (optipng-0.5.3.tar.gz) = fa910c7dc8dbe29323494097255f034d374f8ef0e42ace3e3855408e014319e5 +SIZE (optipng-0.5.3.tar.gz) = 1090872 Index: pkg-descr =================================================================== RCS file: /home/pcvs/ports/graphics/optipng/pkg-descr,v retrieving revision 1.1 diff -u -r1.1 pkg-descr --- pkg-descr 23 Jul 2003 22:04:26 -0000 1.1 +++ pkg-descr 24 Jul 2006 17:08:08 -0000 @@ -1,7 +1,14 @@ -OptiPNG is a PNG optimizer that recompresses the image files to a -smaller size, without losing any information. +OptiPNG is a PNG optimizer that recompresses image files to a smaller +size, without losing any information. This program also converts +external formats (BMP, GIF, PNM; TIFF support is coming up) to optimized +PNG, and performs PNG integrity checks and corrections. -WWW: http://www.cs.toronto.edu/~cosmin/pngtech/optipng/ +The idea has been inspired from pngcrush, and is explained in detail in +the PNG-Tech article "A guide to PNG optimization". The implementation +is carried forward in OptiPNG, which offers a faster execution per +trial, and a wider search space. + +WWW: http://optipng.sourceforge.net/ - Thomas Hurst Index: pkg-plist =================================================================== RCS file: pkg-plist diff -N pkg-plist --- pkg-plist 13 Apr 2004 04:45:50 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ -bin/optipng -%%PORTDOCS%%%%DOCSDIR%%/CAVEAT -%%PORTDOCS%%%%DOCSDIR%%/DESIGN -%%PORTDOCS%%%%DOCSDIR%%/FEATURES -%%PORTDOCS%%%%DOCSDIR%%/HISTORY -%%PORTDOCS%%%%DOCSDIR%%/LICENSE -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%%%DOCSDIR%%/USAGE -%%PORTDOCS%%%%DOCSDIR%%/index.html -%%PORTDOCS%%@dirrm %%DOCSDIR%% Index: files/patch-lib-cos-zlib-Makefile.in =================================================================== RCS file: files/patch-lib-cos-zlib-Makefile.in diff -N files/patch-lib-cos-zlib-Makefile.in --- files/patch-lib-cos-zlib-Makefile.in 23 Jul 2003 22:04:26 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,40 +0,0 @@ ---- lib-cos/zlib/Makefile.in.orig Mon Mar 11 18:58:30 2002 -+++ lib-cos/zlib/Makefile.in Wed Jul 9 02:36:33 2003 -@@ -12,28 +12,28 @@ - # To install in $HOME instead of /usr/local, use: - # make install prefix=$HOME - --CC=cc -+CC?=cc - --CFLAGS=-O -+CFLAGS?=-O - #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 - #CFLAGS=-g -DDEBUG - #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ - # -Wstrict-prototypes -Wmissing-prototypes - --LDFLAGS=-L. -lz -+LDFLAGS=-L. -lz - LDSHARED=$(CC) --CPP=$(CC) -E -+CPP?=$(CC) -E - - VER=1.1.4 - LIBS=libz.a - SHAREDLIB=libz.so - --AR=ar rc --RANLIB=ranlib --TAR=tar --SHELL=/bin/sh -+AR+= rc -+RANLIB?=ranlib -+TAR?=tar -+SHELL?=/bin/sh - --prefix = /usr/local -+prefix ?= /usr/local - exec_prefix = ${prefix} - libdir = ${exec_prefix}/lib - includedir = ${prefix}/include Index: files/patch-src-scripts-Makefile.gcc =================================================================== RCS file: files/patch-src-scripts-Makefile.gcc diff -N files/patch-src-scripts-Makefile.gcc --- files/patch-src-scripts-Makefile.gcc 23 Jul 2003 22:04:26 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,43 +0,0 @@ ---- src/scripts/Makefile.gcc.orig Mon May 12 22:11:56 2003 -+++ src/scripts/Makefile.gcc Wed Jul 9 13:29:49 2003 -@@ -1,21 +1,25 @@ - # ** OptiPNG - # ** Quick and dirty makefile for GCC - -+CC?= gcc -+CFLAGS?= -pipe -O2 -g -+CP?= cp -+ - all: optipng - - optipng: optipng.o opngio.o opngreduc.o cbitset.o \ - wildargs.o libpng.a libz.a -- gcc -s -o optipng optipng.o opngio.o opngreduc.o cbitset.o \ -+ ${CC} ${CFLAGS} -o optipng optipng.o opngio.o opngreduc.o cbitset.o \ - wildargs.o libpng.a libz.a - - .c.o: #png.h opng.h -- gcc -c -O2 -I../lib-cos/zlib -I../lib-cos/libpng -Wall $*.c -+ ${CC} ${CFLAGS} -c -I../lib-cos/zlib -I../lib-cos/libpng -Wall $*.c - - cbitset.o: cbitset.c cbitset.h -- gcc -c -O2 -Wall $*.c -+ ${CC} ${CFLAGS} -c -Wall $*.c - - wildargs.o: xtra/wildargs.c -- gcc -c -O2 xtra/wildargs.c -+ ${CC} ${CFLAGS} -c xtra/wildargs.c - - libpng.a: ../lib-cos/libpng/libpng.a - cp ../lib-cos/libpng/libpng.a libpng.a -@@ -24,7 +28,8 @@ - cp ../lib-cos/zlib/libz.a libz.a - - ../lib-cos/libpng/libpng.a: ../lib-cos/zlib/libz.a -- cd ../lib-cos/libpng; ${MAKE} -f scripts/makefile.gcc; cd ../../src -+ cd ../lib-cos/libpng; ${MAKE} CFLAGS="-I../zlib ${CFLAGS}" -f scripts/makefile.freebsd libpng.a; cd ../../src - - ../lib-cos/zlib/libz.a: -- cd ../lib-cos/zlib; ./configure; ${MAKE}; cd ../../src -+# gcc 2.95 seems to break when using -O w/ x86. Force -O2 over -O0. -+ cd ../lib-cos/zlib; ./configure; ${MAKE} CFLAGS="${CFLAGS} -O2"; cd ../../src Index: files/patch-src__scripts__gcc-syslib.mak =================================================================== RCS file: files/patch-src__scripts__gcc-syslib.mak diff -N files/patch-src__scripts__gcc-syslib.mak --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src__scripts__gcc-syslib.mak 24 Jul 2006 17:08:08 -0000 @@ -0,0 +1,26 @@ +--- ./src/scripts/gcc-syslib.mak.orig Mon Jul 24 20:49:09 2006 ++++ ./src/scripts/gcc-syslib.mak Mon Jul 24 20:53:49 2006 +@@ -15,18 +15,16 @@ + # Usage: make -f scripts/gcc-syslib.mak + + +-prefix=/usr/local ++prefix=${PREFIX} + exec_prefix=${prefix} + bindir=${exec_prefix}/bin +-mandir=${prefix}/man +-man1dir=${mandir}/man1 ++man1dir=${MAN1PREFIX}/man/man1 + +-CC = gcc + LD = $(CC) +-CFLAGS = -O2 -Wall +-LDFLAGS = -s ++CFLAGS ?= -O2 -Wall ++LDFLAGS += -s + +-OPTIPNG = optipng$(EXE) ++OPTIPNG = optipng + PNGLIB = libpng.a + PNGXLIB = pngxtern.a + PNGMAK = scripts/makefile.gcc