aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/open-ocd.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/open-ocd.rb b/Library/Formula/open-ocd.rb
new file mode 100644
index 000000000..026313dd0
--- /dev/null
+++ b/Library/Formula/open-ocd.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class OpenOcd <Formula
+ url 'http://download.berlios.de/openocd/openocd-0.4.0.tar.bz2'
+ homepage 'http://openocd.berlios.de/web/'
+ md5 '11a81b5f200fb0c318d9f49182bb71d7'
+
+ aka "openocd"
+
+ depends_on 'libusb-compat'
+ depends_on 'libftdi' if ARGV.include? "--enable-ft2232_libftdi"
+
+ def install
+ args = ["--enable-maintainer-mode", "--prefix=#{prefix}"]
+ args << "--enable-ft2232_libftdi" if ARGV.include? "--enable-ft2232_libftdi"
+
+ system "./configure", *args
+ system "make install"
+ end
+end