aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/imagemagick.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb
index 513f65c43..b8a46f988 100644
--- a/Library/Formula/imagemagick.rb
+++ b/Library/Formula/imagemagick.rb
@@ -34,11 +34,13 @@ class Imagemagick < Formula
option 'with-quantum-depth-8', 'Compile with a quantum depth of 8 bit'
option 'with-quantum-depth-16', 'Compile with a quantum depth of 16 bit'
option 'with-quantum-depth-32', 'Compile with a quantum depth of 32 bit'
+ option 'without-x', 'Compile without x11'
depends_on 'pkg-config' => :build
depends_on 'jpeg' => :recommended
depends_on :libpng
+ depends_on :x11 unless build.include? 'without-x'
depends_on 'ghostscript' => :optional if ghostscript_srsly?
@@ -96,6 +98,7 @@ class Imagemagick < Formula
args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth
args << "--with-rsvg" if build.include? 'use-rsvg'
+ args << "--without-x" if build.include? 'without-x'
# versioned stuff in main tree is pointless for us
inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}'