aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorEd Robinson2012-09-05 06:10:56 +0100
committerAdam Vandenberg2012-09-07 07:25:28 -0700
commit5fad22fc24bd8b0beb250e44d4fb4aec047d8189 (patch)
treeb64e7ed5403cf5aba20093cb408bc4a07bb615de /Library/Formula
parent51bf3e46a710a200260046b2570c75dd0cb48080 (diff)
downloadhomebrew-5fad22fc24bd8b0beb250e44d4fb4aec047d8189.tar.bz2
Imagemagick: require X11
It seems that imagemagick defaults to use x11, however the option is there to compile without. The display, animate, and import programs are not built or installed and some other functionality is reduced. Tested on Mountain Lion with and without XQuartz. Closes #14649. Closes #14774. Closes #14714. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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}'