little-cms{,2}: make jpeg and libtiff recommended
These deps provide basic functionality and take very little time to build so they may as well be enabled by default.
This commit is contained in:
parent
25e8b6c0a2
commit
fc12164f12
2 changed files with 11 additions and 7 deletions
|
@ -8,15 +8,15 @@ class LittleCms < Formula
|
|||
option :universal
|
||||
|
||||
depends_on :python => :optional
|
||||
depends_on 'jpeg' => :optional
|
||||
depends_on 'libtiff' => :optional
|
||||
depends_on 'jpeg' => :recommended
|
||||
depends_on 'libtiff' => :recommended
|
||||
|
||||
def install
|
||||
ENV.universal_binary if build.universal?
|
||||
args = %W{--disable-dependency-tracking --disable-debug --prefix=#{prefix}}
|
||||
args << "--with-python" if build.with? "python"
|
||||
args << "--without-tiff" unless build.with? "tiff"
|
||||
args << "--without-jpeg" unless build.with? "jpeg"
|
||||
args << "--without-tiff" if build.without? "libtiff"
|
||||
args << "--without-jpeg" if build.without? "jpeg"
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
|
|
|
@ -5,11 +5,15 @@ class LittleCms2 < Formula
|
|||
url 'http://downloads.sourceforge.net/project/lcms/lcms/2.5/lcms2-2.5.tar.gz'
|
||||
sha1 'bab3470471fc7756c5fbe71be9a3c7d677d2ee7b'
|
||||
|
||||
depends_on 'jpeg' => :optional
|
||||
depends_on 'libtiff' => :optional
|
||||
depends_on 'jpeg' => :recommended
|
||||
depends_on 'libtiff' => :recommended
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue