22 | | master_sites http://luaforge.net/frs/download.php/2664/ |
23 | | checksums md5 41445b138deb7bcfe97bff957503da8e \ |
24 | | sha1 5ce521fc5c6efb7c1eba7f36dfeafa9e4d745464 \ |
25 | | rmd160 24d7e4fb1c9cf0c3d94f8b36e82d494ae922e268 |
26 | | distname luasocket-${version} |
| 22 | master_sites https://github.com/diegonehab/luasocket/archive/ |
| 23 | checksums md5 08bd2f265b244eb4bf5c2c36bf89b759 \ |
| 24 | sha1 aff9122b26c01487c06a32133df78c1506af350f \ |
| 25 | rmd160 27357eee7e52f091609f45a0b0fb7e04e9ea2bd8 |
| 26 | distname "v[regsub {_} $version {-}]" |
| 27 | worksrcdir "luasocket-[regsub {_} $version {-}]" |
39 | | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/config |
| 41 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/makefile |
| 42 | reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/src/makefile |
| 43 | reinplace "s|@CFLAGS@|${configure.cppflags} ${configure.cflags}|g" ${worksrcpath}/src/makefile |
| 44 | } |
| 45 | |
| 46 | build { |
| 47 | set lua_version "[exec -- ${prefix}/bin/pkg-config --variable V lua]" |
| 48 | system "cd ${worksrcpath} && make DEBUG=DEBUG macosx LUAV=${lua_version}" |
| 49 | } |
| 50 | |
| 51 | destroot { |
| 52 | set lua_version "[exec -- ${prefix}/bin/pkg-config --variable V lua]" |
| 53 | system "cd ${worksrcpath} && make DEBUG=DEBUG LUAV=${lua_version} DESTDIR=${destroot} PREFIX=${prefix} PLAT=macosx install-unix" |