homebrew-core/Formula/zbar.rb

34 lines
695 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Zbar < Formula
homepage 'http://zbar.sourceforge.net'
2012-12-16 20:08:12 +00:00
url 'http://downloads.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2'
sha1 '273b47c26788faba4325baecc34063e27a012963'
depends_on :x11 => :optional
depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on 'imagemagick'
depends_on 'ufraw'
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--without-python
--without-qt
--disable-video
--without-gtk
]
if build.with? 'x11'
args << '--with-x'
else
args << '--without-x'
end
system "./configure", *args
system "make install"
end
end