2010-01-14 12:53:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pngrewrite < Formula
|
2010-01-14 12:53:22 +00:00
|
|
|
homepage 'http://entropymine.com/jason/pngrewrite/'
|
2012-10-16 08:43:44 +00:00
|
|
|
url 'http://entropymine.com/jason/pngrewrite/pngrewrite-1.4.0.zip'
|
|
|
|
sha1 'c959fbd507d84c6d4544d09493934b268e969b56'
|
2010-01-14 12:53:22 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :libpng
|
|
|
|
|
2010-01-14 12:53:22 +00:00
|
|
|
def install
|
2012-10-16 08:43:44 +00:00
|
|
|
inreplace 'Makefile' do |f|
|
|
|
|
f.gsub! 'gcc', ENV.cc
|
|
|
|
f.gsub! '-Wall -O2', ENV.cflags
|
|
|
|
end
|
|
|
|
system 'make'
|
2010-01-14 12:53:22 +00:00
|
|
|
bin.install 'pngrewrite'
|
|
|
|
end
|
|
|
|
end
|