aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/protobuf.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/protobuf.rb b/Library/Formula/protobuf.rb
index 7643d7854..957790fbd 100644
--- a/Library/Formula/protobuf.rb
+++ b/Library/Formula/protobuf.rb
@@ -5,20 +5,18 @@ class Protobuf < Formula
url 'http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2'
sha1 'df5867e37a4b51fb69f53a8baf5b994938691d6d'
+ option :universal
+
fails_with :llvm do
build 2334
end
- def options
- [['--universal', 'Do a universal build']]
- end
-
def install
# Don't build in debug mode. See:
# https://github.com/mxcl/homebrew/issues/9279
# http://code.google.com/p/protobuf/source/browse/trunk/configure.ac#61
ENV.prepend 'CXXFLAGS', '-DNDEBUG'
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-zlib"