homebrew-core/Formula/little-cms2.rb

32 lines
869 B
Ruby

require 'formula'
class LittleCms2 < Formula
homepage 'http://www.littlecms.com/'
url 'https://downloads.sourceforge.net/project/lcms/lcms/2.6/lcms2-2.6.tar.gz'
sha1 'b0ecee5cb8391338e6c281d1c11dcae2bc22a5d2'
bottle do
cellar :any
revision 1
sha1 "27bd10360d70c106a8d306871feb990af9df510e" => :yosemite
sha1 "c67762e471d15d9b84cbc16eaeaa514070c35b3f" => :mavericks
sha1 "ae3e7282b6e89f3b97ae07c7071674eb89556005" => :mountain_lion
end
depends_on 'jpeg' => :recommended
depends_on 'libtiff' => :recommended
option :universal
def install
ENV.universal_binary if build.universal?
args = %W{--disable-dependency-tracking --prefix=#{prefix}}
args << "--without-tiff" if build.without? "libtiff"
args << "--without-jpeg" if build.without? "jpeg"
system "./configure", *args
system "make install"
end
end