From 36a9b0572e0578986bb179621a5790615934e973 Mon Sep 17 00:00:00 2001 From: bapt Date: Tue, 27 May 2014 08:30:20 +0000 Subject: Fix detection of lua Reported by: antoine With hat: portmgr --- net-p2p/verlihub-plugins-luascript/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'net-p2p') diff --git a/net-p2p/verlihub-plugins-luascript/Makefile b/net-p2p/verlihub-plugins-luascript/Makefile index 3bdca4ae2877..4a91d5d6a927 100644 --- a/net-p2p/verlihub-plugins-luascript/Makefile +++ b/net-p2p/verlihub-plugins-luascript/Makefile @@ -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 .include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins" -- cgit