aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Holm2013-06-22 14:32:45 +0200
committerJack Nagel2013-06-22 10:17:42 -0500
commit1f2df6b8a0af6b70d0ef464a6044d3e7c6d1f2a5 (patch)
tree3b8cfee9a68502c52b2abf754409b7a91163020d /Library
parentd57b38dc19e58cebb37d59c96a08d1e69187026d (diff)
downloadhomebrew-1f2df6b8a0af6b70d0ef464a6044d3e7c6d1f2a5.tar.bz2
gd: add universal option
Required for libgphoto2 --universal. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gd.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/gd.rb b/Library/Formula/gd.rb
index 920ec1def..c432e96e6 100644
--- a/Library/Formula/gd.rb
+++ b/Library/Formula/gd.rb
@@ -10,6 +10,8 @@ class Gd < Formula
head 'https://bitbucket.org/libgd/gd-libgd', :using => :hg
+ option :universal
+
depends_on :libpng => :recommended
depends_on 'jpeg' => :recommended
depends_on 'giflib' => :optional
@@ -21,6 +23,7 @@ class Gd < Formula
end
def install
+ ENV.universal_binary if build.universal?
args = ["--prefix=#{prefix}"]
args << "--without-freetype" unless build.with? 'freetype'
system "./configure", *args