2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-03 04:51:33 +00:00
|
|
|
|
|
|
|
class Dcraw <Formula
|
2010-05-03 01:26:54 +00:00
|
|
|
# Note that the file is versioned, but not in source control,
|
|
|
|
# so updates are random and break the MD5. If you try to install
|
|
|
|
# and get an MD5 mismatch, check for a newer version number on
|
|
|
|
# http://www.cybercom.net/~dcoffin/dcraw/RCS/dcraw.c,v
|
|
|
|
# and update the version and MD5 in a patch. Thanks.
|
2009-10-03 04:51:33 +00:00
|
|
|
homepage 'http://www.cybercom.net/~dcoffin/dcraw/'
|
2010-05-03 01:26:54 +00:00
|
|
|
url 'http://www.cybercom.net/~dcoffin/dcraw/dcraw.c'
|
2010-06-18 15:58:10 +00:00
|
|
|
version '1.436'
|
|
|
|
md5 'd680b17ce75ab1c791fe92b467f1005d'
|
2009-10-03 04:51:33 +00:00
|
|
|
|
|
|
|
depends_on 'jpeg'
|
2010-07-28 13:22:03 +00:00
|
|
|
depends_on 'little-cms'
|
2009-10-03 04:51:33 +00:00
|
|
|
|
|
|
|
def install
|
2010-08-10 15:05:31 +00:00
|
|
|
system "#{ENV.cc} -o dcraw #{ENV.cflags} dcraw.c -lm -ljpeg -llcms"
|
2009-10-03 04:51:33 +00:00
|
|
|
bin.install 'dcraw'
|
|
|
|
end
|
|
|
|
end
|