forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openssl098.rb
36 lines (29 loc) · 864 Bytes
/
openssl098.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'formula'
class Openssl098 < Formula
homepage 'http://www.openssl.org'
url 'http://www.openssl.org/source/openssl-0.9.8y.tar.gz'
sha1 '32ec994d626555774548c82e48c5d220bec903c4'
keg_only :provided_by_osx
def install
args = %W[./Configure
--prefix=#{prefix}
--openssldir=#{etc}/openssl
zlib-dynamic
shared
]
if MacOS.prefer_64_bit?
args << "darwin64-x86_64-cc" << "enable-ec_nistp_64_gcc_128"
else
args << "darwin-i386-cc"
end
system "perl", *args
ENV.deparallelize # Parallel compilation fails
system "make"
system "make test"
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
end
def caveats; <<-EOS.undent
Note that the libraries built tend to be 32-bit only, even on Snow Leopard.
EOS
end
end