[57520] trunk/dports/science/netcdf/Portfile
takeshi at macports.org
takeshi at macports.org
Sat Sep 12 06:08:29 PDT 2009
Revision: 57520
http://trac.macports.org/changeset/57520
Author: takeshi at macports.org
Date: 2009-09-12 06:08:25 -0700 (Sat, 12 Sep 2009)
Log Message:
-----------
netcdf: fixed the underscoring problem for gcc43
Modified Paths:
--------------
trunk/dports/science/netcdf/Portfile
Modified: trunk/dports/science/netcdf/Portfile
===================================================================
--- trunk/dports/science/netcdf/Portfile 2009-09-12 12:49:44 UTC (rev 57519)
+++ trunk/dports/science/netcdf/Portfile 2009-09-12 13:08:25 UTC (rev 57520)
@@ -5,7 +5,7 @@
name netcdf
version 4.0.1
-revision 4
+revision 5
maintainers takeshi openmaintainer
platforms darwin
categories science
@@ -32,11 +32,12 @@
sha1 96b361de72bcf68eaba42e7e5cf0f92c33d288e9 \
rmd160 ba74363bbc4c76fc1bbac578ba4c2af4739b4958
-configure.cppflags-append "-DNDEBUG -Df2cFortran"
-configure.cxxflags-append "-O2 -fno-common"
-configure.cflags-append "-O2 -fno-common"
+configure.cppflags-append -DNDEBUG
+configure.cxxflags-append -fno-common
+configure.cflags-append -fno-common
configure.args --enable-shared \
- --disable-f77
+ --disable-fortran-compiler-check \
+ --disable-f77 --disable-f90
test.run yes
test.target check
@@ -50,16 +51,19 @@
variant gcc43 description conflicts g95 description {Enable Fortran support with gfortran} {
depends_lib-append port:gcc43
- configure.args-delete --disable-f77
+ configure.args-delete --disable-fortran-compiler-check --disable-f77 --disable-f90
+ configure.cppflags-append -DpgiFortran
configure.fc ${prefix}/bin/gfortran-mp-4.3
- configure.env-append FCFLAGS=-O2
+ configure.f77 ${configure.fc}
}
variant g95 description conflicts gcc43 description {Enable Fortran support with g95} {
depends_lib-append port:g95
- configure.args-delete --disable-f77
+ configure.args-delete --disable-fortran-compiler-check --disable-f77 --disable-f90
+ #-lfg95 required or the tests fail
+ configure.ldflags-append -lf95
configure.fc ${prefix}/bin/g95
- configure.env-append FCFLAGS=-O2
+ configure.f77 ${configure.fc}
}
variant openmpi description {compile with openmpi} {
@@ -86,3 +90,7 @@
variant static description {build static libraries} {
configure.args-delete --enable-shared
}
+
+variant docs description {install documentation} {
+ configure.args-append -enable-docs-install
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090912/b5cea9ff/attachment-0001.html>
More information about the macports-changes
mailing list