OptiPNG: fix prefix and mandir bugs
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
091e9d3ad0
commit
e97871228d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue