diff options
| author | Jack Nagel | 2013-01-31 18:13:19 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-31 18:14:03 -0600 |
| commit | a81d9ee7b3b5ab56c22b3d3a83dbef1904a13e42 (patch) | |
| tree | 5d9b6c73406cf230203a5b6c2e5612eecec0618e /Library/Formula | |
| parent | 25837c0c816421840072f9b629ab5a48270fd8b7 (diff) | |
| download | homebrew-a81d9ee7b3b5ab56c22b3d3a83dbef1904a13e42.tar.bz2 | |
gd: use optional deps
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gd.rb | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Library/Formula/gd.rb b/Library/Formula/gd.rb index c7e34d79c..31344ee8c 100644 --- a/Library/Formula/gd.rb +++ b/Library/Formula/gd.rb @@ -8,15 +8,10 @@ class Gd < Formula head 'http://bitbucket.org/pierrejoye/gd-libgd', :using => :hg - option 'without-libpng', 'Build without PNG support' - option 'without-jpeg', 'Build without JPEG support' - option 'with-giflib', 'Build with GIF support' - option 'with-freetype', 'Build with FreeType support' - - depends_on :libpng unless build.include? "without-libpng" - depends_on 'jpeg' => :recommended unless build.include? "without-jpeg" - depends_on 'giflib' if build.include? "with-giflib" - depends_on :freetype if build.include? "with-freetype" or MacOS::X11.installed? + depends_on :libpng => :recommended + depends_on 'jpeg' => :recommended + depends_on 'giflib' => :optional + depends_on :freetype => :optional fails_with :llvm do build 2326 @@ -25,7 +20,7 @@ class Gd < Formula def install args = ["--prefix=#{prefix}"] - args << "--without-freetype" unless build.include? 'with-freetype' + args << "--without-freetype" unless build.with? 'freetype' system "./configure", *args system "make install" (lib+'pkgconfig/gdlib.pc').write pkg_file |
