Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated netcdf to version 4.1.1

- NetCDF brew updated to version 4.1.1.

- Now builds against HDF5 for interoperability.

- ENV.m32 removed and builds x86_64 native on Snow Leopard
  (tested on 10.6.3)
  • Loading branch information...
commit b4c2f73d81b38dbbda63d5e92ae2512008649cbc 1 parent 6f656c7
Charlie Sharpsteen Sharpie authored adamv committed
Showing with 21 additions and 0 deletions.
  1. +21 −0 Library/Formula/netcdf.rb
21 Library/Formula/netcdf.rb
View
@@ -0,0 +1,21 @@
+require 'formula'
+
+class Netcdf <Formula
+ url 'http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.1.1.tar.gz'
+ homepage 'http://www.unidata.ucar.edu/software/netcdf/'
+ md5 '79c5ff14c80d5e18dd8f1fceeae1c8e1'
+
+ depends_on 'hdf5'
+ depends_on 'szip'
+
+ def install
+ hdf5 = Formula.factory('hdf5')
+ szip = Formula.factory('szip')
+
+ system "./configure", "--prefix=#{prefix}",
+ "--disable-dependency-tracking",
+ "--with-szip=#{szip.prefix}",
+ "--with-hdf5=#{hdf5.prefix}"
+ system "make install"
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.