OptiPNG: fix prefix and mandir bugs

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Scott Kyle 2011-03-28 17:07:49 -07:00 committed by Adam Vandenberg
parent 091e9d3ad0
commit e97871228d

View file

@ -6,11 +6,11 @@ class Optipng < Formula
md5 '9df5fa7bb45ae096ed6c6e0d8dc43dc7'
def install
inreplace 'src/scripts/gcc.mak.in' do |s|
s.gsub! '/usr/local', prefix
inreplace 'src/scripts/unix.mak.in' do |s|
s.change_make_var! 'mandir', man
end
system "./configure", "-with-system-zlib"
system "./configure", "--with-system-zlib", "--prefix=#{prefix}"
system "make install"
end
end