homebrew-core/Formula/dcraw.rb

19 lines
515 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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'
2010-07-28 13:22:03 +00:00
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"
2010-12-08 21:17:14 +00:00
bin.install 'dcraw'
2010-11-19 14:07:43 +00:00
man1.install 'dcraw.1'
end
end