From 52487072f4b885e0b40a33352f82ad3ea1029b64 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Mon, 15 Aug 2011 21:33:04 -0500 Subject: cppunit: add --universal option Signed-off-by: Adam Vandenberg --- Library/Formula/cppunit.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Library/Formula/cppunit.rb') diff --git a/Library/Formula/cppunit.rb b/Library/Formula/cppunit.rb index 02c5ef9ee..36ee482e1 100644 --- a/Library/Formula/cppunit.rb +++ b/Library/Formula/cppunit.rb @@ -5,8 +5,16 @@ class Cppunit < Formula homepage 'http://sourceforge.net/apps/mediawiki/cppunit/' md5 'bd30e9cf5523cdfc019b94f5e1d7fd19' + def options + [["--universal", "Build for both 32 & 64 bit Intel."]] + end + def install - system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"] + + ENV.universal_binary if ARGV.build_universal? + + system "./configure", *args system "make install" end end -- cgit v1.2.3