Ticket #21101: lua.diff

File lua.diff, 846 bytes (added by meissnem@…, 15 years ago)
  • Portfile

    old new  
    3434}
    3535
    3636configure {
    37         reinplace -E "/^MYLDFLAGS=/s|\$| ${configure.ldflags}|" ${worksrcpath}/src/Makefile
    38         reinplace -E "/^CFLAGS=/s|\$| ${configure.cflags} ${configure.cppflags}|" ${worksrcpath}/src/Makefile
     37        set myldflags ${configure.ldflags}
     38        set cflags "${configure.cflags} ${configure.cppflags}"
     39
     40        if {[variant_isset universal]} {
     41                set myldflags "${myldflags} ${configure.universal_ldflags}"
     42                set cflags "${cflags} ${configure.universal_cflags} ${configure.universal_cppflags}"
     43        }
     44
     45        reinplace -E "/^MYLDFLAGS=/s|\$| ${myldflags}|" ${worksrcpath}/src/Makefile
     46        reinplace -E "/^CFLAGS=/s|\$| ${cflags}|" ${worksrcpath}/src/Makefile
    3947        reinplace "s|CC= .*\$|CC= ${configure.cc}|" ${worksrcpath}/src/Makefile
    4048}
    4149