Ticket #44855: openocd-0.8.0-libusb1-libftdi.patch

File openocd-0.8.0-libusb1-libftdi.patch, 3.3 KB (added by IvoClarysse (Ivo Clarysse), 10 years ago)

Update to OpenOCD-0.8, deprecating ft2xx variant in favor of ftdi variant

  • (a) Portfile-orig vs. (b) Portfile

    a b  
    44PortSystem          1.0
    55
    66name                openocd
    7 version             0.7.0
     7version             0.8.0
    88categories          cross devel
    99license             GPL
    1010maintainers         snc openmaintainer
     
    2020master_sites        sourceforge:project/openocd/openocd/${version}
    2121
    2222use_bzip2           yes
    23 checksums           md5     8977a26a4e3a529e1c4fcc0df587a6a4 \
    24                     sha1    40fa518af4fae273f24478249fc03aa6fcce9176 \
    25                     rmd160  f232ce21a054ad56a80f0605fe8b22b6712434f0 \
    26                     sha256  52237b786530c8460b221556c26fa4779f668b7dcb83ff14b8c5eb2050f38e63
     23checksums           sha1    10bf9eeb54e03083cb1a101785b2d69fbdf18f31 \
     24                    rmd160  812755bb51ccf6bb11e4b6aac6dd1c0c674c43b7 \
     25                    sha256  5b076c324400ef0198ce6e21616e17f7a1a12f749362821ce0b03ec62c3cd32f
    2726
    2827configure.args-append  --disable-werror --enable-maintainer-mode
    2928
    30 default_variants +ft2232
     29default_variants +ftdi
    3130
    3231variant dummy description {Enable building the dummy port driver} {
    3332    configure.args-append --enable-dummy
     
    3736    configure.args-append --enable-parport
    3837}
    3938
     39variant ftdi conflicts ft2232_libftdi  description {Enable building OpenOCD's built-in FTDI driver.} {
     40    configure.args-append --enable-ftdi
     41        depends_lib-append port:libusb
     42}
     43
     44# The ft2232 variant is deprecated, the ftdi variant is its replacement
    4045variant ft2232 conflicts ft2232_ftd2xx  description {Enable building support for FT2232 based devices using the libftdi driver, opensource alternate of FTD2XX} {
    41     configure.args-append --enable-ft2232_libftdi
    42         depends_lib-append  port:libftdi0 \
    43                         port:libusb-compat
     46    configure.args-append --enable-legacy-ft2232_libftdi
     47        depends_lib-append port:libftdi1
    4448}
    4549
     50# The ft2232_ftd2xx variant is deprecated, the ftdi variant is its replacement
    4651variant ft2232_ftd2xx conflicts ft2232  description {Enable building support for FT2232 based devices using the FTD2XX driver from ftdichip.com} {
    4752    patchfiles-append patch-ftd2xx-path.diff
    48     configure.args-append --enable-ft2232_ftd2xx
     53    use_autoreconf      yes
     54    configure.args-append --enable-legacy-ft2232_ftd2xx
    4955        depends_lib-append port:libftd2xx
    5056}
    5157
    5258variant usb_blaster conflicts usb_blaster_ftd2xx description {Enable building support for the Altera USB-Blaster using the libftdi driver, opensource alternate of FTD2XX} {
    5359    configure.args-append --enable-usb_blaster_libftdi
    54         depends_lib-append port:libftdi0
     60        depends_lib-append port:libftdi1
    5561}
    5662
    5763variant usb_blaster_ftd2xx conflicts usb_blaster description {Enable building support for the Altera USB-Blaster using the FTD2XX driver from ftdichip.com} {
     64    patchfiles-append patch-ftd2xx-path.diff
     65    use_autoreconf      yes
    5866    configure.args-append --enable-usb_blaster_ftd2xx
    5967        depends_lib-append port:libftd2xx
    6068}
     
    93101
    94102variant presto conflicts presto_ftd2xx description {Enable building support for ASIX Presto Programmer using the libftdi driver} {
    95103    configure.args-append --enable-presto_libftdi
    96         depends_lib-append port:libftdi0
     104        depends_lib-append port:libftdi1
    97105}
    98106
    99107variant presto_ftd2xx conflicts presto description {Enable building support for ASIX Presto Programmer using the FTD2XX driver} {