2010-03-20 23:52:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Avrdude < Formula
|
2010-03-20 23:52:53 +00:00
|
|
|
homepage 'http://savannah.nongnu.org/projects/avrdude/'
|
2012-08-09 05:06:45 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/avrdude/avrdude-5.11.1.tar.gz'
|
2011-11-10 02:37:19 +00:00
|
|
|
md5 '3a43e288cb32916703b6945e3f260df9'
|
2010-03-20 23:52:53 +00:00
|
|
|
|
2012-08-09 05:06:45 +00:00
|
|
|
option 'with-usb', 'Compile AVRDUDE with USB support.'
|
2011-01-08 05:17:26 +00:00
|
|
|
|
2012-08-09 15:51:54 +00:00
|
|
|
depends_on 'libusb-compat' if build.include? 'with-usb'
|
2011-01-08 05:17:26 +00:00
|
|
|
|
2010-03-20 23:52:53 +00:00
|
|
|
def install
|
2012-08-09 05:06:45 +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
|