homebrew-core/Formula/dcraw.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

16 lines
382 B
Ruby

require 'formula'
class Dcraw <Formula
head 'http://www.cybercom.net/~dcoffin/dcraw/dcraw.c'
homepage 'http://www.cybercom.net/~dcoffin/dcraw/'
md5 'cd5cb6e56d5b925c59680abe24b9b03a'
depends_on 'jpeg'
depends_on 'liblcms'
def install
cc = ENV['CC'] || 'gcc'
system "#{cc} -o dcraw #{ENV['CFLAGS']} dcraw.c -lm -ljpeg -llcms"
bin.install 'dcraw'
end
end