aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorchdiza2013-09-29 16:00:25 -0400
committerMike McQuaid2013-10-01 16:50:40 +0100
commit3ab3c10968ae02796b7101b8147bb67ae3ecfa7d (patch)
treeec64bbc234fb6b9e12db7c18ddaa36f992dfb665 /Library
parent529ef27bca9b80e1d4a32c71347356dda2a93179 (diff)
downloadhomebrew-3ab3c10968ae02796b7101b8147bb67ae3ecfa7d.tar.bz2
graphicsmagick: fix options.
Closes #22919. Closes #22929. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/graphicsmagick.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb
index c985cfd9f..422711d7e 100644
--- a/Library/Formula/graphicsmagick.rb
+++ b/Library/Formula/graphicsmagick.rb
@@ -10,6 +10,7 @@ class Graphicsmagick < 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 'without-magick-plus-plus', 'disable build/install of Magick++'
+ option 'with-svg', 'Compile with svg support'
depends_on :libltdl
@@ -25,11 +26,7 @@ class Graphicsmagick < Formula
depends_on 'little-cms2' => :optional
depends_on 'jasper' => :optional
depends_on 'libwmf' => :optional
- depends_on 'librsvg' => :optional
- 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)
@@ -54,11 +51,9 @@ class Graphicsmagick < Formula
"--with-modules"]
args << "--disable-openmp" unless build.include? 'enable-openmp'
- args << "--disable-opencl" if build.include? 'disable-opencl'
args << "--without-gslib" unless build.with? 'ghostscript'
args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" unless build.with? 'ghostscript'
args << "--without-magick-plus-plus" if build.without? 'magick-plus-plus'
- args << "--enable-hdri=yes" if build.include? 'enable-hdri'
if build.with? 'quantum-depth-32'
quantum_depth = 32
@@ -69,10 +64,11 @@ class Graphicsmagick < Formula
end
args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth
- args << "--with-rsvg" if build.with? 'librsvg'
args << "--without-x" unless build.with? 'x11'
- args << "--with-freetype=yes" if build.with? 'freetype'
- args << "--with-webp=yes" if build.include? 'webp'
+ args << "--without-ttf" if build.without? 'freetype'
+ args << "--without-xml" unless build.with? 'svg'
+ args << "--without-lcms" unless build.with? 'little-cms'
+ args << "--without-lcms2" unless build.with? 'little-cms2'
# versioned stuff in main tree is pointless for us
inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}'