source: trunk/dports/cross/openocd/Portfile

Last change on this file was 137050, checked in by snc@…, 2 years ago

openocd: update to 0.9.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 137050 2015-06-03 18:27:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                openocd
7version             0.9.0
8categories          cross devel
9license             GPL
10maintainers         snc openmaintainer
11description         Open On-Chip Debugger
12long_description    The Open On-Chip Debugger (OpenOCD) aims to provide \
13                    debugging, in-system programming and boundary-scan \
14                    testing for embedded target devices. Built with support \
15                    for FT2232-based programmers by default. See variants for \
16                    programmer options.
17homepage            http://openocd.sourceforge.net/
18platforms           darwin
19
20master_sites        sourceforge:project/openocd/openocd/${version}
21
22use_bzip2           yes
23checksums           sha1    bcf99bb21f09513065b2c9ece148ace7d16cdd0c \
24                    rmd160  21b3c2d80fbf8707644f37e61142d7cccaa8fed0 \
25                    sha256  837042ac9a156b9363cbffa1fcdaf463bfb83a49331addf52e63119642b5f443
26
27configure.args-append  --disable-werror --enable-maintainer-mode
28
29depends_build-append    port:pkgconfig
30
31default_variants +ftdi
32
33variant dummy description {Enable building the dummy port driver} {
34    configure.args-append --enable-dummy
35}
36
37variant parport description {Enable building the pc parallel port driver. WARNING: not supported on OS X.} {
38    configure.args-append --enable-parport
39}
40
41variant ftdi conflicts ft2232_ftd2xx description {Enable building OpenOCD's built-in FTDI driver.} {
42    configure.args-append --enable-ftdi
43        depends_lib-append port:libusb
44}
45
46# The ft2232 variant is deprecated, the ftdi variant is its replacement
47variant ft2232 conflicts ft2232_ftd2xx  description {Enable building support for FT2232 based devices using the libftdi driver, opensource alternate of FTD2XX} {
48    configure.args-append --enable-legacy-ft2232_libftdi
49        depends_lib-append port:libftdi1
50}
51
52# The ft2232_ftd2xx variant is deprecated, the ftdi variant is its replacement
53variant ft2232_ftd2xx conflicts ft2232  description {Enable building support for FT2232 based devices using the FTD2XX driver from ftdichip.com} {
54    patchfiles-append patch-ftd2xx-path.diff
55    use_autoreconf      yes
56    configure.args-append --enable-legacy-ft2232_ftd2xx
57        depends_lib-append port:libftd2xx
58}
59
60variant usb_blaster conflicts usb_blaster_ftd2xx description {Enable building support for the Altera USB-Blaster using the libftdi driver, opensource alternate of FTD2XX} {
61    configure.args-append --enable-usb_blaster_libftdi
62        depends_lib-append port:libftdi1
63}
64
65variant usb_blaster_ftd2xx conflicts usb_blaster description {Enable building support for the Altera USB-Blaster using the FTD2XX driver from ftdichip.com} {
66    patchfiles-append patch-ftd2xx-path.diff
67    use_autoreconf      yes
68    configure.args-append --enable-usb_blaster_ftd2xx
69        depends_lib-append port:libftd2xx
70}
71
72variant amtjtagaccel description {Enable building the Amontec JTAG-Accelerator driver} {
73    configure.args-append --enable-amtjtagaccel
74}
75
76variant ecosboard description {Enable building support for eCos based JTAG debugger} {
77    configure.args-append --enable-ecosboard
78}
79
80variant zy1000_master requires zy1000 description {Use ZY1000 JTAG master registers} {
81    configure.args-append --enable-zy1000-master
82}
83
84variant zy1000 conflicts minidriver_dummy description {Enable ZY1000 interface. WARNING: Using the minidriver disables all other drivers.} {
85    configure.args-append --enable-zy1000
86}
87
88variant ioutil description {Enable ioutil functions - useful for standalone OpenOCD implementations} {
89    configure.args-append --enable-ioutil
90}
91
92variant ep93xx description {Enable building support for EP93xx based SBCs} {
93    configure.args-append --enable-ep93xx
94}
95
96variant at91rm9200 description {Enable building support for AT91RM9200 based SBCs} {
97    configure.args-append --enable-at91rm9200
98}
99
100variant gw16012 description {Enable building support for the Gateworks GW16012 JTAG Programmer} {
101    configure.args-append --enable-gw16012
102}
103
104variant presto conflicts presto_ftd2xx description {Enable building support for ASIX Presto Programmer using the libftdi driver} {
105    configure.args-append --enable-presto_libftdi
106        depends_lib-append port:libftdi1
107}
108
109variant presto_ftd2xx conflicts presto description {Enable building support for ASIX Presto Programmer using the FTD2XX driver} {
110    configure.args-append --enable-presto_ftd2xx
111        depends_lib-append port:libftd2xx
112}
113
114variant usbprog description {Enable building support for the usbprog JTAG Programmer} {
115    configure.args-append --enable-usbprog
116}
117
118variant oocd_trace description {Enable building support for some prototype OpenOCD+trace ETM capture hardware} {
119    configure.args-append --enable-oocd_trace
120}
121
122variant jlink description {Enable building support for the Segger J-Link JTAG Programmer} {
123    configure.args-append --enable-jlink
124}
125
126variant vsllink description {Enable building support for the Versaloon-Link JTAG Programmer} {
127    configure.args-append --enable-vsllink
128}
129
130variant rlink description {Enable building support for the Raisonance RLink JTAG Programmer} {
131    configure.args-append --enable-rlink
132}
133
134variant ulink description {Enable building support for the Keil ULINK JTAG Programmer} {
135    configure.args-append --enable-ulink
136}
137
138variant arm_jtag_ew description {Enable building support for the Olimex ARM-JTAG-EW Programmer} {
139    configure.args-append --enable-arm-jtag-ew
140}
141
142variant buspirate description {Enable building support for the Buspirate} {
143    configure.args-append --enable-buspirate
144}
145
146variant minidriver_dummy conflicts zy1000 description {Enable the dummy minidriver} {
147    configure.args-append --enable-minidriver-dummy
148}
149
150variant stlink description {Enable building support for the STM ST-link} {
151    configure.args-append --enable-stlink
152    depends_lib-append  port:libusb
153}
154
155variant ti description {TI-ICDI interface on Stellaris Launchpad} {
156    configure.args-append --enable-ti-icdi
157    depends_lib-append  port:libusb
158}
159
Note: See TracBrowser for help on using the repository browser.