libmatio: ensure build without hdf5 if not explicitly requested
Closes Homebrew/homebrew#19408. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
f78305bcaa
commit
42a444aab0
1 changed files with 6 additions and 1 deletions
|
@ -17,7 +17,12 @@ class Libmatio < Formula
|
|||
--with-zlib=/usr
|
||||
--enable-extended-sparse=yes
|
||||
]
|
||||
args << "--with-hdf5=#{HOMEBREW_PREFIX}" << "--enable-mat73=yes" if build.with? 'hdf5'
|
||||
|
||||
if build.with? 'hdf5'
|
||||
args << "--with-hdf5=#{HOMEBREW_PREFIX}" << "--enable-mat73=yes"
|
||||
else
|
||||
args << "--with-hdf5=no"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
|
|
Loading…
Reference in a new issue