aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/botan.rb
diff options
context:
space:
mode:
authorBert JW Regeer2012-02-14 22:25:01 -0700
committerAdam Vandenberg2012-02-19 17:09:16 -0800
commita545aed4891c77687ada6bb934b03cef6197b055 (patch)
treea12bd02647ab8cbc7c6539fbc7f91b366b697d63 /Library/Formula/botan.rb
parent495de42945f7d14d49e8255ad922e753570e9327 (diff)
downloadhomebrew-a545aed4891c77687ada6bb934b03cef6197b055.tar.bz2
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>
Diffstat (limited to 'Library/Formula/botan.rb')
-rw-r--r--Library/Formula/botan.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/botan.rb b/Library/Formula/botan.rb
index 29cf1d62a..0bd89113d 100644
--- a/Library/Formula/botan.rb
+++ b/Library/Formula/botan.rb
@@ -1,13 +1,18 @@
require 'formula'
class Botan < Formula
- url 'http://files.randombit.net/botan/v1.10/Botan-1.10.1.tbz'
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"