ImageMagick and Jpeg-lib formulae

This commit is contained in:
Max Howell 2009-06-28 16:56:15 +01:00
parent 46e09a2d6e
commit 4018e05d35
2 changed files with 47 additions and 0 deletions

17
Formula/imagemagick.rb Normal file
View file

@ -0,0 +1,17 @@
require 'brewkit'
class Imagemagick <Formula
@url='ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.5.3-10.tar.bz2'
@md5='ad485ed0eca5eb8b8a1649bae40cec7d'
@homepage='http://www.imagemagick.org'
def deps
LibraryDep.new 'jpeg'
end
def install
system "./configure --disable-debug --disable-dependency-tracking --without-maximum-compile-warnings --prefix='#{prefix}'"
ENV['MAKEFLAGS']=''
system "make install"
end
end

30
Formula/jpeg.rb Normal file
View file

@ -0,0 +1,30 @@
require 'brewkit'
class Jpeg <Formula
@url='http://www.ijg.org/files/jpegsrc.v6b.tar.gz'
@md5='dbd5f3b47ed13132f04c685d608a7547'
@homepage='http://www.ijg.org'
def initialize name
super name
# the jpeg group have one crazy ass naming scheme
@version='6b'
end
def install
# --mandir='#{man}' doesn't do anything
system "./configure --disable-debug --prefix='#{prefix}'"
# cope with braindead install system
(prefix+'man'+'man1').mkpath
bin.mkpath
include.mkpath
lib.mkpath
# this package is shit
inreplace 'Makefile', 'LIBTOOL = ./libtool', 'LIBTOOL = /usr/bin/libtool'
system "make install install-lib install-headers"
# fix manpages
(prefix+'man').mv prefix+'share'
end
end