Ticket #3972: Portfile.diff

File Portfile.diff, 843 bytes (added by yves@…, 19 years ago)

Portfile patch

  • Portfile

    old new  
    7171        cd ${destroot}${prefix}
    7272        file delete -force share/man/man7
    7373        file delete -force share/info
     74        cd ${destroot}${prefix}/include
     75        system "ln -s ../lib/gcc-${major}/gcc/powerpc-apple-darwin${tcl_platform(osVersion)}/${version}/include/libffi/ffitarget.h"
     76        cd ${destroot}${prefix}/bin
     77        system "ln -s gfortran-dp-${major} gfortran"
     78}
     79
     80variant link-gcj {
     81  post-destroot {
     82        cd ${destroot}${prefix}/bin
     83        set LinkFiles { gcj gcjh gij grepjar jcf-dump jv-convert jv-scan }
     84        foreach BinFile ${LinkFiles} {
     85                system "ln -s ${BinFile}-dp-${major} ${BinFile}"
     86        }
     87        xinstall -m 755 -d ${destroot}${prefix}/lib/pkgconfig
     88        cd ${destroot}${prefix}/lib/pkgconfig
     89        system "ln -s ../gcc-${major}/pkgconfig/libgcj.pc"
     90  }
    7491}