[53277] trunk/dports/science/netcdf/Portfile
takeshi at macports.org
takeshi at macports.org
Thu Jul 2 02:26:23 PDT 2009
Revision: 53277
http://trac.macports.org/changeset/53277
Author: takeshi at macports.org
Date: 2009-07-02 02:26:22 -0700 (Thu, 02 Jul 2009)
Log Message:
-----------
netcdf: added static and netcdf4 variants. set netcdf4 variants default.
Modified Paths:
--------------
trunk/dports/science/netcdf/Portfile
Modified: trunk/dports/science/netcdf/Portfile
===================================================================
--- trunk/dports/science/netcdf/Portfile 2009-07-02 09:22:39 UTC (rev 53276)
+++ trunk/dports/science/netcdf/Portfile 2009-07-02 09:26:22 UTC (rev 53277)
@@ -4,7 +4,7 @@
name netcdf
version 4.0.1
-revision 2
+revision 3
maintainers nomaintainer
platforms darwin
categories science
@@ -31,18 +31,11 @@
sha1 96b361de72bcf68eaba42e7e5cf0f92c33d288e9 \
rmd160 ba74363bbc4c76fc1bbac578ba4c2af4739b4958
-depends_lib port:szip \
- port:hdf5-18
-
configure.cppflags "-DNDEBUG -Df2cFortran"
configure.cxxflags "-O2 -fno-common"
configure.cflags "-O2 -fno-common"
configure.args --enable-shared \
- --enable-netcdf-4 \
- --enable-ncgen4 \
- --disable-f77 \
- --with-hdf5=${prefix} \
- --with-szlib=${prefix}
+ --disable-f77
test.run yes
test.target check
@@ -53,9 +46,19 @@
post-destroot {
file delete -force ${destroot}${prefix}/share/man/whatis.db
+# xinstall -m 755 -d ${destroot}${prefix}/share/${name}
}
-variant g95 description {Enable Fortran support with g95} {
+default_variants +netcdf4
+
+variant gcc43 description conflicts g95 description {Enable Fortran support with gfortran} {
+ depends_lib-append port:gcc43
+ configure.args-delete --disable-f77
+ configure.fc ${prefix}/bin/gfortran-mp-4.3
+ configure.env-append FCFLAGS=-O2
+}
+
+variant g95 description conflicts gcc43 description {Enable Fortran support with g95} {
depends_lib-append port:g95
configure.args-delete --disable-f77
configure.fc ${prefix}/bin/g95
@@ -73,3 +76,17 @@
depends_lib-append port:curl
configure.args-append --enable-dap
}
+
+variant netcdf4 description {compile with hdf5} {
+ configure.args-append --enable-netcdf-4 \
+ --enable-ncgen4 \
+ --with-hdf5=${prefix} \
+ --with-szlib=${prefix}
+ depends_lib-append port:szip \
+ port:hdf5-18
+}
+
+variant static description {build static libraries} {
+ configure.args-delete --enable-shared
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090702/19b37068/attachment-0001.html>
More information about the macports-changes
mailing list