aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/valgrind.rb
blob: 89a32d747ab0cfcc372a6a1cd89ccc0c2e0ec162 (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
require 'formula'

class Valgrind <Formula
  homepage 'http://www.valgrind.org/'

  url "http://valgrind.org/downloads/valgrind-3.6.0.tar.bz2"
  md5 "b289c5f4ab8e39741602445f1dd09b34"

  depends_on 'pkg-config' => :build

  skip_clean 'lib'

  def install
    fails_with_llvm "Undefined symbols when linking", :build => 2326

    system "./autogen.sh" if File.exists? "autogen.sh"

    args = ["--prefix=#{prefix}", "--mandir=#{man}"]
    if snow_leopard_64?
      args << "--enable-only64bit" << "--build=amd64-darwin"
    end

    system "./configure", *args
    system "make install"
  end
end