diff options
| -rw-r--r-- | Library/Formula/imagemagick.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index 9dac5b9a6..d42e04753 100644 --- a/Library/Formula/imagemagick.rb +++ b/Library/Formula/imagemagick.rb @@ -35,6 +35,7 @@ class Imagemagick < Formula 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 'with-x', 'Compile with X11 support.' + option 'with-fontconfig', 'Compile with fontconfig support.' option 'without-freetype', 'Compile without freetype support.' depends_on 'pkg-config' => :build @@ -42,6 +43,7 @@ class Imagemagick < Formula depends_on 'jpeg' => :recommended depends_on :libpng depends_on :x11 if build.include? 'with-x' + depends_on :fontconfig => :optional if build.include? 'with-fontconfig' or MacOS::X11.installed? depends_on :freetype => :recommended unless build.include? 'without-freetype' depends_on 'ghostscript' => :optional if ghostscript_srsly? @@ -100,6 +102,7 @@ class Imagemagick < Formula args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth args << "--with-rsvg" if build.include? 'use-rsvg' args << "--without-x" unless build.include? 'with-x' + args << "--with-fontconfig=yes" if build.include? 'with-fontconfig' args << "--with-freetype=yes" if build.include? 'with-freetype' # versioned stuff in main tree is pointless for us |
