This section describes the status of the Lua libraries in the ports tree and its integration with the ports system.
There are many versions of the Lua libraries and corresponding interpreters, which conflict between them (install files under the same name). In the ports tree this problem has been solved by installing each version under a different name using version number suffixes.
The obvious disadvantage of this is that each application has to be modified to find the expected version. But it can be solved by adding some additional flags to the compiler and linker.
A port using Lua only needs to have this line:
USES= lua
If a specific version of Lua is needed, instructions on
how to select it are given in the USES=lua
part
of Chapter 15, Values of
USES
.
These variables are available in the port.
Name | Description |
---|---|
LUA_VER | The Lua version that
is going to be used (for example,
5.1 ) |
LUA_VER_STR | The Lua version
without the dots (for example,
51 ) |
LUA_PREFIX | The prefix where Lua (and components) is installed |
LUA_SUBDIR | The directory under
${PREFIX}/bin ,
${PREFIX}/share and
${PREFIX}/lib where
Lua is installed |
LUA_INCDIR | The directory where Lua and tolua header files are installed |
LUA_LIBDIR | The directory where Lua and tolua libraries are installed |
LUA_MODLIBDIR | The directory where
Lua module libraries
(.so ) are installed |
LUA_MODSHAREDIR | 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 |
All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/
Questions that are not answered by the
documentation may be
sent to <[email protected]>.
Send questions about this document to <[email protected]>.