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

class LittleCms < Formula
  homepage 'http://www.littlecms.com/'
  url 'http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz'
  sha1 'd5b075ccffc0068015f74f78e4bc39138bcfe2d4'

  depends_on :python => :optional
  depends_on 'jpeg' => :optional
  depends_on 'libtiff' => :optional

  def install
    args = ["--disable-debug", "--prefix=#{prefix}"]
    args << "--with-python" if build.with? "python"

    system "./configure", *args
    system "make install"
  end
end