diff options
| author | Houtan Bastani | 2012-11-14 15:33:29 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-30 11:10:42 -0800 |
| commit | 76b96fa2dc0262fc8cdc149a1fecc01db1e0f9f2 (patch) | |
| tree | 0fb2c120f711c155ff869e95cbbe144e9aff79ff | |
| parent | f385713b6042b2393828b8f0c847934c5fd67e38 (diff) | |
| download | homebrew-76b96fa2dc0262fc8cdc149a1fecc01db1e0f9f2.tar.bz2 | |
Slicot: algorithms for systems and control theory
The subroutine library SLICOT provides Fortran 77 implementations of
numerical algorithms for computations in systems and control theory. Based on
numerical linear algebra routines from BLAS and LAPACK libraries, SLICOT
provides methods for the design and analysis of control systems.
Closes #16059.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/slicot.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/slicot.rb b/Library/Formula/slicot.rb new file mode 100644 index 000000000..9e2be215a --- /dev/null +++ b/Library/Formula/slicot.rb @@ -0,0 +1,32 @@ +require 'formula' + +class Slicot < Formula + homepage 'http://www.slicot.org' + url 'http://ftp.de.debian.org/debian/pool/main/s/slicot/slicot_5.0+20101122.orig.tar.gz' + version '5.0+20101122' + sha1 'ec240abbf6d3d60da3a7dc21d22104abdfd86bd8' + + option 'with-default-integer-8', 'Build with 8-byte-wide integer type' + + def install + ENV.fortran + + args = [ + "FORTRAN=#{ENV['FC']}", + "LOADER=#{ENV['FC']}", + "LAPACKLIB='-framework Accelerate'", + ] + + slicotlibname = "libslicot_pic.a" + system "make", "lib", "OPTS=-fPIC", "SLICOTLIB=../#{slicotlibname}", *args + lib.install "#{slicotlibname}" + system "make", "clean" + + if build.include? 'with-default-integer-8' + slicotlibname = "libslicot64_pic.a" + system "make", "lib", "OPTS=-fPIC -fdefault-integer-8", "SLICOTLIB=../#{slicotlibname}", *args + lib.install "#{slicotlibname}" + system "make", "clean" + end + end +end |
