From 992e94009deb8595358762dc0c43ff6de363ea34 Mon Sep 17 00:00:00 2001 From: James Aitken Date: Sun, 20 Oct 2013 15:58:53 +0100 Subject: GD: Add optional TIFF & WebM support. Not enabled by default, but it's useful to have the option to turn them on. Sadly they are not auto-detected when you run configure - so we have to be explicit. Tested on both 10.8.5 & 10.9 Closes #23398. Signed-off-by: Adam Vandenberg --- Library/Formula/gd.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Library') diff --git a/Library/Formula/gd.rb b/Library/Formula/gd.rb index 50681fcfb..5506bbc43 100644 --- a/Library/Formula/gd.rb +++ b/Library/Formula/gd.rb @@ -12,6 +12,8 @@ class Gd < Formula depends_on :libpng => :recommended depends_on 'jpeg' => :recommended depends_on :freetype => :optional + depends_on 'libtiff' => :optional + depends_on 'libvpx' => :optional fails_with :llvm do build 2326 @@ -48,6 +50,18 @@ class Gd < Formula args << "--without-jpeg" end + if build.with? "libtiff" + args << "--with-tiff=#{Formula.factory("libtiff").opt_prefix}" + else + args << "--without-tiff" + end + + if build.with? "libvpx" + args << "--with-vpx=#{Formula.factory("libvpx").opt_prefix}" + else + args << "--without-vpx" + end + system "./configure", *args system "make install" end -- cgit v1.2.3