homebrew-core/Formula/pngcrush.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

18 lines
536 B
Ruby

require 'formula'
class Pngcrush <Formula
homepage 'http://pmt.sourceforge.net/pngcrush/'
url "http://downloads.sourceforge.net/sourceforge/pmt/pngcrush-1.7.2.tar.bz2"
md5 '24ead6781e7e017e8ee2bf61db93a355'
def install
# use our CFLAGS, LDFLAGS, CC, and LD
inreplace 'Makefile', 'CFLAGS = -I. -O3 -fomit-frame-pointer -Wall -Wshadow', ''
inreplace 'Makefile', 'LDFLAGS =', ''
inreplace 'Makefile', 'CC = gcc', ''
inreplace 'Makefile', 'LD = gcc', ''
system "make"
bin.install 'pngcrush'
end
end