NetCDF Hotfix for SZIP

Now that HDF5 actually uses the SZIP library, configure flags need to be passed
to NetCDF.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Charlie Sharpsteen 2011-04-01 16:10:43 -07:00 committed by Adam Vandenberg
parent bfa9f8d506
commit 5eef45e75e

View file

@ -17,6 +17,7 @@ class Netcdf < Formula
def install
ENV.fortran if fortran?
ENV.append 'LDFLAGS', '-lsz' # So configure finds szip during HDF5 tests
# HDF5 is required to create and access files in the version 4 format
hdf5 = Formula.factory 'hdf5'
@ -25,7 +26,8 @@ class Netcdf < Formula
"--prefix=#{prefix}",
"--with-hdf5=#{hdf5.prefix}",
"--enable-netcdf4",
"--enable-shared"]
"--enable-shared",
"--with-szlib=#{HOMEBREW_PREFIX}"]
args << "--disable-fortran" unless fortran?
system "./configure", *args