blob: a6dcd4cacc48d867283adc28babac8492a378284 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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
test do
system "#{bin}/jpgicc", test_fixtures("test.jpg"), "out.jpg"
assert File.exist?("out.jpg")
end
end
|