homebrew-core/Formula/valgrind.rb
Andrew Marshall 1be95df9ac Update Valgrind to 3.6
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-10-30 09:23:22 +01:00

25 lines
548 B
Ruby

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
depends_on 'boost'
skip_clean 'lib'
def install
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