[93868] trunk/dports/x11/sunclock

jmr at macports.org jmr at macports.org
Fri Jun 1 11:09:44 PDT 2012


Revision: 93868
          https://trac.macports.org/changeset/93868
Author:   jmr at macports.org
Date:     2012-06-01 11:09:43 -0700 (Fri, 01 Jun 2012)
Log Message:
-----------
sunclock: fix build failure due to incorrect zlib usage

Modified Paths:
--------------
    trunk/dports/x11/sunclock/Portfile

Added Paths:
-----------
    trunk/dports/x11/sunclock/files/
    trunk/dports/x11/sunclock/files/gzFile.patch

Modified: trunk/dports/x11/sunclock/Portfile
===================================================================
--- trunk/dports/x11/sunclock/Portfile	2012-06-01 17:54:13 UTC (rev 93867)
+++ trunk/dports/x11/sunclock/Portfile	2012-06-01 18:09:43 UTC (rev 93868)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem       1.0
+
 name             sunclock
 version          3.50pre1
 revision         3
@@ -21,6 +22,8 @@
 checksums        md5 6e07964a99848018432825c5b3297cc6
 depends_lib      port:jpeg port:xpm port:zlib
 
+patchfiles       gzFile.patch
+
 pre-configure {
     reinplace "s|DESTDIR=/usr|DESTDIR=${prefix}|" "${worksrcpath}/Imakefile"
     reinplace "s|MANDIR=/X11R6|MANDIR=/share|" "${worksrcpath}/Imakefile"

Added: trunk/dports/x11/sunclock/files/gzFile.patch
===================================================================
--- trunk/dports/x11/sunclock/files/gzFile.patch	                        (rev 0)
+++ trunk/dports/x11/sunclock/files/gzFile.patch	2012-06-01 18:09:43 UTC (rev 93868)
@@ -0,0 +1,20 @@
+--- readvmf.c.orig	2001-08-12 00:03:18.000000000 +1000
++++ readvmf.c	2012-06-02 04:04:18.000000000 +1000
+@@ -334,7 +334,7 @@ pixmap_image()
+ char *
+ getdata(fd)
+ #ifdef ZLIB
+-gzFile * fd;
++gzFile fd;
+ #else
+ FILE *fd;
+ #endif
+@@ -426,7 +426,7 @@ struct Sundata * Context;
+   double theta, phi;
+   char *str;
+ #ifdef ZLIB
+-  gzFile * fd;
++  gzFile fd;
+ #else
+   FILE *fd;
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120601/82d0985a/attachment-0001.html>


More information about the macports-changes mailing list