aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gettext.rb8
1 files changed, 7 insertions, 1 deletions
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",