diff options
| author | Adam Vandenberg | 2010-10-30 15:17:34 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-30 15:18:00 -0700 |
| commit | 39c77d0106011b220046159af754e14b192a5b1e (patch) | |
| tree | 320c3b2ff00eae6ec6c7084cfc3a8b9d8797d0b5 /Library/Formula | |
| parent | 6333144c7b84d362007177adab2b5c9069a66d06 (diff) | |
| download | homebrew-39c77d0106011b220046159af754e14b192a5b1e.tar.bz2 | |
GraphicsMagick - add --with-magick-plus-plus
Fixes #2950
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/graphicsmagick.rb | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb index 7396a275e..6040b5541 100644 --- a/Library/Formula/graphicsmagick.rb +++ b/Library/Formula/graphicsmagick.rb @@ -34,7 +34,10 @@ class Graphicsmagick <Formula end def options - [['--with-ghostscript', 'Compile against ghostscript (not recommended.)']] + [ + ['--with-ghostscript', 'Compile against ghostscript (not recommended.)'], + ['--with-magick-plus-plus', 'With C++ library.'], + ] end def install @@ -45,23 +48,22 @@ class Graphicsmagick <Formula # versioned stuff in main tree is pointless for us inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}' - args = [ "--prefix=#{prefix}", - "--disable-dependency-tracking", - "--enable-shared", - "--disable-static", - "--with-modules", - "--without-magick-plus-plus" ] - - args << "--disable-openmp" if MACOS_VERSION < 10.6 # libgomp unavailable - args << "--with-gslib" if ghostscript_srsly? - args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" \ + args = ["--disable-dependency-tracking", + "--prefix=#{prefix}", + "--enable-shared", "--disable-static"] + args << "--without-magick-plus-plus" unless ARGV.include? '--with-magick-plus-plus' + args << "--disable-openmp" if MACOS_VERSION < 10.6 # libgomp unavailable + args << "--with-gslib" if ghostscript_srsly? + args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" \ unless ghostscript_fonts? system "./configure", *args system "make install" end - def caveats - "You don't have X11 from the Xcode DMG installed. Consequently GraphicsMagick is less fully featured." unless x11? - end + def caveats; <<-EOS.undent + You don't have X11 from the Xcode DMG installed. Consequently GraphicsMagick + is less fully featured. + EOS + end unless x11? end |
