Lines 10-15
Link Here
|
10 |
COMMENT= IPv4 and IPv6 socket support for the Lua language |
10 |
COMMENT= IPv4 and IPv6 socket support for the Lua language |
11 |
|
11 |
|
12 |
LICENSE= MIT |
12 |
LICENSE= MIT |
|
|
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
|
14 |
USE_GITHUB= yes |
15 |
USE_GITHUB= yes |
15 |
GH_ACCOUNT= diegonehab |
16 |
GH_ACCOUNT= diegonehab |
Lines 16-22
Link Here
|
16 |
GH_TAGNAME= v3.0-rc1 |
17 |
GH_TAGNAME= v3.0-rc1 |
17 |
|
18 |
|
18 |
MAKE_ARGS= LUA_VER=${LUA_VER} |
19 |
MAKE_ARGS= LUA_VER=${LUA_VER} |
19 |
USES= lua:51 gmake pkgconfig |
20 |
USES= gmake lua:51 pkgconfig |
20 |
|
21 |
|
21 |
CFLAGS+= `pkgconf --cflags lua-${LUA_VER}` |
22 |
CFLAGS+= `pkgconf --cflags lua-${LUA_VER}` |
22 |
LDFLAGS+= -shared `pkgconf --libs lua-${LUA_VER}` |
23 |
LDFLAGS+= -shared `pkgconf --libs lua-${LUA_VER}` |
Lines 26-38
Link Here
|
26 |
post-extract: |
27 |
post-extract: |
27 |
@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile |
28 |
@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile |
28 |
@${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile |
29 |
@${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile |
29 |
@${REINPLACE_CMD} -e 's/gcc/${CC}/g' ${WRKSRC}/src/Makefile |
30 |
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/src/Makefile |
30 |
@${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS\+=/g' ${WRKSRC}/src/Makefile |
31 |
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g' ${WRKSRC}/src/Makefile |
31 |
@${REINPLACE_CMD} -e 's/LDFLAGS=/LDFLAGS\+=/g' ${WRKSRC}/src/Makefile |
32 |
@${REINPLACE_CMD} -e 's|LDFLAGS=|LDFLAGS\+=|g' ${WRKSRC}/src/Makefile |
32 |
@${REINPLACE_CMD} -e 's/prefix/PREFIX/g' ${WRKSRC}/src/Makefile |
33 |
@${REINPLACE_CMD} -e 's/prefix/PREFIX/g' ${WRKSRC}/src/Makefile |
33 |
|
34 |
|
34 |
post-install: |
35 |
post-install: |
|
|
36 |
${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR:S|^${LOCALBASE}|${PREFIX}|}/*/*.so |
35 |
@${MKDIR} ${STAGEDIR}/${DOCSDIR} |
37 |
@${MKDIR} ${STAGEDIR}/${DOCSDIR} |
36 |
@${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}/${DOCSDIR} |
38 |
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}/${DOCSDIR} |
37 |
|
39 |
|
38 |
.include <bsd.port.mk> |
40 |
.include <bsd.port.mk> |