openssl: run "make depend" to recompute header dependencies

Fixes Homebrew/homebrew#21895.
This commit is contained in:
Jack Nagel 2013-08-23 12:36:25 -05:00
parent d788048da6
commit 84ea68d1a7

View file

@ -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