homebrew-core/Formula/avrdude.rb
Caio Henrique de Queiroz Katayama 03c24fe13b Added optional USB support to avrdude.
Closes Homebrew/homebrew#3838.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-01-08 10:52:27 +00:00

19 lines
498 B
Ruby

require 'formula'
class Avrdude <Formula
url 'http://mirror.lihnidos.org/GNU/savannah/avrdude/avrdude-5.10.tar.gz'
homepage 'http://savannah.nongnu.org/projects/avrdude/'
md5 '69b082683047e054348088fd63bad2ff'
depends_on 'libusb-compat' if ARGV.include? '--with-usb'
def options
[['--with-usb', 'Compile AVRDUDE with USB support.']]
end
def install
ENV.j1
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end