2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pngcrush < Formula
|
2009-09-28 03:43:50 +00:00
|
|
|
homepage 'http://pmt.sourceforge.net/pngcrush/'
|
2011-10-02 02:53:55 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/pmt/pngcrush/1.7.17/pngcrush-1.7.17.tar.bz2'
|
|
|
|
md5 '80F5EBBE7D15C58B077EDAE7738F08AD'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
|
|
|
def install
|
2009-09-28 03:43:50 +00:00
|
|
|
# use our CFLAGS, LDFLAGS, CC, and LD
|
2010-08-08 00:31:10 +00:00
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.remove_make_var! %w[CFLAGS LDFLAGS CC LD]
|
2010-01-13 11:06:52 +00:00
|
|
|
end
|
2009-07-31 00:28:27 +00:00
|
|
|
|
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
|