aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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