diff options
| author | Adam Vandenberg | 2014-06-15 16:20:33 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-06-16 22:24:34 -0700 |
| commit | 1fe28f863ae1fd16c45fe1ff4983d07e0633556b (patch) | |
| tree | 1d3830f8525cf7e7796a73ac716712e34e988eb7 /Library/Formula | |
| parent | 42eb3ba0facf8ca2b6d2329943cabc85633df25b (diff) | |
| download | homebrew-1fe28f863ae1fd16c45fe1ff4983d07e0633556b.tar.bz2 | |
imagemagick: optional openjpeg support
Closes #28153
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/imagemagick.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index b94cf8bbf..f091c1eff 100644 --- a/Library/Formula/imagemagick.rb +++ b/Library/Formula/imagemagick.rb @@ -22,6 +22,7 @@ class Imagemagick < Formula option 'with-quantum-depth-32', 'Compile with a quantum depth of 32 bit' option 'with-perl', 'enable build/install of PerlMagick' option 'without-magick-plus-plus', 'disable build/install of Magick++' + option 'with-jp2', 'Compile with Jpeg2000 support' depends_on "libtool" => :run @@ -42,6 +43,7 @@ class Imagemagick < Formula depends_on 'openexr' => :optional depends_on 'ghostscript' => :optional depends_on 'webp' => :optional + depends_on 'homebrew/versions/openjpeg21' if build.with? 'jp2' opoo '--with-ghostscript is not recommended' if build.with? 'ghostscript' @@ -78,6 +80,12 @@ class Imagemagick < Formula quantum_depth = 8 end + if build.with? "jp2" + args << "--with-openjp2" + else + args << "--without-openjp2" + end + args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth args << "--with-rsvg" if build.with? 'librsvg' args << "--without-x" if build.without? 'x11' |
