aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLiam Staskawicz2012-10-21 23:25:57 -0700
committerAdam Vandenberg2012-10-23 12:30:50 -0700
commitf45378ee82f3308658a04c2fc29209f84f06e520 (patch)
treeb3b2a4dcdfdec92afbb87cf99df58cf5e6bc7f01 /Library
parent392f7888d26d171de26471c333b0cf6a0329242b (diff)
downloadhomebrew-f45378ee82f3308658a04c2fc29209f84f06e520.tar.bz2
openocd 0.6.1
Closes #15592. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/open-ocd.rb120
1 files changed, 38 insertions, 82 deletions
diff --git a/Library/Formula/open-ocd.rb b/Library/Formula/open-ocd.rb
index a56a61970..b205f0635 100644
--- a/Library/Formula/open-ocd.rb
+++ b/Library/Formula/open-ocd.rb
@@ -1,93 +1,49 @@
require 'formula'
class OpenOcd < Formula
- url 'http://download.berlios.de/openocd/openocd-0.5.0.tar.bz2'
- homepage 'http://openocd.berlios.de/web/'
- sha1 '807e4214b005029dccd1ed8af36f3897a5c6f49b'
+ homepage 'http://sourceforge.net/projects/openocd/'
+ url 'http://downloads.sourceforge.net/project/openocd/openocd/0.6.1/openocd-0.6.1.tar.bz2'
+ sha1 'b286dd9c0c6ca5cc7a76d25e404ad99a488e2c61'
- depends_on 'libusb-compat'
+ option 'enable-ft2232_libftdi', 'Enable building support for FT2232 based devices with libftdi driver'
+ option 'enable-ft2232_ftd2xx', 'Enable building support for FT2232 based devices with FTD2XX driver'
- if ARGV.include?('--enable-ft2232_libftdi') || ARGV.include?('--enable-presto_libftdi')
- depends_on 'libftdi'
- end
+ depends_on 'libusb-compat'
+ depends_on 'libftdi' if build.include? 'enable-ft2232_libftdi'
- def options
- [
- ['--enable-dummy', 'Enable building the dummy JTAG port driver' ],
- ['--enable-ft2232_libftdi', 'Enable building support for FT2232 based devices with libftdi driver' ],
- ['--enable-ft2232_ftd2xx', 'Enable building support for FT2232 based devices with FTD2XX driver' ],
- ['--enable-gw16012', 'Enable building support for Gateworks GW16012 JTAG Programmer' ],
- ['--enable-parport', 'Enable building the pc parallel port driver' ],
- ['--disable-parport-ppdev', 'Disable use of ppdev (/dev/parportN) for parport (for x86 only)' ],
- ['--enable-parport-giveio', 'Enable use of giveio for parport (for CygWin only)' ],
- ['--enable-presto_libftdi', 'Enable building support for ASIX Presto Programmer with libftdi driver' ],
- ['--enable-presto_ftd2xx', 'Enable building support for ASIX Presto Programmer with FTD2XX driver' ],
- ['--enable-amtjtagaccel', 'Enable building the Amontec JTAG-Accelerator driver' ],
- ['--enable-arm-jtag-ew', 'Enable building support for the Olimex ARM-JTAG-EW Programmer' ],
- ['--enable-jlink', 'Enable building support for the Segger J-Link JTAG Programmer' ],
- ['--enable-rlink', 'Enable building support for the Raisonance RLink JTAG Programmer' ],
- ['--enable-usbprog', 'Enable building support for the usbprog JTAG Programmer' ],
- ['--enable-vsllink', 'Enable building support for the Versaloon-Link JTAG Programmer' ],
- ['--enable-oocd_trace', 'Enable building support for the OpenOCD+trace ETM capture device' ],
- ['--enable-ep93xx', 'Enable building support for EP93xx based SBCs' ],
- ['--enable-at91rm9200', 'Enable building support for AT91RM9200 based SBCs' ],
- ['--enable-ecosboard', 'Enable building support for eCos based JTAG debugger' ],
- ['--enable-zy1000', 'Enable ZY1000 interface' ],
- ['--enable-minidriver-dummy', 'Enable the dummy minidriver' ],
- ['--enable-ioutil', 'Enable ioutil functions - useful for standalone OpenOCD implementations'],
- ['--disable-doxygen-html', 'Disable building Doxygen manual as HTML' ],
- ['--enable-doxygen-pdf', 'Enable building Doxygen manual as PDF' ],
- ['--disable-assert', 'turn off assertions' ],
- ['--enable-verbose', 'Enable verbose JTAG I/O messages (for debugging)' ],
- ['--enable-verbose-jtag-io', 'Enable verbose JTAG I/O messages (for debugging)' ],
- ['--enable-verbose-usb-io', 'Enable verbose USB I/O messages (for debugging)' ],
- ['--enable-verbose-usb-comms', 'Enable verbose USB communication messages (for debugging)' ],
- ['--enable-malloc-logging', 'Include free space in logging messages (requires malloc.h)' ],
- ['--disable-gccwarnings', 'Disable extra gcc warnings during build' ],
- ['--disable-wextra', 'Disable extra compiler warnings' ],
- ['--disable-werror', 'Do not treat warnings as errors' ]
+ def install
+ # default options that don't imply additional dependencies
+ args = %W[
+ --enable-ftdi
+ --enable-arm-jtag-ew
+ --enable-jlink
+ --enable-rlink
+ --enable-stlink
+ --enable-ulink
+ --enable-usbprog
+ --enable-vsllink
+ --enable-ep93xx
+ --enable-at91rm9200
+ --enable-ecosboard
+ --enable-opendous
+ --enable-osbdm
+ --enable-buspirate
]
- end
- def install
- args = ['--enable-maintainer-mode', "--prefix=#{prefix}"]
- args << '--enable-dummy' if ARGV.include? '--enable-dummy'
- args << '--enable-ft2232_libftdi' if ARGV.include? '--enable-ft2232_libftdi'
- args << '--enable-ft2232_ftd2xx' if ARGV.include? '--enable-ft2232_ftd2xx'
- args << '--enable-gw16012' if ARGV.include? '--enable-gw16012'
- args << '--enable-parport' if ARGV.include? '--enable-parport'
- args << '--disable-parport-ppdev' if ARGV.include? '--disable-parport-ppdev'
- args << '--enable-parport-giveio' if ARGV.include? '--enable-parport-giveio'
- args << '--enable-presto_libftdi' if ARGV.include? '--enable-presto_libftdi'
- args << '--enable-presto_ftd2xx' if ARGV.include? '--enable-presto_ftd2xx'
- args << '--enable-amtjtagaccel' if ARGV.include? '--enable-amtjtagaccel'
- args << '--enable-arm-jtag-ew' if ARGV.include? '--enable-arm-jtag-ew'
- args << '--enable-jlink' if ARGV.include? '--enable-jlink'
- args << '--enable-rlink' if ARGV.include? '--enable-rlink'
- args << '--enable-usbprog' if ARGV.include? '--enable-usbprog'
- args << '--enable-vsllink' if ARGV.include? '--enable-vsllink'
- args << '--enable-oocd_trace' if ARGV.include? '--enable-oocd_trace'
- args << '--enable-ep93xx' if ARGV.include? '--enable-ep93xx'
- args << '--enable-at91rm9200' if ARGV.include? '--enable-at91rm9200'
- args << '--enable-ecosboard' if ARGV.include? '--enable-ecosboard'
- args << '--enable-zy1000' if ARGV.include? '--enable-zy1000'
- args << '--enable-minidriver-dummy' if ARGV.include? '--enable-minidriver-dummy'
- args << '--enable-ioutil' if ARGV.include? '--enable-ioutil'
- args << '--disable-doxygen-html' if ARGV.include? '--disable-doxygen-html'
- args << '--enable-doxygen-pdf' if ARGV.include? '--enable-doxygen-pdf'
- args << '--disable-assert' if ARGV.include? '--disable-assert'
- args << '--enable-verbose' if ARGV.include? '--enable-verbose'
- args << '--enable-verbose-jtag-io' if ARGV.include? '--enable-verbose-jtag-io'
- args << '--enable-verbose-usb-io' if ARGV.include? '--enable-verbose-usb-io'
- args << '--enable-verbose-usb-comms' if ARGV.include? '--enable-verbose-usb-comms'
- args << '--enable-malloc-logging' if ARGV.include? '--enable-malloc-logging'
- args << '--disable-gccwarnings' if ARGV.include? '--disable-gccwarnings'
- args << '--disable-wextra' if ARGV.include? '--disable-wextra'
- args << '--disable-werror' if ARGV.include? '--disable-werror'
+ if build.include? "enable-ft2232_libftdi"
+ args << "--enable-ft2232_libftdi"
+ args << "--enable-presto_libftdi"
+ args << "--enable-usb_blaster_libftdi"
+ end
+
+ if build.include? "enable-ft2232_ftd2xx"
+ args << "--enable-ft2232_ftd2xx"
+ args << "--enable-presto_ftd2xx"
+ end
- system './configure', *args
- # Separate steps seem to be needed
- system 'make'
- system 'make install'
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ *args
+ system "make install"
end
end