1 class Valgrind < Formula
2 desc "Dynamic analysis tools (memory, debug, profiling)"
3 homepage "http://www.valgrind.org/"
6 url "https://sourceware.org/pub/valgrind/valgrind-3.14.0.tar.bz2"
7 mirror "https://dl.bintray.com/homebrew/mirror/valgrind-3.14.0.tar.bz2"
8 sha256 "037c11bfefd477cc6e9ebe8f193bb237fe397f7ce791b4a4ce3fa1c6a520baa5"
10 depends_on :maximum_macos => :high_sierra
14 sha256 "7869473ca1009d871dfcb496cc4d08e0318315d18721854ef42960b76e2ef64d" => :high_sierra
15 sha256 "5ac984d472025c7bbc081e3be88b31f709944cf924945ebe85427f00d7cca73e" => :sierra
19 url "https://github.com/sowson/valgrind.git"
21 depends_on "autoconf" => :build
22 depends_on "automake" => :build
23 depends_on "libtool" => :build
26 # Valgrind needs vcpreload_core-*-darwin.so to have execute permissions.
27 # See #2150 for more information.
28 skip_clean "lib/valgrind"
32 --disable-dependency-tracking
37 system "./autogen.sh" if build.head?
39 # Look for headers in the SDK on Xcode-only systems: https://bugs.kde.org/show_bug.cgi?id=295084
40 #unless MacOS::CLT.installed?
41 inreplace "coregrind/Makefile.in", %r{(\s)(?=/usr/include/mach/)}, '\1'+MacOS.sdk_path.to_s
44 system "./configure", *args
46 system "make", "install"
50 system "#{bin}/valgrind", "ls", "-l"