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/'
|
2013-10-04 05:28:58 +00:00
|
|
|
url 'http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0.1.tar.gz'
|
|
|
|
sha1 'b0f440f1b1ba3890da6e5b752003ca99e550e3bf'
|
2010-03-20 23:52:53 +00:00
|
|
|
|
2013-09-20 15:15:51 +00:00
|
|
|
head do
|
|
|
|
url 'svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude/'
|
2013-06-26 16:03:20 +00:00
|
|
|
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:51 +00:00
|
|
|
depends_on 'libusb-compat'
|
|
|
|
depends_on 'libftdi0'
|
2013-10-04 05:28:58 +00:00
|
|
|
depends_on 'libelf'
|
2013-09-20 15:15:51 +00:00
|
|
|
|
2010-03-20 23:52:53 +00:00
|
|
|
def install
|
2013-06-26 16:03:20 +00:00
|
|
|
system "./bootstrap" if build.head?
|
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
|