From e783e8bf0d9c475b967052120b4cb4d14f1d31ed Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 24 Apr 2013 17:11:43 +0200 Subject: libmatio: ensure build without hdf5 if not explicitly requested Closes #19408. Signed-off-by: Jack Nagel --- Library/Formula/libmatio.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/libmatio.rb b/Library/Formula/libmatio.rb index 7b1cb881e..72ca870de 100644 --- a/Library/Formula/libmatio.rb +++ b/Library/Formula/libmatio.rb @@ -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" -- cgit v1.2.3