Ticket #40433: portfile.diff

File portfile.diff, 644 bytes (added by mp@…, 11 years ago)

Solution as Portfile diff

  • lua/Portfile

    old new  
    4949    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/src/Makefile
    5050}
    5151
     52platform darwin 8 {
     53    post-patch {
     54        reinplace "s|#include <errno.h>|#include <sys/types.h>\\\n#include <errno.h>|g" ${worksrcpath}/src/liolib.c
     55    }
     56}
     57
    5258configure {
    5359    reinplace -E "/^MYLDFLAGS=/s|\$| ${configure.ldflags} [get_canonical_archflags]|" ${worksrcpath}/src/Makefile
    5460    reinplace -E "/^CFLAGS=/s|\$| ${configure.cflags} ${configure.cppflags} [get_canonical_archflags]|" ${worksrcpath}/src/Makefile