require 'formula' class Pngcrush < Formula homepage 'http://pmt.sourceforge.net/pngcrush/' url 'http://downloads.sourceforge.net/project/pmt/pngcrush/1.7.24/pngcrush-1.7.24.tar.bz2' md5 '9f29bd4bc05ae1415e5ad10241798794' def install system "make", "CC=#{ENV.cc}", "LD=#{ENV.cc}", "CFLAGS=#{ENV.cflags}", "LDFLAGS=#{ENV.ldflags}" bin.install 'pngcrush' end end