diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-11-12 14:23:12 +0000 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-11-12 14:23:12 +0000 |
commit | 9336ef2636c412d1bec2a00338e8537553a4da19 (patch) | |
tree | 2d154e25ebe54f7da2568b7498de0412fcf6795d /Mk | |
parent | 89717616acd8d3d3e0326d644d6789af102929a3 (diff) | |
download | FreeBSD-ports-9336ef2636c412d1bec2a00338e8537553a4da19.zip FreeBSD-ports-9336ef2636c412d1bec2a00338e8537553a4da19.tar.gz |
- Add LUA_CMD, LUAC_CMD and TOLUA_CMD variables.
- Use "?=" instead of "=" for defining LUA_VER.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.lua.mk | 10 |
1 files changed, 9 insertions, 1 deletions
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))) |