homebrew-core/Formula/open-ocd.rb
Nelson Tam 3a08cd4571 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>
2010-07-12 08:33:41 -07:00

20 lines
532 B
Ruby

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