aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/imagemagick.rb
diff options
context:
space:
mode:
authorThomas König2013-04-19 14:52:45 +0200
committerMike McQuaid2013-04-19 14:21:57 +0100
commitd5e14fd1f696ba86c9ad8af5c02c70896383ae51 (patch)
tree1debda81977962fce108901a5fd8a57581eaf739 /Library/Formula/imagemagick.rb
parent3a37f3ee41120da455bc2e7a9f7efdc3ac3040b0 (diff)
downloadhomebrew-d5e14fd1f696ba86c9ad8af5c02c70896383ae51.tar.bz2
imagemagick: fix librsvg option, add webp option.
Closes #19308. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/imagemagick.rb')
-rw-r--r--Library/Formula/imagemagick.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb
index 6a6d7fa90..748fc74e3 100644
--- a/Library/Formula/imagemagick.rb
+++ b/Library/Formula/imagemagick.rb
@@ -35,6 +35,7 @@ class Imagemagick < Formula
depends_on 'liblqr' => :optional
depends_on 'openexr' => :optional
depends_on 'ghostscript' => :optional
+ depends_on 'webp' => :optional
opoo '--with-ghostscript is not recommended' if build.with? 'ghostscript'
if build.with? 'openmp' and (MacOS.version == 10.5 or ENV.compiler == :clang)
@@ -83,10 +84,11 @@ class Imagemagick < Formula
end
args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth
- args << "--with-rsvg" if build.with? 'rsvg'
+ args << "--with-rsvg" if build.with? 'librsvg'
args << "--without-x" unless build.with? 'x11'
args << "--with-fontconfig=yes" if build.with? 'fontconfig'
args << "--with-freetype=yes" if build.with? 'freetype'
+ args << "--with-webp=yes" if build.include? 'webp'
# versioned stuff in main tree is pointless for us
inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}'