[87359] trunk/dports/gis/qgis/Portfile

jmr at macports.org jmr at macports.org
Thu Nov 17 22:51:35 PST 2011


Revision: 87359
          http://trac.macports.org/changeset/87359
Author:   jmr at macports.org
Date:     2011-11-17 22:51:30 -0800 (Thu, 17 Nov 2011)
Log Message:
-----------
qgis: fix parse failure by deferring check for postgresql

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

Modified: trunk/dports/gis/qgis/Portfile
===================================================================
--- trunk/dports/gis/qgis/Portfile	2011-11-18 04:04:28 UTC (rev 87358)
+++ trunk/dports/gis/qgis/Portfile	2011-11-18 06:51:30 UTC (rev 87359)
@@ -106,12 +106,13 @@
 variant postgis				description "Build postgis support" {
 	
 	depends_lib-append		port:postgis
-	
-	# Always choose latest installed postgresql version
 
-	set	PGSQL_DIR			\
-			[lindex [lsort -dec [glob -d ${prefix}/lib postgresql*]] 0]
-	configure.args-append	"-DPOSTGRES_CONFIG=${PGSQL_DIR}/bin/pg_config"
+    pre-configure{
+        # Always choose latest installed postgresql version
+        set	PGSQL_DIR			\
+                [lindex [lsort -dec [glob -d ${prefix}/lib postgresql*]] 0]
+        configure.args-append	"-DPOSTGRES_CONFIG=${PGSQL_DIR}/bin/pg_config"
+	}
 }
 
 variant	grass				description "Build the grass (6.4) plugin" {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111117/20fda772/attachment.html>


More information about the macports-changes mailing list