aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiyue Deng2012-02-25 01:12:46 -0800
committerAdam Vandenberg2012-02-25 11:48:21 -0800
commit1c74b502967f18ea73333ac3e26693388b25e25d (patch)
tree3cc415b0ea071a21b8d68ec787317646052d8238
parent557d15e8c5dc18c6cea9f60f4e897af65a990a45 (diff)
downloadhomebrew-1c74b502967f18ea73333ac3e26693388b25e25d.tar.bz2
icu4c: add "--universal"
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/icu4c.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/icu4c.rb b/Library/Formula/icu4c.rb
index e1879bb53..257e17780 100644
--- a/Library/Formula/icu4c.rb
+++ b/Library/Formula/icu4c.rb
@@ -13,7 +13,15 @@ class Icu4c < Formula
keg_only "Conflicts; see: https://github.com/mxcl/homebrew/issues/issue/167"
+ def options
+ [
+ ["--universal", "Build universal binaries."]
+ ]
+ end
+
def install
+ ENV.universal_binary if ARGV.build_universal?
+
ENV.append "LDFLAGS", "-headerpad_max_install_names"
args = ["--prefix=#{prefix}", "--disable-samples", "--enable-static"]
args << "--with-library-bits=64" if MacOS.prefer_64_bit?