aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/qrencode.rb
diff options
context:
space:
mode:
authorArchimedes Trajano2011-08-05 13:12:47 -0400
committerAdam Vandenberg2011-09-03 19:37:50 -0700
commitac909eacd7879777c87065c9c5e14ec086fbdfa3 (patch)
tree6752aab6bded08a3fc6a9649a0a3d36ee6b1387e /Library/Formula/qrencode.rb
parentb96bfaf61f38460def9419723541003aa3f7d88b (diff)
downloadhomebrew-ac909eacd7879777c87065c9c5e14ec086fbdfa3.tar.bz2
qrencode: patch for Lion / libpng 1.5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/qrencode.rb')
-rw-r--r--Library/Formula/qrencode.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/qrencode.rb b/Library/Formula/qrencode.rb
index 6bf5102d7..87f32f0c7 100644
--- a/Library/Formula/qrencode.rb
+++ b/Library/Formula/qrencode.rb
@@ -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"