homebrew-core/Formula/imagemagick.rb

36 lines
1014 B
Ruby
Raw Normal View History

2009-06-28 15:56:15 +00:00
require 'brewkit'
class Imagemagick <Formula
2009-08-08 13:08:13 +00:00
@url='ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.4-9.tar.bz2'
@md5='25391113fbcd5642b67949756fd078cb'
2009-06-28 15:56:15 +00:00
@homepage='http://www.imagemagick.org'
def deps
LibraryDep.new 'jpeg'
end
def install
2009-08-08 13:08:13 +00:00
ENV.libpng
ENV.deparallelize
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}'
system "./configure", "--disable-dependency-tracking",
"--without-maximum-compile-warnings",
"--prefix=#{prefix}",
"--disable-osx-universal-binary",
"--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 in
d=prefix+'share'
2009-08-08 13:08:13 +00:00
(d+'NEWS.txt').unlink
(d+'LICENSE').unlink
(d+'ChangeLog').unlink
end
def caveats
"This package is a bit of a mess, lots of components don't get compiled."
2009-06-28 15:56:15 +00:00
end
end