homebrew-core/Formula/dcled.rb
Robert Flick 64ebd99016 Updated Formula to 1.9
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-06 12:16:53 -07:00

21 lines
586 B
Ruby

require 'formula'
class Dcled <Formula
url 'http://www.jeffrika.com/~malakai/dcled/dcled-1.9.tgz'
homepage 'http://www.jeffrika.com/~malakai/dcled/index.html'
md5 '7cffd6585a5d355626d60e2127599dd0'
depends_on 'libhid'
def install
inreplace 'makefile' do |s|
s.change_make_var! 'INSTALLDIR', bin
s.change_make_var! 'CC', ENV.cc
s.change_make_var! 'CFLAGS', "#{ENV.cflags} -I#{HOMEBREW_PREFIX}/include"
s.change_make_var! 'LDFLAGS', ENV.ldflags + ' -lm -lhid' unless ENV.ldflags.nil?
end
system "make"
system "make install"
end
end