botan: enable openssl, zlib, and bzip2

- Enable openssl, zlib, and bzip2
 - Fix docdir location
This commit is contained in:
Jack Nagel 2013-11-04 23:17:18 -06:00
parent d6baf19237
commit 21d5df80ec

View file

@ -8,10 +8,18 @@ class Botan < Formula
option 'enable-debug', 'Enable debug build of Botan'
def install
args = ["--prefix=#{prefix}"]
args << "--cpu=#{MacOS.preferred_arch}"
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"
args << "--cc=#{ENV.compiler}"
system "./configure.py", *args
# A hack to force them use our CFLAGS. MACH_OPT is empty in the Makefile