Skip to content

Commit

Permalink
imagemagick: add options to disable modules/threads (#3060)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen authored and DomT4 committed Jul 17, 2016
1 parent 1b3c246 commit 4f8ca67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Formula/imagemagick.rb
Expand Up @@ -28,6 +28,8 @@ class Imagemagick < Formula
option "with-quantum-depth-32", "Compile with a quantum depth of 32 bit"
option "without-opencl", "Disable OpenCL"
option "without-magick-plus-plus", "disable build/install of Magick++"
option "without-modules", "Disable support for dynamically loadable modules"
option "without-threads", "Disable threads support"

depends_on "xz"
depends_on "libtool" => :run
Expand Down Expand Up @@ -65,9 +67,14 @@ def install
--disable-silent-rules
--enable-shared
--enable-static
--with-modules
]

if build.without? "modules"
args << "--without-modules"
else
args << "--with-modules"
end

if build.with? "openmp"
args << "--enable-openmp"
else
Expand All @@ -81,6 +88,7 @@ def install
args << "--enable-hdri=yes" if build.with? "hdri"
args << "--enable-fftw=yes" if build.with? "fftw"
args << "--without-pango" if build.without? "pango"
args << "--without-threads" if build.without? "threads"

if build.with? "quantum-depth-32"
quantum_depth = 32
Expand Down

0 comments on commit 4f8ca67

Please sign in to comment.