2009-06-04 18:21:19 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
|
|
|
class Pngcrush <Formula
|
|
|
|
@homepage='http://pmt.sourceforge.net/pngcrush/'
|
2009-08-02 12:00:40 +00:00
|
|
|
@url='http://downloads.sourceforge.net/sourceforge/pmt/pngcrush-1.7.0.tar.bz2'
|
|
|
|
@md5='033f1542ef452952b1ba585cf21be70b'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
def install
|
2009-07-31 00:28:27 +00:00
|
|
|
# use our CFLAGS and LDFLAGS thanks :P
|
|
|
|
inreplace 'Makefile', 'CFLAGS = -I. -O3 -fomit-frame-pointer -Wall -Wshadow', ''
|
|
|
|
inreplace 'Makefile', 'LDFLAGS =', ''
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make"
|
2009-06-14 23:55:18 +00:00
|
|
|
bin.install 'pngcrush'
|
2009-06-04 18:21:19 +00:00
|
|
|
end
|
2009-07-31 00:28:27 +00:00
|
|
|
end
|