homebrew-core/Formula/pngcrush.rb
2009-09-30 18:52:13 +01:00

18 lines
536 B
Ruby

require 'brewkit'
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