Ticket #16410: gcc44.diff

File gcc44.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • Portfile

     
    4141
    4242pre-configure {
    4343        file mkdir ${worksrcpath}
     44        configure.args-append --enable-languages=${languages}
    4445}
    4546
     47set languages           c,c++,objc,obj-c++
     48
    4649configure.cmd   ../gcc-${version}/configure
    47 configure.args  --enable-languages=c,c++,objc,obj-c++ \
    48                 --libdir=${prefix}/lib/${name} \
     50configure.args  --libdir=${prefix}/lib/${name} \
    4951                --includedir=${prefix}/include/${name} \
    5052                --infodir=${prefix}/share/info \
    5153                --mandir=${prefix}/share/man \
     
    106108}
    107109
    108110# due to popular request - untested for the BETA; will be removed as soon as other languages than C compile successfuly
    109 variant gfortran conflicts java \
     111variant gfortran \
    110112        description "Enables Fortran/gfortran; this language will be enabled in the final version - this variant is completely untested!" {
    111         configure.args-delete --enable-languages=c,c++,objc,obj-c++
    112         configure.args-append --enable-languages=c,c++,objc,obj-c++,fortran
     113        set languages "${languages},fortran"
    113114}
    114115
    115116# due to popular request - untested for the BETA; will be removed as soon as other languages than C compile successfuly
    116 variant java conflicts gfortran \
     117variant java \
    117118        description "Enables Java/gcj; this language will be enabled in the final version - this variant is completely untested!" {
    118         configure.args-delete --enable-languages=c,c++,objc,obj-c++
    119         configure.args-append --enable-languages=c,c++,objc,obj-c++,java
     119        set languages "${languages},java"
    120120}
    121121
    122122livecheck.check regex