Ticket #7367: gcc40-Portfile.patch

File gcc40-Portfile.patch, 700 bytes (added by yves@…, 18 years ago)

portfile patch

  • Portfile

    old new  
    7272        configure.env   CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    7373}
    7474
    75 platform powerpc {}
    76 
    7775post-destroot {
    7876        cd ${destroot}${prefix}
    7977        file delete -force share/man/man7
    8078        file delete -force share/info
    81         if {[variant_isset powerpc]} {
    82                 system "cd ${destroot}${prefix}/include/${name} && \
    83                         cp ../../lib/${name}/gcc/*/${version}/include/libffi/ffitarget.h ."
     79}
     80
     81platform powerpc {
     82    post-destroot {
     83                cd ${destroot}${prefix}/include/${name}
     84                system \
     85                  "cp ../../lib/${name}/gcc/*/${version}/include/libffi/ffitarget.h ."
    8486        }
    8587}
    8688