Ticket #22116: gcc-multilib-universal.diff

File gcc-multilib-universal.diff, 7.4 KB (added by jmroot (Joshua Root), 14 years ago)
  • lang/gcc43/Portfile

     
    5151
    5252use_bzip2       yes
    5353
    54 # gmp and mpfr are not universal
    55 universal_variant       no
    56 
    5754depends_lib     port:gmp port:mpfr port:libiconv
    5855
    5956patchfiles      Make-lang.in.diff
     
    6865}
    6966
    7067# the generated compiler doesn't accept -arch
    71 if {[info exists build_arch] && ${os.platform} == "darwin"} {
    72     configure.cc_archflags
    73     configure.cxx_archflags
    74     configure.objc_archflags
     68configure.cc_archflags
     69configure.cxx_archflags
     70configure.objc_archflags
     71configure.ld_archflags
     72platform darwin {
    7573    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
    7674}
    7775
     
    8785        --program-suffix=-mp-${major} \
    8886        --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
    8987        --with-gmp=${prefix} \
    90         --with-mpfr=${prefix}
     88        --with-mpfr=${prefix} \
     89        --disable-multilib
    9190# do NOT use MacPorts binutils -- they do not work
    9291configure.env-append    AR_FOR_TARGET=/usr/bin/ar \
    9392            AS_FOR_TARGET=/usr/bin/as \
     
    117116    xinstall -m 444 ${filespath}/mp-gcc43 ${destroot}${prefix}/etc/select/gcc/
    118117}
    119118
    120 platform powerpc {
    121     configure.args-append --disable-multilib
    122 }
    123 
    124119# Java support does not compile on 10.4/x86
    125120platform darwin 8 i386 {
    126121        configure.args-delete   --enable-languages=c,c++,objc,obj-c++,java,fortran
     
    140135#               --with-ar=${prefix}/bin/odar
    141136#}
    142137
     138platform powerpc {
     139    configure.universal_archs ppc ppc64
     140}
     141platform i386 {
     142    configure.universal_archs i386 x86_64
     143}
     144configure.universal_cflags
     145configure.universal_cxxflags
     146configure.universal_ldflags
     147variant universal {
     148    configure.args-delete --disable-multilib
     149    configure.args-append --enable-multilib
     150}
     151
    143152livecheck.type  regex
    144153livecheck.url   http://gcc.gnu.org/gcc-4.3/
    145154livecheck.regex GCC (4\\.3\\.\[0-9\])
    146 
  • lang/gcc44/Portfile

     
    5151
    5252use_bzip2               yes
    5353
    54 # gmp and mpfr are not universal
    55 universal_variant       no
    56 
    5754depends_lib             port:gmp port:mpfr port:libiconv
    5855
    5956patch.dir       ${workpath}/gcc-${version}
     
    6360worksrcdir              build
    6461
    6562# the generated compiler doesn't accept -arch
    66 if {${os.platform} == "darwin"} {
    67     configure.cc_archflags
    68     configure.cxx_archflags
    69     configure.objc_archflags
    70     if {[info exists configure.ld_archflags]} {
    71         configure.ld_archflags
    72     }
     63configure.cc_archflags
     64configure.cxx_archflags
     65configure.objc_archflags
     66configure.ld_archflags
     67platform darwin {
    7368    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
    7469}
    7570
     
    9085                --with-gxx-include-dir=${prefix}/include/${name}/c++/ \
    9186                --with-gmp=${prefix} \
    9287                --with-mpfr=${prefix} \
    93                 --enable-stage1-checking
     88                --enable-stage1-checking \
     89                --disable-multilib
    9490# do NOT use MacPorts binutils -- they do not work
    9591configure.env-append    AR_FOR_TARGET=/usr/bin/ar \
    9692                        AS_FOR_TARGET=/usr/bin/as \
     
    121117                ${destroot}${prefix}/share/python/classfile-44.py
    122118}
    123119
    124 platform powerpc {
    125         configure.args-append --disable-multilib
    126 }
    127 
    128120platform darwin 10 {
    129121        configure.args-append --enable-fully-dynamic-string
    130122}
     
    142134                                --with-ar=${prefix}/bin/odar
    143135}
    144136
     137platform powerpc {
     138    configure.universal_archs ppc ppc64
     139}
     140platform i386 {
     141    configure.universal_archs i386 x86_64
     142}
     143configure.universal_cflags
     144configure.universal_cxxflags
     145configure.universal_ldflags
     146variant universal {
     147    configure.args-delete --disable-multilib
     148    configure.args-append --enable-multilib
     149}
     150
    145151livecheck.type  regex
    146152livecheck.url   http://gcc.gnu.org/gcc-4.4/
    147153livecheck.regex GCC (4\\.4\\.\[0-9\])
    148 
  • lang/gcc45/Portfile

     
    6161
    6262use_bzip2               yes
    6363
    64 # gmp and mpfr are not universal
    65 universal_variant       no
    66 
    6764depends_lib             port:gmp port:mpfr port:libiconv port:libmpc
    6865
    6966patchfiles              tls_configure_fix.diff
     
    7471worksrcdir              build
    7572
    7673# the generated compiler doesn't accept -arch
    77 if {[info exists build_arch] && ${os.platform} == "darwin"} {
    78     configure.cc_archflags
    79     configure.cxx_archflags
    80     configure.objc_archflags
     74configure.cc_archflags
     75configure.cxx_archflags
     76configure.objc_archflags
     77configure.ld_archflags
     78platform darwin {
    8179    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
    8280}
    8381
     
    104102                --with-gmp=${prefix} \
    105103                --with-mpfr=${prefix} \
    106104                --with-mpc=${prefix} \
    107                 --enable-stage1-checking
     105                --enable-stage1-checking \
     106                --disable-multilib
    108107# do NOT use MacPorts binutils -- they do not work
    109108configure.env-append    AR_FOR_TARGET=/usr/bin/ar \
    110109                        AS_FOR_TARGET=/usr/bin/as \
     
    135134                ${destroot}${prefix}/share/python/classfile-45.py
    136135}
    137136
    138 platform powerpc {
    139         configure.args-append --disable-multilib
    140 }
    141 
    142137platform darwin 10 {
    143138        configure.args-append --enable-fully-dynamic-string
    144139}
    145140
     141platform powerpc {
     142    configure.universal_archs ppc ppc64
     143}
     144platform i386 {
     145    configure.universal_archs i386 x86_64
     146}
     147configure.universal_cflags
     148configure.universal_cxxflags
     149configure.universal_ldflags
     150variant universal {
     151    configure.args-delete --disable-multilib
     152    configure.args-append --enable-multilib
     153}
     154
    146155livecheck.type  regex
    147156livecheck.url   http://gcc.gnu.org/gcc-4.5/
    148157livecheck.regex GCC (4\\.5\\.\[0-9\])
    149 
  • lang/gcc46/Portfile

     
    5959
    6060use_bzip2               yes
    6161
    62 # gmp and mpfr are not universal
    63 universal_variant       no
    64 
    6562depends_lib             port:gmp port:mpfr port:libiconv port:libmpc
    6663
    6764patchfiles              patch-160729.diff
     
    7370worksrcdir              build
    7471
    7572# the generated compiler doesn't accept -arch
    76 if {[info exists build_arch] && ${os.platform} == "darwin"} {
    77     configure.cc_archflags
    78     configure.cxx_archflags
    79     configure.objc_archflags
     73configure.cc_archflags
     74configure.cxx_archflags
     75configure.objc_archflags
     76configure.ld_archflags
     77platform darwin {
    8078    configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
    8179}
    8280
     
    103101                --with-gmp=${prefix} \
    104102                --with-mpfr=${prefix} \
    105103                --with-mpc=${prefix} \
    106                 --enable-stage1-checking
     104                --enable-stage1-checking \
     105                --disable-multilib
    107106# do NOT use MacPorts binutils -- they do not work
    108107configure.env-append    AR_FOR_TARGET=/usr/bin/ar \
    109108                        AS_FOR_TARGET=/usr/bin/as \
     
    130129        xinstall -m 444 ${filespath}/mp-gcc46 ${destroot}${prefix}/etc/select/gcc/
    131130}
    132131
    133 platform powerpc {
    134         configure.args-append --disable-multilib
    135 }
    136 
    137132platform darwin 10 {
    138133        configure.args-append --enable-fully-dynamic-string
    139134}
     
    158153        }
    159154}
    160155
     156platform powerpc {
     157    configure.universal_archs ppc ppc64
     158}
     159platform i386 {
     160    configure.universal_archs i386 x86_64
     161}
     162configure.universal_cflags
     163configure.universal_cxxflags
     164configure.universal_ldflags
     165variant universal {
     166    configure.args-delete --disable-multilib
     167    configure.args-append --enable-multilib
     168}
     169
    161170livecheck.type  regex
    162171livecheck.url   ftp://gcc.gnu.org/pub/gcc/snapshots/
    163172livecheck.regex LATEST-4.6 -> (4.6-\[0-9\]+)
    164