From e071076c215450c8a3d8cc35ca2a15ec3dbd73a6 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 23 Aug 2013 12:36:25 -0500 Subject: openssl: run "make depend" to recompute header dependencies Fixes #21895. --- Library/Formula/openssl.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb index 909078918..a6fd64824 100644 --- a/Library/Formula/openssl.rb +++ b/Library/Formula/openssl.rb @@ -24,6 +24,8 @@ class Openssl < Formula inreplace 'Configure', %{"darwin64-x86_64-cc","cc:-arch x86_64 -O3}, %{"darwin64-x86_64-cc","cc:-arch x86_64 -Os} + + setup_makedepend_shim else args << "darwin-i386-cc" end @@ -31,11 +33,22 @@ class Openssl < Formula system "perl", *args ENV.deparallelize + system "make", "depend" if MacOS.prefer_64_bit? system "make" system "make", "test" system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl" end + def setup_makedepend_shim + path = buildpath/"brew/makedepend" + path.write <<-EOS.undent + #!/bin/sh + exec "#{ENV.cc}" -M "$@" + EOS + path.chmod 0755 + ENV.prepend_path 'PATH', path.parent + end + def openssldir etc/"openssl" end -- cgit v1.2.3