aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-21 14:41:50 -0700
committerAdam Vandenberg2012-08-21 14:42:17 -0700
commit1a97ee2ac8956c050e6d32672f50cfd54257945a (patch)
treed069a76558f571884e48e37541ef90a678fd1bd4 /Library/Formula
parentb6b1ad2ab500a8c716f088ebc7890f84b330720a (diff)
downloadhomebrew-1a97ee2ac8956c050e6d32672f50cfd54257945a.tar.bz2
ImageMagick: make OpenCL optional
Fixes #13651.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/imagemagick.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb
index 093898d4d..f0c8f7397 100644
--- a/Library/Formula/imagemagick.rb
+++ b/Library/Formula/imagemagick.rb
@@ -63,6 +63,7 @@ class Imagemagick < Formula
['--use-lqr', 'Compile with liblqr support.'],
['--use-exr', 'Compile with openexr support.'],
['--disable-openmp', 'Disable OpenMP.'],
+ ['--disable-opencl', 'Disable OpenCL.'],
['--enable-hdri', 'Compile with HDRI support enabled'],
['--without-magick-plus-plus', "Don't compile C++ interface."],
['--with-quantum-depth-8', 'Compile with a quantum depth of 8 bit'],
@@ -81,6 +82,7 @@ class Imagemagick < Formula
"--with-modules"]
args << "--disable-openmp" if MacOS.leopard? or ARGV.include? '--disable-openmp'
+ args << "--disable-opencl" if ARGV.include? '--disable-opencl'
args << "--without-gslib" unless ARGV.include? '--with-ghostscript'
args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" \
unless ghostscript_srsly? or ghostscript_fonts?