diff options
| author | Max Howell | 2009-06-28 16:56:15 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-28 16:56:15 +0100 |
| commit | f0f1069cb353683b62850c4d84dc5e5a1e64573a (patch) | |
| tree | 5cb79ca151463f425c851d7b06d0e699ce168ab4 /Library/Formula/jpeg.rb | |
| parent | 631d64c4fcd0ffeaf8899b3d0c5d4926b7044894 (diff) | |
| download | homebrew-f0f1069cb353683b62850c4d84dc5e5a1e64573a.tar.bz2 | |
ImageMagick and Jpeg-lib formulae
Diffstat (limited to 'Library/Formula/jpeg.rb')
| -rw-r--r-- | Library/Formula/jpeg.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/jpeg.rb b/Library/Formula/jpeg.rb new file mode 100644 index 000000000..b0e264f8d --- /dev/null +++ b/Library/Formula/jpeg.rb @@ -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
\ No newline at end of file |
