From 4533710634e9d2699bebc9ff647b7386696bc04b Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 4 Jun 2011 19:51:51 -0700 Subject: [PATCH] gettext: universal binary --- Formula/gettext.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Formula/gettext.rb b/Formula/gettext.rb index 0fe3eafc7b1..5e06a31854b 100644 --- a/Formula/gettext.rb +++ b/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",