aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ipopt.rb
blob: a98f41c367bdbc1e34444d16ce55da564732439f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Ipopt < Formula
  homepage 'https://projects.coin-or.org/Ipopt'
  url 'http://www.coin-or.org/download/source/Ipopt/Ipopt-3.10.0.tgz'
  sha1 '3dec7e71f93756865cc83275f7ddb22e1dc5edcc'

  depends_on 'pkg-config' => :build

  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