homebrew-core/Formula/pngcrush.rb
Adam Guthrie 4fafde1de7 pngcrush 1.7.56
Closes Homebrew/homebrew#18930.
Closes Homebrew/homebrew#18928.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-03 07:35:02 -07:00

20 lines
679 B
Ruby

require 'formula'
class Pngcrush < Formula
homepage 'http://pmt.sourceforge.net/pngcrush/'
url 'http://sourceforge.net/projects/pmt/files/pngcrush/1.7.56/pngcrush-1.7.56.tar.gz'
sha1 'deb45dadf5a162d2e02efd242ea4eee0d3b31727'
def install
# Required to successfully build the bundled zlib 1.2.6
ENV.append_to_cflags "-DZ_SOLO"
# Required to enable "-cc" (color counting) option (disabled by default since 1.5.1)
ENV.append_to_cflags "-DPNGCRUSH_COUNT_COLORS"
system "make", "CC=#{ENV.cc}",
"LD=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"LDFLAGS=#{ENV.ldflags}"
bin.install 'pngcrush'
end
end