From b80254487a54bdf91c74a5cc7972596a6b8baf10 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 4 Jun 2011 19:51:51 -0700 Subject: gettext: universal binary --- Library/Formula/gettext.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb index 0fe3eafc7..5e06a3185 100644 --- a/Library/Formula/gettext.rb +++ b/Library/Formula/gettext.rb @@ -8,9 +8,13 @@ class Gettext < Formula keg_only "OS X provides the BSD gettext library and some software gets confused if both are in the library path." def options - [['--with-examples', 'Keep example files.']] + [ + ['--with-examples', 'Keep example files.'], + ['--universal', 'Build universal binaries.'] + ] end + def patches unless ARGV.include? '--with-examples' # Use a MacPorts patch to disable building examples at all @@ -25,6 +29,8 @@ class Gettext < Formula ENV.libxml2 ENV.O3 # Issues with LLVM & O4 on Mac Pro 10.6 + ENV.universal_binary if ARGV.build_universal? + system "./configure", "--disable-dependency-tracking", "--disable-debug", "--prefix=#{prefix}", "--without-included-gettext", -- cgit v1.2.3