2010-01-04 05:00:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Optipng <Formula
|
2010-11-17 21:46:09 +00:00
|
|
|
url 'http://downloads.sourceforge.net/optipng/optipng-0.6.4.tar.gz'
|
2010-01-04 05:00:47 +00:00
|
|
|
homepage 'http://optipng.sourceforge.net/'
|
2010-11-17 21:46:09 +00:00
|
|
|
md5 'd6c10dd8d8f1d5b579221bc9cfbfbcb6'
|
2010-01-04 05:00:47 +00:00
|
|
|
|
|
|
|
def install
|
2010-02-19 19:19:01 +00:00
|
|
|
inreplace 'src/scripts/gcc.mak.in' do |s|
|
|
|
|
s.gsub! '/usr/local', prefix
|
|
|
|
s.change_make_var! 'mandir', man
|
|
|
|
end
|
2010-01-04 05:00:47 +00:00
|
|
|
system "./configure", "-with-system-zlib"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|