gettext: universal binary

master
Adam Vandenberg 2011-06-04 19:51:51 -07:00
parent 30fc636e37
commit 4533710634
1 changed files with 7 additions and 1 deletions

View File

@ -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",