homebrew-core/Formula/botan.rb
Bert JW Regeer 46479d4025 Botan: add debug build option
This adds an extra flag --enable-debug so that the user can build Botan
with debugging enabled which is handy for debugging programs written
with Botan.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-19 17:09:16 -08:00

20 lines
499 B
Ruby

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