From 2de8b924fb2aef3943cae924652c32fd0bfc0605 Mon Sep 17 00:00:00 2001 From: Willem Pinckaers Date: Wed, 31 Dec 2014 12:26:20 -0800 Subject: protobuf-c: add support universal support Added the common --universal switch to allow compilation of the protobuf-c libraries as a universal dylib Closes #35406. Signed-off-by: Jack Nagel --- Library/Formula/protobuf-c.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/protobuf-c.rb b/Library/Formula/protobuf-c.rb index 79cde04c5..0c4c9bd1a 100644 --- a/Library/Formula/protobuf-c.rb +++ b/Library/Formula/protobuf-c.rb @@ -11,10 +11,14 @@ class ProtobufC < Formula sha1 "b3990ecc09a996fef5a976f59a16ffb7e8d87ecb" => :lion end + option :universal + depends_on "pkg-config" => :build depends_on "protobuf" def install + ENV.universal_binary if build.universal? + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end -- cgit v1.2.3