From 5fad22fc24bd8b0beb250e44d4fb4aec047d8189 Mon Sep 17 00:00:00 2001 From: Ed Robinson Date: Wed, 5 Sep 2012 06:10:56 +0100 Subject: 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 --- Library/Formula/imagemagick.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/Formula') 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}' -- cgit v1.2.3