homebrew-core/Formula/dcraw.rb
royhodgman a6130af15b dcraw 9.12
Closes Homebrew/homebrew#10526.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-27 17:02:46 -06:00

18 lines
515 B
Ruby

require 'formula'
class Dcraw < Formula
homepage 'http://www.cybercom.net/~dcoffin/dcraw/'
url 'http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-9.12.tar.gz'
md5 '917fee61e1509b935a8b8ff08b067b5f'
depends_on 'jpeg'
depends_on 'jasper'
depends_on 'little-cms'
def install
ENV.append_to_cflags "-I#{HOMEBREW_PREFIX}/include -L#{HOMEBREW_PREFIX}/lib"
system "#{ENV.cc} -o dcraw #{ENV.cflags} dcraw.c -lm -ljpeg -llcms -ljasper"
bin.install 'dcraw'
man1.install 'dcraw.1'
end
end