[52992] trunk/dports/science/netcdf/Portfile
takeshi at macports.org
takeshi at macports.org
Sat Jun 27 03:37:01 PDT 2009
Revision: 52992
http://trac.macports.org/changeset/52992
Author: takeshi at macports.org
Date: 2009-06-27 03:36:59 -0700 (Sat, 27 Jun 2009)
Log Message:
-----------
netcdf: added openmpi and dap variants.
Modified Paths:
--------------
trunk/dports/science/netcdf/Portfile
Modified: trunk/dports/science/netcdf/Portfile
===================================================================
--- trunk/dports/science/netcdf/Portfile 2009-06-27 09:53:14 UTC (rev 52991)
+++ trunk/dports/science/netcdf/Portfile 2009-06-27 10:36:59 UTC (rev 52992)
@@ -4,7 +4,7 @@
name netcdf
version 4.0.1
-revision 1
+revision 2
maintainers nomaintainer
platforms darwin
categories science
@@ -31,23 +31,18 @@
sha1 96b361de72bcf68eaba42e7e5cf0f92c33d288e9 \
rmd160 ba74363bbc4c76fc1bbac578ba4c2af4739b4958
-
-
depends_lib port:szip \
- port:hdf5-18 \
- port:openmpi
+ port:hdf5-18
-configure.fc openmpif77
-configure.cc openmpicc
-configure.cxx openmpicxx
configure.cppflags "-DNDEBUG -Df2cFortran"
configure.cxxflags "-O2 -fno-common"
configure.cflags "-O2 -fno-common"
-configure.args \
- --enable-shared \
- --enable-netcdf-4 \
- --with-hdf5=${prefix} \
- --with-szlib=${prefix}
+configure.args --enable-shared \
+ --enable-netcdf-4 \
+ --enable-ncgen4 \
+ --disable-f77 \
+ --with-hdf5=${prefix} \
+ --with-szlib=${prefix}
test.run yes
test.target check
@@ -61,8 +56,20 @@
}
variant g95 description {Enable Fortran support with g95} {
- depends_lib port:g95
+ depends_lib-append port:g95
configure.args-delete --disable-f77
- configure.fc ${prefix}/bin/g95
+ configure.fc ${prefix}/bin/g95
configure.env-append FCFLAGS=-O2
}
+
+variant openmpi description {compile with openmpi} {
+ depends_lib-append port:openmpi
+ configure.fc openmpif77
+ configure.cc openmpicc
+ configure.cxx openmpicxx
+}
+
+variant dap description {enable dap} {
+ depends_lib-append port:curl
+ configure.args-append --enable-dap
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090627/70dcffcb/attachment.html>
More information about the macports-changes
mailing list