aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJames Aitken2013-10-20 15:58:53 +0100
committerAdam Vandenberg2013-10-20 09:23:20 -0700
commit992e94009deb8595358762dc0c43ff6de363ea34 (patch)
tree99d25a3b36edbe68cb7e006b4aa04abc4e92a952 /Library
parente1bd9b9e980c433878e60833f09964b8ca996657 (diff)
downloadhomebrew-992e94009deb8595358762dc0c43ff6de363ea34.tar.bz2
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 <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gd.rb14
1 files changed, 14 insertions, 0 deletions
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