ece9ef7294
A C library that can be used to write (or read) .mat files, which, in turn, can be read (or have been written) by Matlab. Closes Homebrew/homebrew#14005. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
24 lines
640 B
Ruby
24 lines
640 B
Ruby
require 'formula'
|
|
|
|
class Libmatio < Formula
|
|
homepage 'http://matio.sourceforge.net'
|
|
url 'http://downloads.sourceforge.net/project/matio/matio/1.5.0/matio-1.5.0.tar.bz2'
|
|
sha1 'b2e4f5524a9d7ce1fb268a67bb5b1a7427d047d4'
|
|
|
|
option 'with-hdf5', 'Enable support for newer MAT files that use the HDF5-format'
|
|
|
|
depends_on 'hdf5' if build.include? 'with-hdf5'
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--with-zlib=/usr
|
|
--enable-extended-sparse=yes
|
|
]
|
|
args << "--with-hdf5=#{HOMEBREW_PREFIX}" if build.include? 'with-hdf5'
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|