@@ -7,6 +7,7 @@ class Imagemagick < Formula
77 url "https://dl.bintray.com/homebrew/mirror/imagemagick--7.0.8-12.tar.xz"
88 mirror "https://www.imagemagick.org/download/ImageMagick-7.0.8-12.tar.xz"
99 sha256 "48df5877fe85603940310fe5c811a89af416882b60379918a95dcd4de6582b55"
10+ revision 1
1011 head "https://github.com/ImageMagick/ImageMagick.git"
1112
1213 bottle do
@@ -18,13 +19,9 @@ class Imagemagick < Formula
1819 option "with-fftw" , "Compile with FFTW support"
1920 option "with-hdri" , "Compile with HDRI support"
2021 option "with-libheif" , "Compile with HEIF support"
21- option "with-openmp" , "Compile with OpenMP support"
2222 option "with-perl" , "Compile with PerlMagick"
23- option "with-zero-configuration" , "Disables depending on XML configuration files"
2423
2524 deprecated_option "enable-hdri" => "with-hdri"
26- deprecated_option "with-gcc" => "with-openmp"
27- deprecated_option "with-jp2" => "with-openjpeg"
2825 deprecated_option "with-libde265" => "with-libheif"
2926
3027 depends_on "pkg-config" => :build
@@ -34,6 +31,9 @@ class Imagemagick < Formula
3431 depends_on "libpng"
3532 depends_on "libtiff"
3633 depends_on "libtool"
34+ depends_on "little-cms2"
35+ depends_on "openjpeg"
36+ depends_on "webp"
3737 depends_on "xz"
3838
3939 depends_on "fftw" => :optional
@@ -44,19 +44,11 @@ class Imagemagick < Formula
4444 depends_on "librsvg" => :optional
4545 depends_on "libwmf" => :optional
4646 depends_on "little-cms" => :optional
47- depends_on "little-cms2" => :optional
4847 depends_on "openexr" => :optional
49- depends_on "openjpeg" => :optional
5048 depends_on "pango" => :optional
5149 depends_on "perl" => :optional
52- depends_on "webp" => :optional
5350 depends_on :x11 => :optional
5451
55- if build . with? "openmp"
56- depends_on "gcc"
57- fails_with :clang
58- end
59-
6052 skip_clean :la
6153
6254 def install
@@ -66,30 +58,15 @@ def install
6658 --disable-dependency-tracking
6759 --disable-silent-rules
6860 --disable-opencl
61+ --disable-openmp
6962 --enable-shared
7063 --enable-static
7164 --with-freetype=yes
7265 --with-modules
66+ --with-openjp2
67+ --with-webp=yes
7368 ]
7469
75- if build . with? "openmp"
76- args << "--enable-openmp"
77- else
78- args << "--disable-openmp"
79- end
80-
81- if build . with? "webp"
82- args << "--with-webp=yes"
83- else
84- args << "--without-webp"
85- end
86-
87- if build . with? "openjpeg"
88- args << "--with-openjp2"
89- else
90- args << "--without-openjp2"
91- end
92-
9370 args << "--without-gslib" if build . without? "ghostscript"
9471 args << "--with-perl" << "--with-perl-options='PREFIX=#{ prefix } '" if build . with? "perl"
9572 args << "--with-gs-font-dir=#{ HOMEBREW_PREFIX } /share/ghostscript/fonts" if build . without? "ghostscript"
@@ -99,7 +76,6 @@ def install
9976 args << "--with-rsvg" if build . with? "librsvg"
10077 args << "--without-x" if build . without? "x11"
10178 args << "--with-fontconfig=yes" if build . with? "fontconfig"
102- args << "--enable-zero-configuration" if build . with? "zero-configuration"
10379 args << "--without-wmf" if build . without? "libwmf"
10480
10581 # versioned stuff in main tree is pointless for us
0 commit comments