diff options
| author | James Aitken | 2013-10-18 12:55:26 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-20 09:37:55 -0700 |
| commit | 6a44291de523c37025a42aea62cac15457fe6cbb (patch) | |
| tree | dd67ddbda67b3cbff79dde110cfce5e0f46fea70 /Library/Formula | |
| parent | 992e94009deb8595358762dc0c43ff6de363ea34 (diff) | |
| download | homebrew-6a44291de523c37025a42aea62cac15457fe6cbb.tar.bz2 | |
ImageMagick: add Perl support
Closes #23347.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/imagemagick.rb | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index fb3f89744..f23a99b64 100644 --- a/Library/Formula/imagemagick.rb +++ b/Library/Formula/imagemagick.rb @@ -20,6 +20,7 @@ class Imagemagick < Formula option 'with-quantum-depth-8', 'Compile with a quantum depth of 8 bit' 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 'with-perl', 'enable build/install of PerlMagick' option 'without-magick-plus-plus', 'disable build/install of Magick++' depends_on :libltdl @@ -58,7 +59,6 @@ class Imagemagick < Formula def install args = [ "--disable-osx-universal-binary", - "--without-perl", # I couldn't make this compile "--prefix=#{prefix}", "--disable-dependency-tracking", "--enable-shared", @@ -69,6 +69,7 @@ class Imagemagick < Formula args << "--disable-openmp" unless build.include? 'enable-openmp' args << "--disable-opencl" if build.include? 'disable-opencl' args << "--without-gslib" unless build.with? 'ghostscript' + args << "--without-perl" unless build.with? 'perl' 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' @@ -94,6 +95,20 @@ class Imagemagick < Formula system "make install" end + def caveats + s = <<-EOS.undent + For full Perl support you must install the Image::Magick module from the CPAN. + https://metacpan.org/module/Image::Magick + + The version of the Perl module and ImageMagick itself need to be kept in sync. + If you upgrade one, you must upgrade the other. + + For this version of ImageMagick you should install + version #{version} of the Image::Magick Perl module. + EOS + s if build.with? 'perl' + end + test do system "#{bin}/identify", "/usr/share/doc/cups/images/cups.png" end |
