libmatio: ensure build without hdf5 if not explicitly requested

Closes Homebrew/homebrew#19408.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Houtan Bastani 2013-04-24 17:11:43 +02:00 committed by Jack Nagel
parent f78305bcaa
commit 42a444aab0
1 changed files with 6 additions and 1 deletions

View File

@ -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"