2009-06-28 15:56:15 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
2009-08-30 15:12:46 +00:00
|
|
|
# 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'
|
|
|
|
|
2009-09-18 18:16:39 +00:00
|
|
|
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
|
2009-08-07 14:41:43 +00:00
|
|
|
ENV.deparallelize
|
2009-09-29 19:34:34 +00:00
|
|
|
ENV.O3 # takes forever otherwise
|
2009-08-30 15:12:46 +00:00
|
|
|
|
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",
|
2009-09-18 18:16:39 +00:00
|
|
|
"--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
|
|
|
|
2009-09-18 18:16:39 +00:00
|
|
|
# We already copy these into the keg root
|
2009-09-22 09:53:29 +00:00
|
|
|
(share+'ImageMagick'+'NEWS.txt').unlink
|
|
|
|
(share+'ImageMagick'+'LICENSE').unlink
|
|
|
|
(share+'ImageMagick'+'ChangeLog').unlink
|
2009-08-08 13:08:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
2009-09-21 17:42:24 +00:00
|
|
|
"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
|
2009-09-26 23:09:50 +00:00
|
|
|
end
|