Ticket #22305: lua-glut.diff

File lua-glut.diff, 933 bytes (added by takanori@…, 15 years ago)

Here is a patch to fix this problem.

  • Portfile

     
    3737destroot {
    3838        # Documentation and examples
    3939        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    40         file copy README ${destroot}${prefix}/share/doc/${name}
     40        file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
    4141        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
    42         file copy glut_test1.lua glut_test2.lua lua.ppm ${destroot}${prefix}/share/doc/${name}/examples
     42        foreach f {glut_test1.lua glut_test2.lua lua.ppm} {
     43            file copy ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name}/examples
     44        }
    4345
    4446        # Binaries
    4547        xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1
    46         foreach lib [glob *.so] {
     48        foreach lib [glob ${worksrcpath}/*.so] {
    4749                xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1
    4850        }
    4951}