148b1c2067
[jn: no-asm is to fix compilation on 64-bit; perhaps it is not needed on 32-bit, but I didn't test it and I don't think its that important.] Closes Homebrew/homebrew#11821. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
29 lines
780 B
Ruby
29 lines
780 B
Ruby
require 'formula'
|
|
|
|
class Openssl < Formula
|
|
homepage 'http://openssl.org'
|
|
url 'http://openssl.org/source/openssl-1.0.1a.tar.gz'
|
|
sha256 'd3487e09d891c772cf946273a3bb0ca47479e7941be6d822274320e7cfcc361b'
|
|
|
|
keg_only :provided_by_osx,
|
|
"The OpenSSL provided by OS X is too old for some software."
|
|
|
|
def install
|
|
args = %W[./Configure
|
|
--prefix=#{prefix}
|
|
--openssldir=#{etc}/openssl
|
|
no-asm
|
|
zlib-dynamic
|
|
shared
|
|
]
|
|
|
|
args << (MacOS.prefer_64_bit? ? "darwin64-x86_64-cc" : "darwin-i386-cc")
|
|
|
|
system "perl", *args
|
|
|
|
ENV.deparallelize # Parallel compilation fails
|
|
system "make"
|
|
system "make", "test"
|
|
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
|
|
end
|
|
end
|