homebrew-core/Formula/pngrewrite.rb

19 lines
419 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Pngrewrite < Formula
homepage 'http://entropymine.com/jason/pngrewrite/'
url 'http://entropymine.com/jason/pngrewrite/pngrewrite-1.4.0.zip'
sha1 'c959fbd507d84c6d4544d09493934b268e969b56'
depends_on :libpng
def install
inreplace 'Makefile' do |f|
f.gsub! 'gcc', ENV.cc
f.gsub! '-Wall -O2', ENV.cflags
end
system 'make'
bin.install 'pngrewrite'
end
end