[110127] trunk/dports/gis/mapserver

ryandesign at macports.org ryandesign at macports.org
Mon Aug 26 13:27:17 PDT 2013


Revision: 110127
          https://trac.macports.org/changeset/110127
Author:   ryandesign at macports.org
Date:     2013-08-26 13:27:16 -0700 (Mon, 26 Aug 2013)
Log Message:
-----------
mapserver: fix gd version check (#40253) and revbump for gd2 @2.1.0

Modified Paths:
--------------
    trunk/dports/gis/mapserver/Portfile

Added Paths:
-----------
    trunk/dports/gis/mapserver/files/
    trunk/dports/gis/mapserver/files/patch-configure.diff

Modified: trunk/dports/gis/mapserver/Portfile
===================================================================
--- trunk/dports/gis/mapserver/Portfile	2013-08-26 19:55:20 UTC (rev 110126)
+++ trunk/dports/gis/mapserver/Portfile	2013-08-26 20:27:16 UTC (rev 110127)
@@ -5,6 +5,7 @@
 
 name                mapserver
 version             6.2.1
+revision            1
 maintainers         hbaspecto.com:jea openmaintainer
 categories          gis
 license             permissive
@@ -27,6 +28,9 @@
                     port:freetype \
                     port:giflib \
 
+# fix gd version check
+patchfiles-append   patch-configure.diff
+
 configure.args      --with-gd=${prefix} \
                     --with-png=${prefix} \
                     --with-zlib=${prefix} \

Added: trunk/dports/gis/mapserver/files/patch-configure.diff
===================================================================
--- trunk/dports/gis/mapserver/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/gis/mapserver/files/patch-configure.diff	2013-08-26 20:27:16 UTC (rev 110127)
@@ -0,0 +1,16 @@
+gd version checking code is wrong
+https://github.com/mapserver/mapserver/issues/4696
+--- configure.orig	2013-04-19 23:08:49.000000000 -0500
++++ configure	2013-07-10 21:32:55.000000000 -0500
+@@ -17134,8 +17107,9 @@
+       fi
+ 
+ 
+-
+-      if test $GDMAJOR -lt 2 -o $GDMINOR -lt 0 -o $GDREV -lt 28 ; then
++      GDVERSION_NUM=`expr $GDMAJOR \* 1000000 \+ $GDMINOR \* 1000 \+ $GDREV`
++      GDVERSION_REQ=`expr 2 \* 1000000 \+ 0 \* 1000 \+ 28`
++      if test $GDVERSION_NUM -lt $GDVERSION_REQ ; then
+          as_fn_error $? "GD version $GDVERSION too old. need at least 2.0.28" "$LINENO" 5
+       fi
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130826/ed10a1c0/attachment.html>


More information about the macports-changes mailing list