Ticket #21341: gcc-graphite.diff

File gcc-graphite.diff, 2.9 KB (added by adfernandes (Andrew Fernandes), 14 years ago)

patch gcc4[456] to add a graphite variant

  • gcc44/Portfile

     
    8686                --with-gmp=${prefix} \
    8787                --with-mpfr=${prefix} \
    8888                --enable-stage1-checking \
    89                 --disable-multilib
     89                --disable-multilib \
     90                --without-ppl \
     91                --without-cloog
    9092# do NOT use MacPorts binutils -- they do not work
    9193configure.env-append    AR_FOR_TARGET=/usr/bin/ar \
    9294                        AS_FOR_TARGET=/usr/bin/as \
     
    148150    configure.args-delete --disable-multilib
    149151}
    150152
     153variant graphite description { enable the Graphite loop optimizations } {
     154    depends_lib-append      port:ppl port:cloog-ppl
     155    configure.args-delete   --without-ppl --without-cloog
     156    configure.args-append   --with-ppl=${prefix} --with-cloog=${prefix}
     157}
     158
    151159livecheck.type  regex
    152160livecheck.url   http://gcc.gnu.org/gcc-4.4/
    153161livecheck.regex GCC (4\\.4\\.\[0-9\])
  • gcc45/Portfile

     
    103103                --with-mpfr=${prefix} \
    104104                --with-mpc=${prefix} \
    105105                --enable-stage1-checking \
    106                 --disable-multilib
     106                --disable-multilib \
     107                --without-ppl \
     108                --without-cloog
    107109# do NOT use MacPorts binutils -- they do not work
    108110configure.env-append    AR_FOR_TARGET=/usr/bin/ar \
    109111                        AS_FOR_TARGET=/usr/bin/as \
     
    152154    configure.args-delete --disable-multilib
    153155}
    154156
     157variant graphite description { enable the Graphite loop optimizations } {
     158    depends_lib-append      port:ppl port:cloog-ppl
     159    configure.args-delete   --without-ppl --without-cloog
     160    configure.args-append   --with-ppl=${prefix} --with-cloog=${prefix}
     161}
     162
    155163livecheck.type  regex
    156164livecheck.url   http://gcc.gnu.org/gcc-4.5/
    157165livecheck.regex GCC (4\\.5\\.\[0-9\])
  • gcc46/Portfile

     
    102102                --with-mpfr=${prefix} \
    103103                --with-mpc=${prefix} \
    104104                --enable-stage1-checking \
    105                 --disable-multilib
     105                --disable-multilib \
     106                --without-ppl \
     107                --without-cloog
    106108# do NOT use MacPorts binutils -- they do not work
    107109configure.env-append    AR_FOR_TARGET=/usr/bin/ar \
    108110                        AS_FOR_TARGET=/usr/bin/as \
     
    133135        configure.args-append --enable-fully-dynamic-string
    134136}
    135137
     138variant graphite description { enable the Graphite loop optimizations } {
     139    depends_lib-append      port:ppl port:cloog-ppl
     140    configure.args-delete   --without-ppl --without-cloog
     141    configure.args-append   --with-ppl=${prefix} --with-cloog=${prefix}
     142}
     143
    136144# due to popular request - untested for the BETA; will be removed as soon as other languages than C compile successfuly
    137145variant gfortran conflicts java \
    138146        description "Enables Fortran/gfortran; this language will be enabled in the final version - this variant is completely untested!" {