require 'formula' class Pngcrush < Formula homepage 'http://pmt.sourceforge.net/pngcrush/' url 'http://sourceforge.net/projects/pmt/files/pngcrush/1.7.34/pngcrush-1.7.34.tar.gz' sha1 '6f0252027b93f02fddbff448f259c60924772e39' def install # Required to successfully build the bundled zlib 1.2.6 ENV.append_to_cflags "-DZ_SOLO" system "make", "CC=#{ENV.cc}", "LD=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}" bin.install 'pngcrush' end end