aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/imagemagick.rb
diff options
context:
space:
mode:
authorMike McQuaid2012-10-17 10:30:53 +0100
committerMike McQuaid2012-10-17 10:31:04 +0100
commit834ce4a1c0d935e08fec4fc91c58abbf6f8911c3 (patch)
tree83e52fc829a10dbf8b66ee4badad1df7d97e2558 /Library/Formula/imagemagick.rb
parent9553dc2cb32b6861e205379fda7757b4d9a18770 (diff)
downloadhomebrew-834ce4a1c0d935e08fec4fc91c58abbf6f8911c3.tar.bz2
imagemagick: install X11 support if found.
Diffstat (limited to 'Library/Formula/imagemagick.rb')
-rw-r--r--Library/Formula/imagemagick.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb
index 6cdb579e1..3ac2be95d 100644
--- a/Library/Formula/imagemagick.rb
+++ b/Library/Formula/imagemagick.rb
@@ -45,7 +45,7 @@ class Imagemagick < Formula
depends_on :x11 if build.include? 'with-x'
# Can't use => with symbol deps
depends_on :fontconfig if build.include? 'with-fontconfig' or MacOS::X11.installed? # => :optional
- depends_on :freetype unless build.include? 'without-freetype' # => :recommended
+ depends_on :freetype unless build.include? 'without-freetype' and not MacOS::X11.installed? # => :recommended
depends_on 'ghostscript' => :optional if ghostscript_srsly?
@@ -103,8 +103,8 @@ class Imagemagick < Formula
args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth
args << "--with-rsvg" if build.include? 'use-rsvg'
args << "--without-x" unless build.include? 'with-x'
- args << "--with-fontconfig=yes" if build.include? 'with-fontconfig'
- args << "--with-freetype=yes" if build.include? 'with-freetype'
+ args << "--with-fontconfig=yes" if build.include? 'with-fontconfig' or MacOS::X11.installed?
+ args << "--with-freetype=yes" unless build.include? 'without-freetype' and not MacOS::X11.installed?
# versioned stuff in main tree is pointless for us
inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}'