qrencode: patch for Lion / libpng 1.5

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Archimedes Trajano 2011-08-05 13:12:47 -04:00 committed by Adam Vandenberg
parent 8d38e3c6db
commit 65a1c713cf

View file

@ -9,6 +9,13 @@ class Qrencode < Formula
def install
ENV.x11 # For libpng
# This may be removable in the next official release.
# See: https://github.com/fukuchi/libqrencode/issues/3
unless ARGV.build_head?
inreplace 'configure', "libpng12", "libpng"
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"