homebrew-core/Formula/botan.rb

30 lines
754 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Botan < Formula
homepage 'http://botan.randombit.net/'
2013-04-10 01:05:58 +00:00
url 'http://botan.randombit.net/files/Botan-1.10.5.tbz'
sha1 '998b25d78e139b9c9402919aec4daa1c6118f2fb'
2012-08-09 05:28:15 +00:00
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
]
2012-08-09 15:51:54 +00:00
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