2010-02-16 07:19:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Openssl <Formula
|
|
|
|
url 'http://www.openssl.org/source/openssl-0.9.8o.tar.gz'
|
|
|
|
version '0.9.8o'
|
|
|
|
homepage 'http://www.openssl.org'
|
|
|
|
md5 '63ddc5116488985e820075e65fbe6aa4'
|
|
|
|
|
|
|
|
keg_only :provided_by_osx
|
|
|
|
|
2010-10-17 15:52:14 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2010-02-16 07:19:53 +00:00
|
|
|
def install
|
2010-10-17 15:52:14 +00:00
|
|
|
ENV.universal_binary if ARGV.include? "--universal"
|
2010-02-16 07:19:53 +00:00
|
|
|
ENV.j1 # Breaks on Mac Pro
|
|
|
|
system "./config", "--prefix=#{prefix}",
|
|
|
|
"--openssldir=#{etc}",
|
|
|
|
"zlib-dynamic", "shared"
|
|
|
|
system "make"
|
|
|
|
system "make test"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|