From 5b3d3ca8f3e31d60dcd39014cb276c80db0636f8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 13 Oct 2012 09:28:52 +0100 Subject: imagemagick: add fontconfig option. Closes #15417. --- Library/Formula/imagemagick.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3