diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-11-12 14:23:12 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-11-12 14:23:12 +0000 |
commit | e9cb799675862b7b0108b6fc90faccb1101c4234 (patch) | |
tree | e426b3a8a7433dfc61e53e166c7e3e79495b626b /Mk/bsd.lua.mk | |
parent | Update to 1.4.3. (diff) |
- Add LUA_CMD, LUAC_CMD and TOLUA_CMD variables.
- Use "?=" instead of "=" for defining LUA_VER.
Notes
Notes:
svn path=/head/; revision=177100
Diffstat (limited to 'Mk/bsd.lua.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 9d19f8204412..589f9b25269d 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))) |