summaryrefslogtreecommitdiff
path: root/lang/lua/application.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/lua/application.mk')
-rw-r--r--lang/lua/application.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/lua/application.mk b/lang/lua/application.mk
index eace97b1b23..45e5a1d76e0 100644
--- a/lang/lua/application.mk
+++ b/lang/lua/application.mk
@@ -1,4 +1,4 @@
-# $NetBSD: application.mk,v 1.3 2013/10/30 09:09:59 obache Exp $
+# $NetBSD: application.mk,v 1.4 2014/05/03 13:00:44 alnsn Exp $
#
# This makefile fragment is intended to be included by packages that
# install Lua scripts.
@@ -11,11 +11,13 @@
# Keywords: Lua
#
+.if !defined(LUA_LUAVERSION_MK)
.include "../../lang/lua/luaversion.mk"
+.endif
.if defined(REPLACE_LUA)
REPLACE_INTERPRETER+= lua
REPLACE.lua.old= .*lua
-REPLACE.lua.new= ${LOCALBASE}/bin/lua
+REPLACE.lua.new= ${LUA_INTERPRETER}
REPLACE_FILES.lua= ${REPLACE_LUA}
.endif