homebrew-core/Formula/protobuf-c.rb
Willem Pinckaers 6232558f6e 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>
2014-12-31 22:02:28 -05:00

25 lines
722 B
Ruby

require "formula"
class ProtobufC < Formula
homepage "https://github.com/protobuf-c/protobuf-c"
url "https://github.com/protobuf-c/protobuf-c/releases/download/v1.0.2/protobuf-c-1.0.2.tar.gz"
sha1 "f831f98a1142fdd3072b329fdc3b30533be67f48"
bottle do
sha1 "e850a4947ec7189154845bfb60ff8b69197c45e4" => :mavericks
sha1 "fd96052b5ac98180f0679fdb6d62fce8d2c576ac" => :mountain_lion
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
end