2010-01-14 12:53:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pngrewrite <Formula
|
|
|
|
url 'http://entropymine.com/jason/pngrewrite/pngrewrite-1.3.0.zip'
|
|
|
|
homepage 'http://entropymine.com/jason/pngrewrite/'
|
|
|
|
md5 '37216932d12bf9b47dca1f45724080d6'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.libpng
|
2010-04-07 05:58:35 +00:00
|
|
|
system "#{ENV.cc} #{ENV['CFLAGS']} #{ENV['CPPFLAGS']} -o pngrewrite pngrewrite.c #{ENV['LDFLAGS']} -lpng"
|
2010-01-14 12:53:22 +00:00
|
|
|
bin.install 'pngrewrite'
|
|
|
|
end
|
|
|
|
end
|