aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorNelson Tam2010-07-12 16:32:58 +1000
committerAdam Vandenberg2010-07-12 08:33:41 -0700
commita682f837dfe59e5242ff5594080a4b6263e03541 (patch)
treec0d3c9f1f9902fb28a307c712e7b958a7d900ed9 /Library/Formula
parent161c776083b194de4451eccd890337c95c202bf8 (diff)
downloadhomebrew-a682f837dfe59e5242ff5594080a4b6263e03541.tar.bz2
New formula: openocd (#1831)
openocd is an open-source On-Chip Debugger software package. It is commonly used in embedded software development. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-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