Skip to content

Instantly share code, notes, and snippets.

@othree
Created March 8, 2016 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save othree/5fa3b529e44cff53e4ec to your computer and use it in GitHub Desktop.
Save othree/5fa3b529e44cff53e4ec to your computer and use it in GitHub Desktop.
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