svn commit: r355472 - head/net-p2p/verlihub-plugins-luascript
Baptiste Daroussin
bapt at FreeBSD.org
Tue May 27 08:30:20 UTC 2014
Author: bapt
Date: Tue May 27 08:30:20 2014
New Revision: 355472
URL: http://svnweb.freebsd.org/changeset/ports/355472
QAT: https://qat.redports.org/buildarchive/r355472/
Log:
Fix detection of lua
Reported by: antoine
With hat: portmgr
Modified:
head/net-p2p/verlihub-plugins-luascript/Makefile
Modified: head/net-p2p/verlihub-plugins-luascript/Makefile
==============================================================================
--- head/net-p2p/verlihub-plugins-luascript/Makefile Tue May 27 08:12:46 2014 (r355471)
+++ head/net-p2p/verlihub-plugins-luascript/Makefile Tue May 27 08:30:20 2014 (r355472)
@@ -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"
More information about the svn-ports-all
mailing list