aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/optipng.rb
diff options
context:
space:
mode:
authorScott Kyle2011-03-28 17:07:49 -0700
committerAdam Vandenberg2011-03-29 10:12:55 -0700
commit3cff4d9d809fcc974a6f6a8ae05de05b26ac434b (patch)
tree4e66c37fc9f9a109414778ae9900f9b731aff5e1 /Library/Formula/optipng.rb
parent0301f4d6344051864af3d885863abd4fb6e5ea00 (diff)
downloadhomebrew-3cff4d9d809fcc974a6f6a8ae05de05b26ac434b.tar.bz2
OptiPNG: fix prefix and mandir bugs
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/optipng.rb')
-rw-r--r--Library/Formula/optipng.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/optipng.rb b/Library/Formula/optipng.rb
index 3feaf8d36..6e44d6efa 100644
--- a/Library/Formula/optipng.rb
+++ b/Library/Formula/optipng.rb
@@ -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