Ticket #33036: port-sdcc-3.1.0-1.diff

File port-sdcc-3.1.0-1.diff, 2.0 KB (added by lara.dougan@…, 12 years ago)

sdcc port patch, including universal fix

  • Portfile

    old new  
    44PortSystem 1.0
    55
    66name                sdcc
    7 version             3.0.0
     7version             3.1.0
    88categories          lang
    99platforms           darwin
    1010license             GPL-3
     
    1818homepage            http://sdcc.sourceforge.net/
    1919master_sites        sourceforge
    2020
    21 checksums           rmd160  3821b238d4f8a201f23384bd58b9dafef8d69f68 \
    22                     sha256  53097200e1b2b9466be80ede24484c51326886977b5b88b4a00182bfc5e3a99b
     21checksums           rmd160  f0d5d34fc322217b51ddf5767fa2dd0cba1094b0 \
     22                    sha256  e8802e79b0247bbb51dec49047a2247ad4da1d89cf1aefd49e35d65aee91d185
    2323
    2424depends_build       port:gputils
    25 depends_lib         port:readline
     25depends_lib         port:readline \
     26                    port:boost
    2627depends_run         port:gputils
    2728
    2829use_bzip2           yes
     
    3233
    3334# Setting CPP explicitly is bad, because 'cpp' and 'gcc -E' are not the same.
    3435configure.cpp       {}
    35 configure.args      --enable-avr-port \
    36                     --enable-xa51-port
    3736
    3837build.type          gnu
    3938
    4039destroot.destdir    prefix=${destroot}${prefix} \
    4140                    docdir=${destroot}${prefix}/share/doc/${name}
    4241
     42variant universal {
     43    patchfiles-append   patch-configure.in.diff \
     44                        patch-sim-ucsim-configure.in.diff \
     45                        patch-support-cpp-configure.in.diff
     46    use_autoreconf      yes
     47}
     48
     49variant avr description {Include AVR code generation (unsupported, may break)} {
     50    configure.args-append   --enable-avr-port
     51}
     52
     53variant xa51 description {Include XA51 code generation (unsupported, may break)} {
     54    configure.args-append   --enable-xa51-port
     55}
     56
    4357platform darwin 8 {
    4458    depends_build-append    port:gmake
    4559    build.cmd               ${prefix}/bin/gmake