homebrew-core/Formula/dcraw.rb
2010-12-08 21:17:14 +00:00

17 lines
483 B
Ruby

require 'formula'
class Dcraw <Formula
homepage 'http://www.cybercom.net/~dcoffin/dcraw/'
url 'http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-9.05.tar.gz'
md5 'e531229e4e79bb67a7007eec7aa74116'
depends_on 'jpeg'
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"
bin.install 'dcraw'
man1.install 'dcraw.1'
end
end