aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nmap.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/nmap.rb b/Library/Formula/nmap.rb
index da4541e93..d7ca3187e 100644
--- a/Library/Formula/nmap.rb
+++ b/Library/Formula/nmap.rb
@@ -5,11 +5,21 @@ class Nmap <Formula
homepage 'http://nmap.org/5/'
md5 'a4df96e52cb52a1bbe76caace5f21388'
+ # namp needs newer version of openssl on Leopard
+ depends_on "openssl" if MACOS_VERSION < 10.6
+
def install
fails_with_llvm
ENV.deparallelize
- system "./configure", "--prefix=#{prefix}", "--without-zenmap"
+ args = ["--prefix=#{prefix}", "--without-zenmap"]
+
+ if MACOS_VERSION < 10.6
+ openssl = Formula.factory('openssl')
+ args << "--with-openssl=#{openssl.prefix}"
+ end
+
+ system "./configure", *args
system "make" # seperate steps required otherwise the build fails
system "make install"
end