homebrew-core/Formula/little-cms.rb
Jack Nagel fc12164f12 little-cms{,2}: make jpeg and libtiff recommended
These deps provide basic functionality and take very little time to
build so they may as well be enabled by default.
2013-07-19 19:34:25 -05:00

24 lines
718 B
Ruby

require 'formula'
class LittleCms < Formula
homepage 'http://www.littlecms.com/'
url 'http://downloads.sourceforge.net/project/lcms/lcms/1.19/lcms-1.19.tar.gz'
sha1 'd5b075ccffc0068015f74f78e4bc39138bcfe2d4'
option :universal
depends_on :python => :optional
depends_on 'jpeg' => :recommended
depends_on 'libtiff' => :recommended
def install
ENV.universal_binary if build.universal?
args = %W{--disable-dependency-tracking --disable-debug --prefix=#{prefix}}
args << "--with-python" if build.with? "python"
args << "--without-tiff" if build.without? "libtiff"
args << "--without-jpeg" if build.without? "jpeg"
system "./configure", *args
system "make install"
end
end