imagemagick@6: remove options

This commit is contained in:
FX Coudert 2018-09-26 15:19:42 +02:00
parent d45a5bc5de
commit c3eadfc5fd

View file

@ -22,9 +22,6 @@ class ImagemagickAT6 < Formula
option "with-opencl", "Compile with OpenCL support" option "with-opencl", "Compile with OpenCL support"
option "with-openmp", "Compile with OpenMP support" option "with-openmp", "Compile with OpenMP support"
option "with-perl", "Compile with PerlMagick" option "with-perl", "Compile with PerlMagick"
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"
option "with-zero-configuration", "Disables depending on XML configuration files" option "with-zero-configuration", "Disables depending on XML configuration files"
deprecated_option "enable-hdri" => "with-hdri" deprecated_option "enable-hdri" => "with-hdri"
@ -32,14 +29,14 @@ class ImagemagickAT6 < Formula
deprecated_option "with-jp2" => "with-openjpeg" deprecated_option "with-jp2" => "with-openjpeg"
depends_on "pkg-config" => :build depends_on "pkg-config" => :build
depends_on "freetype"
depends_on "jpeg"
depends_on "libpng"
depends_on "libtiff"
depends_on "libtool" depends_on "libtool"
depends_on "xz" depends_on "xz"
depends_on "freetype" => :recommended
depends_on "jpeg" => :recommended
depends_on "libpng" => :recommended
depends_on "libtiff" => :recommended
depends_on "fftw" => :optional depends_on "fftw" => :optional
depends_on "fontconfig" => :optional depends_on "fontconfig" => :optional
depends_on "ghostscript" => :optional depends_on "ghostscript" => :optional
@ -69,14 +66,10 @@ class ImagemagickAT6 < Formula
--disable-silent-rules --disable-silent-rules
--enable-shared --enable-shared
--enable-static --enable-static
--with-freetype=yes
--with-modules
] ]
if build.without? "modules"
args << "--without-modules"
else
args << "--with-modules"
end
if build.with? "opencl" if build.with? "opencl"
args << "--enable-opencl" args << "--enable-opencl"
else else
@ -104,15 +97,12 @@ class ImagemagickAT6 < Formula
args << "--without-gslib" if build.without? "ghostscript" args << "--without-gslib" if build.without? "ghostscript"
args << "--with-perl" << "--with-perl-options='PREFIX=#{prefix}'" if build.with? "perl" args << "--with-perl" << "--with-perl-options='PREFIX=#{prefix}'" if build.with? "perl"
args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" if build.without? "ghostscript" args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" if build.without? "ghostscript"
args << "--without-magick-plus-plus" if build.without? "magick-plus-plus"
args << "--enable-hdri=yes" if build.with? "hdri" args << "--enable-hdri=yes" if build.with? "hdri"
args << "--without-fftw" if build.without? "fftw" args << "--without-fftw" if build.without? "fftw"
args << "--without-pango" if build.without? "pango" args << "--without-pango" if build.without? "pango"
args << "--without-threads" if build.without? "threads"
args << "--with-rsvg" if build.with? "librsvg" args << "--with-rsvg" if build.with? "librsvg"
args << "--without-x" if build.without? "x11" args << "--without-x" if build.without? "x11"
args << "--with-fontconfig=yes" if build.with? "fontconfig" args << "--with-fontconfig=yes" if build.with? "fontconfig"
args << "--with-freetype=yes" if build.with? "freetype"
args << "--enable-zero-configuration" if build.with? "zero-configuration" args << "--enable-zero-configuration" if build.with? "zero-configuration"
args << "--without-wmf" if build.without? "libwmf" args << "--without-wmf" if build.without? "libwmf"