aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2010-06-10 18:35:44 -0700
committerAdam Vandenberg2010-06-10 19:31:36 -0700
commit658f338ef94b1b561d651d2c931ab1ad7e8a8cf4 (patch)
treef752a12d7ba7efe211a4a179b7ac02f94c3fa1f5 /Library
parentdd90bc39a09cbb472939735f2681e8701f327af8 (diff)
downloadhomebrew-658f338ef94b1b561d651d2c931ab1ad7e8a8cf4.tar.bz2
Removed Fortran from NetCDF build
Fortran support has been explicitly disabled in the NetCDF brew pending the resolution of Issue 72. It is perfectly possible to use the brew to build a working Fortran NetCDF library if a Fortran compiler is present. However, configure may fail on 64 bit architectures as Homebrew does not set the FCFLAGS and FFLAGS environment variables to be compatiable with those set for CFLAGS. The best resolution of this issue is formal support for a Fortran compiler. A non-existant configure argument related to Szip was removed. This dependency is satisfied by specifying the location of HDF5. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/netcdf.rb30
1 files changed, 28 insertions, 2 deletions
diff --git a/Library/Formula/netcdf.rb b/Library/Formula/netcdf.rb
index dcdbba227..7400c1682 100644
--- a/Library/Formula/netcdf.rb
+++ b/Library/Formula/netcdf.rb
@@ -11,14 +11,40 @@ class Netcdf <Formula
# HDF5 is required to create and access files
# in the NetCDF version 4 format.
hdf5 = Formula.factory('hdf5')
- szip = Formula.factory('szip')
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
- "--with-szip=#{szip.prefix}",
"--with-hdf5=#{hdf5.prefix}",
"--enable-netcdf4",
+ "--disable-fortran", # Until issue 72 is resolved.
"--enable-shared"
system "make install"
end
+
+ def caveats
+ caveats = <<-EOS
+This brew of NetCDF does not include Fortran support.
+Fortran support will be added once the following issue
+is resolved:
+
+ http://github.com/mxcl/homebrew/issues/72
+
+If you have a Fortran compiler and would like to enable
+NetCDF support for Fortran compilers, execute:
+
+ brew edit netcdf
+
+Comment out the configure argument disabling Fortran
+and re-install. You may have to set FCFLAGS and FFLAGS
+to be consistant with Homebrew's use of C compilers in
+order for the brew to install correctly.
+
+Be aware that the Homebrew project may not be able to
+provide support for any issues that arise during
+compilation when Fortran is enabled until a Fortran
+compiler is officially supported.
+ EOS
+
+ end
+
end