valgrind 3.8.0
* changes checksum to sha1 * comments on CFLAGS requirements for 10.8 * add download url for HEAD * add autotools as dependency for HEAD * runs autogen for HEAD build * changes references to MACOS_VERSION to MacOS.version Closes Homebrew/homebrew#14323. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
6744b4f576
commit
676a01e907
1 changed files with 17 additions and 3 deletions
|
@ -4,17 +4,30 @@ class Valgrind < Formula
|
|||
homepage 'http://www.valgrind.org/'
|
||||
|
||||
# Valgrind 3.7.0 drops support for OS X 10.5
|
||||
if MACOS_VERSION >= 10.6
|
||||
url 'http://valgrind.org/downloads/valgrind-3.7.0.tar.bz2'
|
||||
md5 'a855fda56edf05614f099dca316d1775'
|
||||
if MacOS.version >= 10.6
|
||||
url 'http://valgrind.org/downloads/valgrind-3.8.0.tar.bz2'
|
||||
sha1 '074b09e99b09634f1efa6f7f0f87c7a541fb9b0d'
|
||||
else
|
||||
url "http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2"
|
||||
md5 "2c3aa122498baecc9d69194057ca88f5"
|
||||
end
|
||||
|
||||
head 'svn://svn.valgrind.org/valgrind/trunk'
|
||||
|
||||
if build.head?
|
||||
depends_on :autoconf
|
||||
depends_on :automake
|
||||
depends_on :libtool
|
||||
end
|
||||
|
||||
skip_clean 'lib'
|
||||
|
||||
def install
|
||||
# avoid __bzero when building against OS X 10.8 sdk
|
||||
if MacOS.version >= 10.8
|
||||
ENV.remove_from_cflags "-mmacosx-version-min=#{MacOS.version}"
|
||||
end
|
||||
|
||||
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
|
||||
if MacOS.prefer_64_bit?
|
||||
args << "--enable-only64bit" << "--build=amd64-darwin"
|
||||
|
@ -22,6 +35,7 @@ class Valgrind < Formula
|
|||
args << "--enable-only32bit"
|
||||
end
|
||||
|
||||
system "./autogen.sh" if build.head?
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in a new issue