[116381] trunk/dports/science/netcdf-cxx/Portfile
sean at macports.org
sean at macports.org
Thu Jan 23 12:15:03 PST 2014
Revision: 116381
https://trac.macports.org/changeset/116381
Author: sean at macports.org
Date: 2014-01-23 12:15:03 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
netcdf-cxx: use mpi portgroup
Modified Paths:
--------------
trunk/dports/science/netcdf-cxx/Portfile
Modified: trunk/dports/science/netcdf-cxx/Portfile
===================================================================
--- trunk/dports/science/netcdf-cxx/Portfile 2014-01-23 20:15:00 UTC (rev 116380)
+++ trunk/dports/science/netcdf-cxx/Portfile 2014-01-23 20:15:03 UTC (rev 116381)
@@ -2,7 +2,13 @@
# $Id$
PortSystem 1.0
+PortGroup mpi 1.0
+compilers.choose cc cpp cxx
+mpi.setup
+
+mpi.enforce_variant hdf5-18
+
name netcdf-cxx
version 4.2
revision 4
@@ -31,16 +37,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
@@ -50,16 +46,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/3bff3cd3/attachment.html>
More information about the macports-changes
mailing list