homebrew-core/Formula/optipng.rb
Scott Kyle e97871228d OptiPNG: fix prefix and mandir bugs
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-29 10:12:55 -07:00

16 lines
444 B
Ruby

require 'formula'
class Optipng < Formula
url 'http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.6.5/optipng-0.6.5.tar.gz'
homepage 'http://optipng.sourceforge.net/'
md5 '9df5fa7bb45ae096ed6c6e0d8dc43dc7'
def install
inreplace 'src/scripts/unix.mak.in' do |s|
s.change_make_var! 'mandir', man
end
system "./configure", "--with-system-zlib", "--prefix=#{prefix}"
system "make install"
end
end