2010-03-20 23:52:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Avrdude < Formula
|
2011-09-07 04:14:52 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/avrdude/avrdude-5.11.tar.gz'
|
2010-03-20 23:52:53 +00:00
|
|
|
homepage 'http://savannah.nongnu.org/projects/avrdude/'
|
2011-09-07 04:14:52 +00:00
|
|
|
md5 'ba62697270b1292146dc56d462f5da14'
|
2010-03-20 23:52:53 +00:00
|
|
|
|
2011-01-08 05:17:26 +00:00
|
|
|
depends_on 'libusb-compat' if ARGV.include? '--with-usb'
|
|
|
|
|
|
|
|
def options
|
|
|
|
[['--with-usb', 'Compile AVRDUDE with USB support.']]
|
|
|
|
end
|
|
|
|
|
2010-03-20 23:52:53 +00:00
|
|
|
def install
|
2011-08-10 02:09:11 +00:00
|
|
|
ENV.j1 # See http://github.com/mxcl/homebrew/issues/6915
|
2010-03-20 23:52:53 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2011-01-08 10:54:28 +00:00
|
|
|
system "make"
|
2010-03-20 23:52:53 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|