2011-03-10 05:11:03 +00:00
|
|
|
class Avrdude < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Atmel AVR MCU programmer"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://savannah.nongnu.org/projects/avrdude/"
|
|
|
|
url "http://download.savannah.gnu.org/releases/avrdude/avrdude-6.1.tar.gz"
|
|
|
|
mirror "http://download-mirror.savannah.gnu.org/releases/avrdude/avrdude-6.1.tar.gz"
|
|
|
|
sha256 "9e98baca8e57cad402aaa1c7b61c8de750ed4f6fed577f7e4935db0430783d3b"
|
2010-03-20 23:52:53 +00:00
|
|
|
|
2014-03-23 04:47:59 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "2d759fea880b097754defe8016e026390dbcfb31" => :mavericks
|
|
|
|
sha1 "83017c7fb34b0a2da5919b6b1dde9c05bf237f2a" => :mountain_lion
|
|
|
|
sha1 "438562a4b84b4e868cdf01b81e7543053a89a7ff" => :lion
|
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:51 +00:00
|
|
|
head do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude/"
|
2013-06-26 16:03:20 +00:00
|
|
|
|
2014-06-02 02:38:17 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-06-26 16:03:20 +00:00
|
|
|
end
|
|
|
|
|
2014-03-20 18:29:37 +00:00
|
|
|
depends_on :macos => :snow_leopard # needs GCD/libdispatch
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "libusb-compat"
|
|
|
|
depends_on "libftdi0"
|
|
|
|
depends_on "libelf"
|
|
|
|
depends_on "libhid" => :optional
|
2013-09-20 15:15:51 +00:00
|
|
|
|
2010-03-20 23:52:53 +00:00
|
|
|
def install
|
2014-07-22 03:57:52 +00:00
|
|
|
if build.head?
|
|
|
|
inreplace "bootstrap", /libtoolize/, "glibtoolize"
|
|
|
|
system "./bootstrap"
|
|
|
|
end
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-03-20 23:52:53 +00:00
|
|
|
end
|
|
|
|
end
|