blob: 38337e0076e8ed652e0a5c235240214e80dc10ae (
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
  | 
require 'formula'
class LittleCms2 < Formula
  homepage 'http://www.littlecms.com/'
  url 'https://downloads.sourceforge.net/project/lcms/lcms/2.5/lcms2-2.5.tar.gz'
  sha1 'bab3470471fc7756c5fbe71be9a3c7d677d2ee7b'
  bottle do
    cellar :any
    sha1 "06ec67737332d592670109bac5547d42276557a0" => :mavericks
    sha1 "57ef9368e594929537805df109031fbe799b3d8a" => :mountain_lion
    sha1 "79aa4fcb97599f1902b70eebbf3acbbc9936f75e" => :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
  |