homebrew-core/Formula/dcraw.rb
Nimish Telang 84d7127946 dcraw 9.16
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-16 20:05:41 -07:00

18 lines
524 B
Ruby

require 'formula'
class Dcraw < Formula
homepage 'http://www.cybercom.net/~dcoffin/dcraw/'
url 'http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-9.16.tar.gz'
sha1 'fb73ca3ccd703bd522a759e0366814f0a3411902'
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