aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/little-cms2.rb
blob: 0e54aed6d3f0edcb3a5dd5d7f0c650e5e37545b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class LittleCms2 < Formula
  homepage 'http://www.littlecms.com/'
  url 'http://downloads.sourceforge.net/project/lcms/lcms/2.5/lcms2-2.5.tar.gz'
  sha1 'bab3470471fc7756c5fbe71be9a3c7d677d2ee7b'

  depends_on 'jpeg' => :recommended
  depends_on 'libtiff' => :recommended

  def install
    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