aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/avrdude.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/avrdude.rb b/Library/Formula/avrdude.rb
index da31652ac..1916229f0 100644
--- a/Library/Formula/avrdude.rb
+++ b/Library/Formula/avrdude.rb
@@ -5,6 +5,12 @@ class Avrdude <Formula
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}"