diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/imagemagick.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index 092c538b5..9a3f6487e 100644 --- a/Library/Formula/imagemagick.rb +++ b/Library/Formula/imagemagick.rb @@ -13,6 +13,10 @@ def use_wmf? ARGV.include? '--use-wmf' end +def use_rsvg? + ARGV.include? '--use-rsvg' +end + def use_lqr? ARGV.include? '--use-lqr' end @@ -71,6 +75,7 @@ class Imagemagick < Formula depends_on 'jasper' => :optional depends_on 'libwmf' if use_wmf? + depends_on 'librsvg' if use_rsvg? depends_on 'liblqr' if use_lqr? depends_on 'openexr' if use_exr? @@ -83,6 +88,7 @@ class Imagemagick < Formula [ ['--with-ghostscript', 'Compile against ghostscript (not recommended.)'], ['--use-wmf', 'Compile with libwmf support.'], + ['--use-rsvg', 'Compile with librsvg support.'], ['--use-lqr', 'Compile with liblqr support.'], ['--use-exr', 'Compile with openexr support.'], ['--disable-openmp', 'Disable OpenMP.'], @@ -121,6 +127,7 @@ class Imagemagick < Formula end args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth + args << "--with-rsvg" if use_rsvg? # versioned stuff in main tree is pointless for us inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}' |
