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:
parent
bfa9f8d506
commit
5eef45e75e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue