On 07/18/10 15:40, Benoit Lecocq wrote:
Hi,

This diff updates pngcrush to the latest release 1.7.11.
Tested on amd64/sparc64.

Comments ? OK ?

I add a patch to use our zlib.
 Cheers
  Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/pngcrush/Makefile,v
retrieving revision 1.42
diff -u -p -r1.42 Makefile
--- Makefile    10 Apr 2010 04:01:59 -0000      1.42
+++ Makefile    19 Jul 2010 09:20:54 -0000
@@ -3,7 +3,7 @@
 
 COMMENT =              optimizer for PNG files
 
-DISTNAME =             pngcrush-1.7.10
+DISTNAME =             pngcrush-1.7.11
 CATEGORIES =           graphics
 
 HOMEPAGE =             http://pmt.sourceforge.net/pngcrush/
@@ -16,7 +16,7 @@ PERMIT_PACKAGE_FTP =  Yes
 PERMIT_DISTFILES_CDROM =Yes
 PERMIT_DISTFILES_FTP = Yes
 
-WANTLIB =              c m
+WANTLIB =              c m z
 
 MASTER_SITES =         ${MASTER_SITE_SOURCEFORGE:=pmt/}
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/pngcrush/distinfo,v
retrieving revision 1.17
diff -u -p -r1.17 distinfo
--- distinfo    10 Apr 2010 04:01:59 -0000      1.17
+++ distinfo    19 Jul 2010 09:20:54 -0000
@@ -1,5 +1,5 @@
-MD5 (pngcrush-1.7.10.tar.gz) = ywFGE4za9HSsJ3nTlCuO9Q==
-RMD160 (pngcrush-1.7.10.tar.gz) = TDh3L0Fn462u+7u6S65F8Ti01Nw=
-SHA1 (pngcrush-1.7.10.tar.gz) = sA8elvz27HZrobNFlVD8PY2FHjw=
-SHA256 (pngcrush-1.7.10.tar.gz) = GlKZREbS0QVHYzh25Z6NIi9JEjqi37wY7WXOYHIN90c=
-SIZE (pngcrush-1.7.10.tar.gz) = 345195
+MD5 (pngcrush-1.7.11.tar.gz) = hm3XkU+8KZnfzwviWIrUXQ==
+RMD160 (pngcrush-1.7.11.tar.gz) = 3eBJSsV+TereWV8dBxnA7DUm7hA=
+SHA1 (pngcrush-1.7.11.tar.gz) = dnu6r0IwWte7Xt9F3J6wVNi/cgM=
+SHA256 (pngcrush-1.7.11.tar.gz) = pJpHdu3UPnsRgVJ9NV+wAECEuOJ9RR4BO+gQj4jOovo=
+SIZE (pngcrush-1.7.11.tar.gz) = 343959
Index: patches/patch-Makefile
===================================================================
RCS file: patches/patch-Makefile
diff -N patches/patch-Makefile
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-Makefile      19 Jul 2010 09:20:54 -0000
@@ -0,0 +1,24 @@
+$OpenBSD$
+--- Makefile.orig      Mon Jul 19 11:15:42 2010
++++ Makefile   Mon Jul 19 11:16:58 2010
+@@ -30,15 +30,15 @@ E =
+ 
+ PNGCRUSH  = pngcrush
+ 
+-LIBS = -lm
++LIBS = -lm -lz
+ #LIBS = -L${ZLIB} -lz -lm
+ #LIBS = ${ZLIB}/libz.a -lm
+ 
+ # uncomment these 4 lines only if you are NOT using an external copy of zlib:
+-ZHDR = zlib.h
+-ZOBJS  = adler32$(O) compress$(O) crc32$(O) deflate$(O) \
+-       infback$(O) inffast$(O) inflate$(O) inftrees$(O) \
+-       trees$(O) uncompr$(O) zutil$(O)
++#ZHDR = zlib.h
++#ZOBJS  = adler32$(O) compress$(O) crc32$(O) deflate$(O) \
++#      infback$(O) inffast$(O) inflate$(O) inftrees$(O) \
++#      trees$(O) uncompr$(O) zutil$(O)
+ 
+ OBJS  = pngcrush$(O) png$(O) pngerror$(O) pngget$(O) pngmem$(O) \
+       pngpread$(O) pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) \

Reply via email to