summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authordholland <dholland>2013-10-30 06:19:17 +0000
committerdholland <dholland>2013-10-30 06:19:17 +0000
commit1ebd78ef87245e38e000b1f0afe90aac4d9f280f (patch)
tree5229395b431069a55bebc598e58ce71fb337181d /chat
parent7519aca801a37b9b0862b94292f3e6cd715e4009 (diff)
downloadpkgsrc-1ebd78ef87245e38e000b1f0afe90aac4d9f280f.tar.gz
Update Lua module depends for multiversion environment; use REPLACE_LUA.
Diffstat (limited to 'chat')
-rw-r--r--chat/prosody/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/chat/prosody/Makefile b/chat/prosody/Makefile
index c022d305314..ee9eb6c5a3d 100644
--- a/chat/prosody/Makefile
+++ b/chat/prosody/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2013/09/13 14:37:49 fhajny Exp $
+# $NetBSD: Makefile,v 1.10 2013/10/30 06:19:17 dholland Exp $
#
DISTNAME= prosody-0.9.1
@@ -10,10 +10,10 @@ HOMEPAGE= http://prosody.im/
COMMENT= Flexible communications server for Jabber/XMPP written in Lua
LICENSE= mit
-DEPENDS+= lua-filesystem>=1.0:../../devel/lua-filesystem
-DEPENDS+= lua-expat>=1.2:../../textproc/lua-expat
-DEPENDS+= lua-sec>=0.3.3:../../security/lua-sec
-DEPENDS+= lua-socket>=2.0:../../net/lua-socket
+DEPENDS+= ${LUA_PKGPREFIX}-filesystem>=1.0:../../devel/lua-filesystem
+DEPENDS+= ${LUA_PKGPREFIX}-expat>=1.2:../../textproc/lua-expat
+DEPENDS+= ${LUA_PKGPREFIX}-sec>=0.3.3:../../security/lua-sec
+DEPENDS+= ${LUA_PKGPREFIX}-socket>=2.0:../../net/lua-socket
HAS_CONFIGURE= yes
USE_TOOLS+= gmake
@@ -51,10 +51,7 @@ CONF_FILES+= ${EGDIR}/certs/localhost.key ${PKG_SYSCONFDIR}/certs/localhost.key
CFLAGS+= -fPIC -Wall -DLUA_COMPAT_MODULE
-REPLACE_INTERPRETER+= lua
-REPLACE.lua.old= /usr/bin/env lua
-REPLACE.lua.new= ${PREFIX}/bin/lua
-REPLACE_FILES.lua= prosody prosodyctl
+REPLACE_LUA+= prosody prosodyctl
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
@@ -77,6 +74,8 @@ SUBST_SED.config= -e 's,@PROSODY_DATA@,${PROSODY_DATA},'
SUBST_SED.config+= -e 's,@PROSODY_LOG@,${PROSODY_LOG},'
SUBST_SED.config+= -e 's,@PROSODY_RUN@,${PROSODY_RUN},'
+.include "../../lang/lua/application.mk"
+
.include "../../devel/libidn/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"