homebrew-core/Formula/botan.rb
Brett Koonce ed80e6643c Botan 1.10.6
Closes Homebrew/homebrew#24501.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-11-19 13:04:45 -06:00

29 lines
754 B
Ruby

require 'formula'
class Botan < Formula
homepage 'http://botan.randombit.net/'
url 'http://botan.randombit.net/files/Botan-1.10.6.tbz'
sha1 '762decd775a4267d3b343ff14729cd9b96a1e4a0'
option 'enable-debug', 'Enable debug build of Botan'
def install
args = %W[
--prefix=#{prefix}
--docdir=#{share}/doc
--cpu=#{MacOS.preferred_arch}
--cc=#{ENV.compiler}
--os=darwin
--with-openssl
--with-zlib
--with-bzip2
]
args << "--enable-debug" if build.include? "enable-debug"
system "./configure.py", *args
# A hack to force them use our CFLAGS. MACH_OPT is empty in the Makefile
# but used for each call to cc/ld.
system "make", "install", "MACH_OPT=#{ENV.cflags}"
end
end