aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorHoutan Bastani2012-08-06 15:54:44 +0200
committerAdam Vandenberg2012-09-07 09:20:13 -0700
commita27824e5012f2bb23f8091e716c1a14f123aa995 (patch)
tree9476b9819f6dbfbc1acd7e128cd3d089a927133b /Library/Formula
parent6290212bf0176a0824df027b6889d61c2d9c9e53 (diff)
downloadhomebrew-a27824e5012f2bb23f8091e716c1a14f123aa995.tar.bz2
libmatio 1.5.0
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 #14005. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libmatio.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/libmatio.rb b/Library/Formula/libmatio.rb
new file mode 100644
index 000000000..7415ea4db
--- /dev/null
+++ b/Library/Formula/libmatio.rb
@@ -0,0 +1,24 @@
+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