Ignore:
Timestamp:
Dec 9, 2012, 2:37:02 AM (7 years ago)
Author:
raimue@…
Message:

group/crossgcc-1.0, cross/{avr,msp430}-gcc{,-devel}:
Add new option crossgcc.languages to port group crossgcc, default to
--enable-languages="c,c++", removing objc,objc++ from the default set.
Simplify ports using this port group (overriding maintainers as this change
does actually change the ports).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/crossgcc-1.0.tcl

    r100352 r100353  
    3838#
    3939#   crossgcc.setup      arm-none-eabi 4.6.1
    40 #   # Optional
     40#
     41#   # Optional: libc support
    4142#   crossgcc.setup_libc newlib 1.19.0
    42 
    43 options crossgcc.target
     43#
     44#   # Optional: additional language support (e.g. Objective-C/Objective-C++)
     45#   crossgcc.languages-append objc obj-c++
     46
     47options crossgcc.target \
     48        crossgcc.languages
     49
     50default crossgcc.languages {{c c++}}
    4451
    4552proc crossgcc.setup {target version} {
     
    146153        configure.cmd   ${worksrcpath}/configure
    147154        configure.args  --target=${crossgcc.target} \
    148                         --enable-languages="c,objc,c++,obj-c++" \
    149155                        --infodir=${prefix}/share/info \
    150156                        --mandir=${prefix}/share/man \
     
    157163                        --enable-multilib
    158164
     165        # The Portfile may modify crossgcc.languages, thus, evaluate the option
     166        # late in this pre-configure phase
     167        pre-configure {
     168            configure.args-append --enable-languages="[join ${crossgcc.languages} ","]"
     169        }
     170
    159171        configure.env-append \
    160172            AR_FOR_TARGET=${crossgcc.target}-ar \
Note: See TracChangeset for help on using the changeset viewer.