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

sean at macports.org sean at macports.org
Mon Jan 12 16:59:18 PST 2015


Revision: 131496
          https://trac.macports.org/changeset/131496
Author:   sean at macports.org
Date:     2015-01-12 16:59:18 -0800 (Mon, 12 Jan 2015)
Log Message:
-----------
gdal: fix compilation with mpi; fixes #46424

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

Modified: trunk/dports/gis/gdal/Portfile
===================================================================
--- trunk/dports/gis/gdal/Portfile	2015-01-13 00:59:16 UTC (rev 131495)
+++ trunk/dports/gis/gdal/Portfile	2015-01-13 00:59:18 UTC (rev 131496)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           mpi 1.0
 
 name                gdal
 version             1.11.1
-revision            2
+revision            3
 categories          gis
 license             MIT BSD
 platforms           darwin
@@ -30,6 +31,9 @@
 checksums           rmd160  9ebfbebeaff99a533bb4f4cf33b3f747e1ced9b4 \
                     sha256  f46b5944a8cabc8516673f231f466131cdfd2cdc6677dbee5d96ec7fc58a3340
 
+compilers.choose    cc cxx
+mpi.setup
+
 depends_lib-append  port:zlib \
                     port:libpng \
                     port:tiff \
@@ -193,12 +197,14 @@
     depends_lib-append      port:hdf5
     configure.args-delete   --without-hdf5
     configure.args-append   --with-hdf5=${prefix}
+    mpi.enforce_variant     hdf5
 }
 
 variant netcdf description {Enable NetCDF file format} {
     depends_lib-append      port:netcdf
     configure.args-delete   --without-netcdf
     configure.args-append   --with-netcdf=${prefix}
+    mpi.enforce_variant     netcdf
 }
 
 variant grib description {Enable GRIB (weather) file format} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150112/191c412c/attachment.html>


More information about the macports-changes mailing list