diff options
| author | royhodgman | 2012-09-16 12:35:55 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-16 15:04:51 -0700 |
| commit | d2827b10e1535cffd4cc9a3a5c2fcca8a3317723 (patch) | |
| tree | 002328b5c169d967030c84d9c1edd83851439fd6 /Library/Formula | |
| parent | 3bc9baf0cfea88ee088c9c0a2997b50a7aee3a4e (diff) | |
| download | homebrew-d2827b10e1535cffd4cc9a3a5c2fcca8a3317723.tar.bz2 | |
Graphicsmagick: require X11
As was done with imagemagick in commit
5fad22fc24bd8b0beb250e44d4fb4aec047d8189, add an option to
compile graphicsmagick without support for X.
Tested on ML.
Closes #14968.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/graphicsmagick.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb index 6067635bc..fcc1f6204 100644 --- a/Library/Formula/graphicsmagick.rb +++ b/Library/Formula/graphicsmagick.rb @@ -27,7 +27,7 @@ class Graphicsmagick < Formula head 'hg://http://graphicsmagick.hg.sourceforge.net:8000/hgroot/graphicsmagick/graphicsmagick' - depends_on :x11 + depends_on :x11 unless build.include? 'without-x' depends_on 'jpeg' depends_on 'libwmf' if use_wmf? depends_on 'libtiff' => :optional @@ -47,6 +47,7 @@ class Graphicsmagick < Formula option 'use-wmf', 'Compile with libwmf support.' option 'with-quantum-depth-16', 'Use an 16 bit pixel quantum depth (default is 8)' option 'with-quantum-depth-32', 'Use a 32 bit pixel quantum depth (default is 8)' + option 'without-x', 'Compile without X11' def install # versioned stuff in main tree is pointless for us @@ -61,6 +62,7 @@ class Graphicsmagick < Formula args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" \ unless ghostscript_fonts? args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth + args << "--without-x" if build.include? 'without-x' system "./configure", *args system "make install" |
