2011-04-15 12:29:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ipopt < Formula
|
|
|
|
homepage 'https://projects.coin-or.org/Ipopt'
|
2012-07-26 16:24:51 +00:00
|
|
|
url 'http://www.coin-or.org/download/source/Ipopt/Ipopt-3.10.0.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3dec7e71f93756865cc83275f7ddb22e1dc5edcc'
|
2011-04-15 12:29:03 +00:00
|
|
|
|
2012-07-26 16:24:51 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2011-04-15 12:29:03 +00:00
|
|
|
def install
|
|
|
|
ENV.fortran
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
ENV.deparallelize # Needs a serialized install
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|