2010-05-08 02:13:11 +00:00
|
|
|
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'
|
|
|
|
|
|
|
|
def install
|
2010-05-08 22:37:34 +00:00
|
|
|
# HDF5 is required to create and access files
|
|
|
|
# in the NetCDF version 4 format.
|
2010-05-08 02:13:11 +00:00
|
|
|
hdf5 = Formula.factory('hdf5')
|
|
|
|
szip = Formula.factory('szip')
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-szip=#{szip.prefix}",
|
2010-05-08 22:37:34 +00:00
|
|
|
"--with-hdf5=#{hdf5.prefix}",
|
|
|
|
"--enable-netcdf4",
|
|
|
|
"--enable-shared"
|
2010-05-08 02:13:11 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|