[108385] trunk/dports/gis/gdal/Portfile

vince at macports.org vince at macports.org
Mon Jul 22 03:08:04 PDT 2013


Revision: 108385
          https://trac.macports.org/changeset/108385
Author:   vince at macports.org
Date:     2013-07-22 03:08:03 -0700 (Mon, 22 Jul 2013)
Log Message:
-----------
Fix a bug whereby -lsqlite3 is not included in the library list even when the sqlite3 variant is selected.
Add a +perf variant to optimize code

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

Modified: trunk/dports/gis/gdal/Portfile
===================================================================
--- trunk/dports/gis/gdal/Portfile	2013-07-22 09:52:36 UTC (rev 108384)
+++ trunk/dports/gis/gdal/Portfile	2013-07-22 10:08:03 UTC (rev 108385)
@@ -167,7 +167,7 @@
 
 variant openjpeg conflicts jasper \
     description {Enable OpenJPEG JPEG-2000 format support} {
-    depends_lib-append      port:openjpeg15
+    depends_lib-append      port:openjpeg
     configure.args-delete   --without-openjpeg
     configure.args-append   --with-openjpeg=${prefix}
 }
@@ -282,6 +282,10 @@
     depends_lib-append      port:sqlite3
     configure.args-delete   --without-sqlite3
     configure.args-append   --with-sqlite3=${prefix}
+
+    post-configure {
+        reinplace -E "s|^LIBS(.*)\\\\$|LIBS\\1 -lsqlite3 \\\\|" ${worksrcpath}/GDALmake.opt
+    }
 }
 
 variant spatialite description {Enable SpartiaLite support} {
@@ -315,6 +319,13 @@
     configure.args-append   --with-macosx-framework
 }
 
+# Perf variant to optimize code
+variant perf description {Optimize for speed} {
+    configure.compiler      macports-clang-3.3
+    configure.cflags        -O3 -pipe -march=native
+    configure.cxxflags      -O3 -pipe -march=native
+}
+
 default_variants    +expat
 
 # Postconfigure hack to avoid read ${include} .h files before
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130722/8858e912/attachment.html>


More information about the macports-changes mailing list