Fix detection of lua

Reported by:	antoine
With hat:	portmgr
This commit is contained in:
Baptiste Daroussin 2014-05-27 08:30:20 +00:00
parent 54b3ec00c2
commit 57ef95cb82
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355472

View file

@ -34,11 +34,16 @@ NO_STAGE= yes
BUILD_DEPENDS+= ${LUA_MODLIBDIR}/socket/core.so:${PORTSDIR}/net/luasocket
RUN_DEPENDS+= ${LUA_MODLIBDIR}/socket/core.so:${PORTSDIR}/net/luasocket
CONFIGURE_ARGS+= --with-luasocket
.endif
post-patch::
@${REINPLACE_CMD} -e 's|-lluasocket|${LUA_MODLIBDIR}/socket/core.so|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-lluamime|${LUA_MODLIBDIR}/mime/core.so|g' ${WRKSRC}/configure
.if ${PORT_OPTIONS:MSOCKET}
@${REINPLACE_CMD} -e 's|-lluasocket|${LUA_MODLIBDIR}/socket/core.so|g' \
-e 's|-lluamime|${LUA_MODLIBDIR}/mime/core.so|g' \
${WRKSRC}/configure
.endif
@${REINPLACE_CMD} -e 's|llua50|llua-${LUA_VER}|g' \
${WRKSRC}/configure
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins"