diff options
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 |
