homebrew-core/Formula/botan.rb
Bert JW Regeer d64abd588c botan: Fix build on Mac OS X Snow Leopard
On Snow Leopard running a 64 bit OS the Botan configure script will
attempt to build a 32 bit binary using a compiler that can support 64
bit, we have to explicitly state that we want to have 64 bit library
built.

Unfortunately there is no way to build a universal library/binary for
Botan as it currently stands.

This is an oversight on my part, it works without issues on Lion where
it picks up the fact that it is a 64 bit OS correctly and compiles
without issues.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-09-02 13:56:02 -07:00

15 lines
359 B
Ruby

require 'formula'
class Botan < Formula
url 'http://files.randombit.net/botan/v1.10/Botan-1.10.1.tbz'
homepage 'http://botan.randombit.net/'
md5 '7ae93e205491a8e75115bfca983ff7f9'
def install
args = ["--prefix=#{prefix}"]
args << "--cpu=x86_64" if MacOS.prefer_64_bit?
system "./configure.py", *args
system "make install"
end
end