Ticket #11738: lua-pkg-config.diff

File lua-pkg-config.diff, 776 bytes (added by chpickel@…, 18 years ago)

Corrected diff to add lua pkg-config info

  • Portfile

     
    3333        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/src/luaconf.h
    3434        # to complement the use_readline patch 
    3535        reinplace "s|MYLDFLAGS=|MYLDFLAGS=-L${prefix}/lib|" ${worksrcpath}/src/Makefile
     36  reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/lua.pc
    3637}
    3738
    3839destroot.target install INSTALL_TOP=${destroot}/${prefix}
     
    5051        foreach test [glob test/README test/*.lua] {
    5152                xinstall -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test
    5253        }
     54        xinstall -d -m 0755 ${destroot}${prefix}/lib/pkgconfig
     55  xinstall -m 0644 etc/lua.pc ${destroot}${prefix}/lib/pkgconfig/lua.pc
    5356}
    5457
    5558variant static {