2010-06-06 22:26:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Qrencode < Formula
|
2010-06-06 22:26:57 +00:00
|
|
|
url 'http://megaui.net/fukuchi/works/qrencode/qrencode-3.1.1.tar.gz'
|
|
|
|
homepage 'http://megaui.net/fukuchi/works/qrencode/index.en.html'
|
|
|
|
md5 'd97f67cbefaf577e6c15923f3cc57b6a'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-06 22:26:57 +00:00
|
|
|
|
|
|
|
def install
|
2011-03-14 20:43:00 +00:00
|
|
|
ENV.x11 # For libpng
|
2011-08-05 17:12:47 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2011-03-14 20:43:00 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
ENV.j1 # Install isn't parallel-safe
|
2010-06-06 22:26:57 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|