aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-04 19:51:51 -0700
committerAdam Vandenberg2011-06-06 10:21:37 -0700
commitb80254487a54bdf91c74a5cc7972596a6b8baf10 (patch)
treedea6fd651d3a977c1b60cf5079e9245bc569f421
parent1d11763ad63541897f46c3d3dfbf4ef73d900238 (diff)
downloadhomebrew-b80254487a54bdf91c74a5cc7972596a6b8baf10.tar.bz2
gettext: universal binary
-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",