aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-02-02 00:20:39 -0600
committerMisty De Meo2012-02-02 11:48:04 -0600
commit4a8e058acb541c84c59567b10db6e47298427dc9 (patch)
treed09bc53ba5c54dca30f6e27e7da30be6d8b287b3 /Library
parentd158c7bd6f97915505481774bd7013a517b72619 (diff)
downloadhomebrew-4a8e058acb541c84c59567b10db6e47298427dc9.tar.bz2
graphicsmagic: add quantum depth options
Closes #9162.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/graphicsmagick.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb
index 1dbaa4dd4..0fae5d503 100644
--- a/Library/Formula/graphicsmagick.rb
+++ b/Library/Formula/graphicsmagick.rb
@@ -12,6 +12,16 @@ def use_wmf?
ARGV.include? '--use-wmf'
end
+def quantum_depth
+ if ARGV.include? '--with-quantum-depth-32'
+ 32
+ elsif ARGV.include? '--with-quantum-depth-16'
+ 16
+ elsif ARGV.include? '--with-quantum-depth-8'
+ 8
+ end
+end
+
class Graphicsmagick < Formula
url 'http://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.12/GraphicsMagick-1.3.12.tar.bz2'
head 'hg://http://graphicsmagick.hg.sourceforge.net:8000/hgroot/graphicsmagick/graphicsmagick'
@@ -37,6 +47,9 @@ class Graphicsmagick < Formula
['--with-ghostscript', 'Compile against ghostscript (not recommended.)'],
['--without-magick-plus-plus', "Don't build C++ library."],
['--use-wmf', 'Compile with libwmf support.'],
+ ['--with-quantum-depth-8', 'Compile with a quantum depth of 8 bit'],
+ ['--with-quantum-depth-16', 'Compile with a quantum depth of 16 bit'],
+ ['--with-quantum-depth-32', 'Compile with a quantum depth of 32 bit'],
]
end
@@ -54,6 +67,7 @@ class Graphicsmagick < Formula
args << "--with-gslib" if ghostscript_srsly?
args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" \
unless ghostscript_fonts?
+ args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth
system "./configure", *args
system "make install"