Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2014 08:30:20 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355472 - head/net-p2p/verlihub-plugins-luascript
Message-ID:  <201405270830.s4R8UKFP074212@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405270830.s4R8UKFP074212>