homebrew-core/Formula/openssl.rb
Adam Vandenberg 3e12e7ce1b openssl: Edit comments
OpenSSL is provided mostly for Leopard, but some things on Snow Leopard
need a newer version as well (such as VirtualBox.)

OpenSSL will build *32-bit only* by default, even on Snow Leopard.

Building Universal requires some extra effort, which has not yet
been put into place. Specifically, it is not enough to do:
    ENV.universal_build
Builds need to be run separately for 32 and 64 bit, and then
lipo needs to be used to put together the library archives.
2011-06-05 13:10:30 -07:00

26 lines
700 B
Ruby

require 'formula'
class Openssl < Formula
url 'http://www.openssl.org/source/openssl-0.9.8r.tar.gz'
version '0.9.8r'
homepage 'http://www.openssl.org'
md5 '0352932ea863bc02b056cda7c9ac5b79'
keg_only :provided_by_osx,
"The OpenSSL provided by Leopard (0.9.7) is too old for some software."
def install
system "./config", "--prefix=#{prefix}",
"--openssldir=#{etc}",
"zlib-dynamic", "shared"
ENV.j1 # Parallel compilation fails
system "make"
system "make test"
system "make install"
end
def caveats; <<-EOS.undent
Note that the libraries built tend to be 32-bit only, even on Snow Leopard.
EOS
end
end