protobuf-c: add support universal support

Added the common --universal switch to allow compilation of the protobuf-c
libraries as a universal dylib

Closes Homebrew/homebrew#35406.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Willem Pinckaers 2014-12-31 12:26:20 -08:00 committed by Jack Nagel
parent 98f4563487
commit 6232558f6e

View file

@ -11,10 +11,14 @@ class ProtobufC < Formula
sha1 "b3990ecc09a996fef5a976f59a16ffb7e8d87ecb" => :lion sha1 "b3990ecc09a996fef5a976f59a16ffb7e8d87ecb" => :lion
end end
option :universal
depends_on "pkg-config" => :build depends_on "pkg-config" => :build
depends_on "protobuf" depends_on "protobuf"
def install def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install" system "make install"
end end