Ticket #29154: Portfile.diff

File Portfile.diff, 1.4 KB (added by howarth@…, 14 years ago)

update Portfile diff for gcc45 4.5.3

  • Portfile

    old new  
    1 # $Id: Portfile 78275 2011-05-01 11:51:44Z mww@macports.org $
     1# $Id: Portfile 75018 2011-01-12 00:32:23Z jmr@macports.org $
    22
    33PortSystem 1.0
    44
    55name                    gcc45
    66epoch                   1
    77version                 4.5.3
     8revision                1
    89platforms               darwin
    910categories              lang
    1011maintainers             mww
     
    6667
    6768worksrcdir              build
    6869
     70patchfiles      i386_static.diff
     71patch.dir       ${workpath}/gcc-${version}
     72
    6973# the generated compiler doesn't accept -arch
    7074configure.cc_archflags
    7175configure.cxx_archflags
     
    128132                ${destroot}${prefix}/share/python/aotcompile-45.py
    129133        file rename ${destroot}${prefix}/share/python/classfile.py \
    130134                ${destroot}${prefix}/share/python/classfile-45.py
     135        if {${os.platform} == "darwin" && ($build_arch == "x86_64" || $build_arch == "i386")} {
     136                file copy ${workpath}/gcc-${version}/gcc/config/darwin-sections.def \
     137                        ${destroot}${prefix}/lib/${name}/gcc/${build_arch}-apple-darwin${os.major}/${version}/plugin/include/config/darwin-sections.def
     138        }
     139       
    131140}
    132141
    133142platform darwin 8 {
     
    137146platform darwin 10 {
    138147        configure.args-append --enable-fully-dynamic-string
    139148}
     149platform darwin 11 {
     150        configure.args-append --enable-fully-dynamic-string
     151        configure.cc        clang
     152        configure.cxx       clang++
     153}
    140154
    141155platform powerpc {
    142156    configure.universal_archs ppc ppc64