homebrew-core/Formula/imagemagick.rb

45 lines
1.5 KiB
Ruby
Raw Normal View History

2009-06-28 15:56:15 +00:00
require 'brewkit'
# some credit to http://github.com/maddox/magick-installer
2009-06-28 15:56:15 +00:00
class Imagemagick <Formula
2009-09-28 05:26:28 +00:00
@url='ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.6-5.tar.gz'
@md5='668919a5a7912fb6778975bc55893004'
2009-06-28 15:56:15 +00:00
@homepage='http://www.imagemagick.org'
depends_on 'jpeg'
depends_on 'libwmf' => :optional
depends_on 'libtiff' => :optional
depends_on 'little-cms' => :optional
depends_on 'ghostscript' => :recommended
2009-06-28 15:56:15 +00:00
def install
2009-08-08 13:08:13 +00:00
ENV.libpng
ENV.deparallelize
ENV.O3 # takes forever otherwise
2009-08-08 13:08:13 +00:00
# versioned stuff in main tree is pointless for us
inreplace 'configure', '${PACKAGE_NAME}-${PACKAGE_VERSION}', '${PACKAGE_NAME}'
2009-09-09 09:40:35 +00:00
system "./configure", "--disable-static",
"--with-modules",
"--without-magick-plus-plus",
"--disable-dependency-tracking",
2009-08-08 13:08:13 +00:00
"--without-maximum-compile-warnings",
"--prefix=#{prefix}",
"--disable-osx-universal-binary",
"--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts",
2009-08-08 13:08:13 +00:00
"--without-perl" # I couldn't make this compile
2009-06-28 15:56:15 +00:00
system "make install"
2009-08-08 13:08:13 +00:00
# We already copy these into the keg root
(share+'ImageMagick'+'NEWS.txt').unlink
(share+'ImageMagick'+'LICENSE').unlink
(share+'ImageMagick'+'ChangeLog').unlink
2009-08-08 13:08:13 +00:00
end
def caveats
"If there is something missing that you need with this formula, please create an issue at #{HOMEBREW_WWW}"
2009-06-28 15:56:15 +00:00
end
end