aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/luasocket/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/luasocket/Makefile b/net/luasocket/Makefile
index 7837bcef5bb3..1003ea5a4d64 100644
--- a/net/luasocket/Makefile
+++ b/net/luasocket/Makefile
@@ -10,13 +10,14 @@ MAINTAINER= lx@FreeBSD.org
COMMENT= IPv4 and IPv6 socket support for the Lua language
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= diegonehab
GH_TAGNAME= v3.0-rc1
MAKE_ARGS= LUA_VER=${LUA_VER}
-USES= lua:51 gmake pkgconfig
+USES= gmake lua:51 pkgconfig
CFLAGS+= `pkgconf --cflags lua-${LUA_VER}`
LDFLAGS+= -shared `pkgconf --libs lua-${LUA_VER}`
@@ -26,13 +27,14 @@ OPTIONS_DEFINE= DOCS
post-extract:
@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
@${MV} ${WRKSRC}/src/makefile ${WRKSRC}/src/Makefile
- @${REINPLACE_CMD} -e 's/gcc/${CC}/g' ${WRKSRC}/src/Makefile
- @${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS\+=/g' ${WRKSRC}/src/Makefile
- @${REINPLACE_CMD} -e 's/LDFLAGS=/LDFLAGS\+=/g' ${WRKSRC}/src/Makefile
+ @${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/src/Makefile
+ @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g' ${WRKSRC}/src/Makefile
+ @${REINPLACE_CMD} -e 's|LDFLAGS=|LDFLAGS\+=|g' ${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e 's/prefix/PREFIX/g' ${WRKSRC}/src/Makefile
post-install:
+ ${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR:S|^${LOCALBASE}|${PREFIX}|}/*/*.so
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}/${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>