Ticket #2892: gcc34.diff

File gcc34.diff, 1.6 KB (added by mww@…, 19 years ago)

patch for gcc34/Portfile

  • Portfile

    old new  
    33PortSystem 1.0
    44name            gcc34
    55version         3.4.3
    6 revision        1
     6revision        2
    77description     The GNU compiler collection
    88long_description        ${description}
    99platforms       darwin
    1010categories      lang
    1111maintainers     gwright@opendarwin.org
    1212
    13 homepage        http://gcc.gnu.org/
     13homepage        http://gcc.gnu.org/gcc-3.4/
    1414master_sites    gnu:/gcc/gcc-${version}
    1515
    1616#user_notes     This port is intended to be used by other ports         \
     
    3131
    3232
    3333use_bzip2       yes
    34 distfiles       gcc-${version}${extract.suffix}
     34distname        gcc-${version}
    3535
    3636checksums       md5 e744b30c834360fccac41eb7269a3011
    3737
    38 worksrcdir      gcc-${version}
     38worksrcdir      build
    3939
    40 pre-configure   { cd ${workpath}
    41                   file mkdir build
     40pre-configure   {
     41                  file mkdir ${worksrcpath}
    4242                }
    4343
    44 configure.dir   ${workpath}/build
    45 configure.cmd   ${worksrcpath}/configure
    46 configure.args  --enable-languages=c,c++,f77            \
     44configure.cmd   ${workpath}/gcc-${version}/configure
     45configure.args  --enable-languages=c,c++,f77,objc               \
    4746                --libdir=${prefix}/lib/gcc-${version}   \
    4847                --infodir=${prefix}/share/info          \
    49                 --mandir=${prefix}/share/man            \
     48                --mandir=${prefix}/share/man            \
    5049                --with-system-zlib                      \
    5150                --disable-nls                           \
    52                 --program-suffix=-${version}            \
    53                 --with-gxx-include-dir=${prefix}/include/gcc-${version}/c++/${version}
     51                --program-suffix=34             \
     52                --with-local-prefix=${prefix} \
     53                --with-gxx-include-dir=${prefix}/include/${name}/c++/
    5454
    55 build.dir       ${workpath}/build
    5655build.target    bootstrap-lean
    5756
    5857post-destroot   { cd ${destroot}${prefix}