homebrew-core/Formula/pngcrush.rb
Jocelyn Mallon 2629243ff0 pngcrush 1.7.27
Sstarting with v1.7.26, pngcrush uses zlib 1.2.6, and per project
changelog, requires -DZ_SOLO CFLAG to workaround compiler bugs:
http://pmt.sourceforge.net/pngcrush/changelog.html

Closes Homebrew/homebrew#11748.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-19 16:31:56 -05:00

18 lines
534 B
Ruby

require 'formula'
class Pngcrush < Formula
homepage 'http://pmt.sourceforge.net/pngcrush/'
url 'http://downloads.sourceforge.net/project/pmt/pngcrush/1.7.27/pngcrush-1.7.27.tar.bz2'
md5 '582ab2b4c262b8837cc2d30bf7d14f33'
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