diff options
| author | Willem Pinckaers | 2014-12-31 12:26:20 -0800 |
|---|---|---|
| committer | Jack Nagel | 2014-12-31 22:02:28 -0500 |
| commit | 2de8b924fb2aef3943cae924652c32fd0bfc0605 (patch) | |
| tree | f0f7a7e32015517925e704722f27863caa5fe48b | |
| parent | 6a2c0efb713378d9e032b58562f50a8c91c2577c (diff) | |
| download | homebrew-2de8b924fb2aef3943cae924652c32fd0bfc0605.tar.bz2 | |
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 <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/protobuf-c.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
