[116382] trunk/dports/science/netcdf-cxx4/Portfile

sean at macports.org sean at macports.org
Thu Jan 23 12:15:09 PST 2014


Revision: 116382
          https://trac.macports.org/changeset/116382
Author:   sean at macports.org
Date:     2014-01-23 12:15:09 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
netcdf-cxx4: use mpi portgroup

Modified Paths:
--------------
    trunk/dports/science/netcdf-cxx4/Portfile

Modified: trunk/dports/science/netcdf-cxx4/Portfile
===================================================================
--- trunk/dports/science/netcdf-cxx4/Portfile	2014-01-23 20:15:03 UTC (rev 116381)
+++ trunk/dports/science/netcdf-cxx4/Portfile	2014-01-23 20:15:09 UTC (rev 116382)
@@ -3,7 +3,13 @@
 
 PortSystem                  1.0
 PortGroup                   github 1.0
+PortGroup                   mpi 1.0
 
+compilers.choose            cc cpp cxx
+mpi.setup
+
+mpi.enforce_variant         hdf5-18
+
 github.setup                Unidata netcdf-cxx4 4.2.1 v
 revision                    1
 distname                    ${name}-${version}
@@ -26,16 +32,6 @@
 
 depends_lib         port:netcdf
 
-pre-configure {
-    if {[variant_isset openmpi]} {
-        set hdf5cc [exec grep "C Compiler" ${prefix}/lib/libhdf5.settings | awk {BEGIN{FS="/"}{print $NF}}]
-        if {${hdf5cc}!="openmpicc"} {
-            ui_error "Install hdf5-18 +openmpi"
-            return -code error "hdf5-18 +openmpi not installed"
-        }
-    }
-}
-
 configure.cppflags-append   -DNDEBUG
 configure.cxxflags-append   -fno-common
 configure.cflags-append     -fno-common
@@ -45,16 +41,4 @@
 
 destroot.destdir            prefix=${destroot}${prefix}
 
-variant openmpi conflicts mpich description {compile with openmpi} {
-    depends_lib-append      port:openmpi
-    configure.cc            openmpicc
-    configure.cxx           openmpicxx
-}
-
-variant mpich conflicts openmpi description {compile with mpich} {
-    depends_lib-append      path:bin/mpicc-mp:mpich-default
-    configure.cc            mpicc-mp
-    configure.cxx           mpicxx-mp
-}
-
 variant mpich2 requires mpich description {Legacy compatibility variant} {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/4324898f/attachment.html>


More information about the macports-changes mailing list