2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-03 04:51:33 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Dcraw < Formula
|
2009-10-03 04:51:33 +00:00
|
|
|
homepage 'http://www.cybercom.net/~dcoffin/dcraw/'
|
2014-02-02 00:09:02 +00:00
|
|
|
url 'http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-9.20.tar.gz'
|
|
|
|
sha1 '9b8ca82eaaf6582ffa0f2602e8ca705c722ea87e'
|
2009-10-03 04:51:33 +00:00
|
|
|
|
|
|
|
depends_on 'jpeg'
|
2011-09-04 08:15:01 +00:00
|
|
|
depends_on 'jasper'
|
2014-02-02 00:09:02 +00:00
|
|
|
depends_on 'little-cms2'
|
2009-10-03 04:51:33 +00:00
|
|
|
|
|
|
|
def install
|
2010-09-28 18:14:06 +00:00
|
|
|
ENV.append_to_cflags "-I#{HOMEBREW_PREFIX}/include -L#{HOMEBREW_PREFIX}/lib"
|
2014-02-02 00:09:02 +00:00
|
|
|
system "#{ENV.cc} -o dcraw #{ENV.cflags} dcraw.c -lm -ljpeg -llcms2 -ljasper"
|
2010-12-08 21:17:14 +00:00
|
|
|
bin.install 'dcraw'
|
2010-11-19 14:07:43 +00:00
|
|
|
man1.install 'dcraw.1'
|
2009-10-03 04:51:33 +00:00
|
|
|
end
|
|
|
|
end
|