aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJavier Goizueta2012-03-07 20:11:42 +0100
committerAdam Vandenberg2012-03-10 10:14:28 -0800
commit183fb0d6666c156f5507a0f4764a52e692197a0f (patch)
tree8b86decd2727141ce915cb5a961ed8dd933c33ef /Library/Formula
parentb10d691c202843705bbc4a2137f91d6499feff45 (diff)
downloadhomebrew-183fb0d6666c156f5507a0f4764a52e692197a0f.tar.bz2
imagemagick: option for rsvg support
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/imagemagick.rb7
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}'