aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/little-cms.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/little-cms.rb b/Library/Formula/little-cms.rb
index c0e272583..fdf565f26 100644
--- a/Library/Formula/little-cms.rb
+++ b/Library/Formula/little-cms.rb
@@ -1,15 +1,20 @@
require 'formula'
class LittleCms < Formula
- url 'http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz'
homepage 'http://www.littlecms.com/'
+ url 'http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz'
sha1 'd5b075ccffc0068015f74f78e4bc39138bcfe2d4'
+ option 'with-python', "Build Python bindings"
+
depends_on 'jpeg' => :optional
depends_on 'libtiff' => :optional
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug"
+ args = ["--disable-debug", "--prefix=#{prefix}"]
+ args << "--with-python" if build.include? "with-python"
+
+ system "./configure", *args
system "make install"
end
end