From 9336ef2636c412d1bec2a00338e8537553a4da19 Mon Sep 17 00:00:00 2001 From: alepulver Date: Sun, 12 Nov 2006 14:23:12 +0000 Subject: - Add LUA_CMD, LUAC_CMD and TOLUA_CMD variables. - Use "?=" instead of "=" for defining LUA_VER. --- Mk/bsd.lua.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Mk/bsd.lua.mk') diff --git a/Mk/bsd.lua.mk b/Mk/bsd.lua.mk index 9d19f82..589f9b2 100644 --- a/Mk/bsd.lua.mk +++ b/Mk/bsd.lua.mk @@ -80,6 +80,9 @@ # - The directory where Lua modules (.lua) are installed. # LUA_PKGNAMEPREFIX # - The package name prefix used by Lua modules. +# LUA_CMD - The path to the Lua interpreter. +# LUAC_CMD - The path to the Lua compiler. +# TOLUA_CMD - The path to the tolua program. # # Examples: # - A port that needs Lua 4.0 and tolua (also 4.0) libraries (lua for building @@ -313,7 +316,7 @@ _LUA_VER= ${ver} # # Version. -LUA_VER= ${_LUA_VER} +LUA_VER?= ${_LUA_VER} LUA_VER_SH?= ${LUA_VER:C/[[:digit:]]\.([[:digit:]])/\1/} LUA_VER_STR?= ${LUA_VER:S/.//g} @@ -329,6 +332,11 @@ LUA_MODSHAREDIR?= ${LUA_PREFIX}/share/lua/${LUA_VER} # Package name. LUA_PKGNAMEPREFIX?= lua${LUA_VER_STR}- +# Programs. +LUA_CMD?= ${LUA_PREFIX}/bin/lua-${LUA_VER} +LUAC_CMD?= ${LUA_PREFIX}/bin/luac-${LUA_VER} +TOLUA_CMD?= ${LUA_PREFIX}/bin/tolua-${LUA_VER} + .endif # !_LUA_Version_Done && (_POSTMKINCLUDED || \ # (LUA_PREMK && BEFOREPORTMK && (USE_LUA || USE_LUA_NOT))) -- cgit v1.1