Created
March 8, 2016 10:11
-
-
Save othree/5fa3b529e44cff53e4ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Libbrotli < Formula | |
desc "Brotli library for decode and encode" | |
homepage "https://github.com/bagder/libbrotli" | |
url "https://github.com/bagder/libbrotli/archive/libbrotli-1.0.tar.gz" | |
sha256 "5b7c02eb87017e7b3886c07eca685db95fa21f9c8afbb442469370c251a54dc1" | |
option :universal | |
depends_on "libtool" => :build | |
depends_on "automake" => :build | |
depends_on "autoconf" => :build | |
go_resource "brotli" do | |
url "https://github.com/google/brotli/archive/v0.3.0.tar.gz" | |
sha256 "5d49eb1a6dd19304dd683c293abf66c8a419728f4c6d0f390fa7deb2a39eaae2" | |
end | |
def install | |
ENV.universal_binary if build.universal? | |
resource("brotli").stage buildpath | |
system "./autogen.sh" | |
system "./configure", "--prefix=#{prefix}", | |
"--mandir=#{man}", | |
"CXX=#{ENV.cxx}", | |
"CXXFLAGS=#{ENV.cflags}" | |
system "make", "install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment