homebrew-core/Formula/pngcrush.rb
Oliver Beattie a26083ab69 pngcrush 1.7.37
Old one seems to have been removed from SourceForge, so previous formula is broken

Closes Homebrew/homebrew#14697.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-09-04 10:53:34 -05:00

18 lines
542 B
Ruby

require 'formula'
class Pngcrush < Formula
homepage 'http://pmt.sourceforge.net/pngcrush/'
url 'http://downloads.sourceforge.net/project/pmt/pngcrush/1.7.37/pngcrush-1.7.37.tar.gz'
sha1 'b301cb451ddfa975f60875100c8ade49d5f89087'
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