aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/blitz.rb
blob: 46a2ac9c96beac948dce40e918c90d8e7758331c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'

class Blitz < Formula
  homepage 'http://oonumerics.org/blitz'
  url 'http://downloads.sourceforge.net/project/blitz/blitz/Blitz%2B%2B%200.9/blitz-0.9.tar.gz'
  md5 '031df2816c73e2d3bd6d667bbac19eca'

  head 'http://blitz.hg.sourceforge.net:8000/hgroot/blitz/blitz', :using => :hg

  if ARGV.build_head? and MacOS.xcode_version >= "4.3"
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    system "autoreconf", "-fi" if ARGV.build_head?

    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--infodir=#{info}",
                          "--enable-shared",
                          "--disable-doxygen",
                          "--disable-dot",
                          "--prefix=#{prefix}"
    system "make install"
  end
end