Files
namn 008d5ee523 Import lang/luabridge, a library for binding Lua to C++
ok stsp@

LuaBridge is a lightweight and dependency-free library for mapping data,
functions, and classes back and forth between C++ and Lua, a powerful,
fast, lightweight, embeddable scripting language. LuaBridge has been
tested and works with Lua revisions starting from 5.1.5, although it
should work in any version of Lua from 5.1.0 and later. It also works
transparently with LuaJIT.

LuaBridge offers the following features:

- MIT Licensed, no usage restrictions!
- Headers-only: No Makefile, no .cpp files, just one #include!
- Simple, light, and nothing else needed (like Boost).
- No macros, settings, or configuration scripts needed.
- Supports different object lifetime management models.
- Convenient, type-safe access to the Lua stack.
- Automatic function parameter type binding.
- Easy access to Lua objects like tables and functions.
- Written in a clear and easy to debug style.
- C++11 compliant.
2023-04-25 19:11:22 +00:00

37 lines
927 B
Makefile

COMMENT = lightweight, dependency-free library for binding Lua to C++
V=2.8
DISTNAME = luabridge-${V}
GH_ACCOUNT = vinniefalco
GH_PROJECT = LuaBridge
GH_TAGNAME = ${V}
CATEGORIES = lang
HOMEPAGE = https://github.com/vinniefalco/LuaBridge
# MIT
PERMIT_PACKAGE = Yes
MODULES = devel/cmake
CONFIGURE_ARGS = -DLUABRIDGE_TESTING=OFF
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/LuaBridge
.for l in List LuaBridge Map RefCountedObject RefCountedPtr UnorderedMap \
Vector Array
${INSTALL_DATA} ${WRKDIST}/Source/LuaBridge/$l.h \
${PREFIX}/include/LuaBridge
${INSTALL_DATA_DIR} ${PREFIX}/include/LuaBridge/detail
.endfor
.for l in CFunctions ClassInfo Config Constructor dump FuncTraits Iterator \
LuaException LuaHelpers LuaRef Namespace Stack TypeList TypeTraits \
Userdata Security
${INSTALL_DATA} ${WRKDIST}/Source/LuaBridge/detail/$l.h \
${PREFIX}/include/LuaBridge/detail
.endfor
.include <bsd.port.mk>