homebrew-core/Formula/openssl.rb
2011-03-15 22:04:38 -07:00

26 lines
708 B
Ruby

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,
"OpenSSL provided by Leopard is too old for newer software to link against."
def options
[["--universal", "Build a universal binary."]]
end
def install
ENV.universal_binary if ARGV.include? "--universal"
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