Files
ports/devel/lua-luastatic/Makefile
T
Kyle Evans c648a3cebd devel/lua-luastatic: add new port
luastatic builds a standalone executable from a lua script, obviating
the need for lua proper rto be installed on the target system.  This is
used by newer versions of luacheck, which we use for sanity checking
lua scripts in the base system.
2025-07-26 13:50:53 -05:00

31 lines
662 B
Makefile

PORTNAME= luastatic
PORTVERSION= 0.0.12
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= kevans@FreeBSD.org
COMMENT= Build a standalone executable from a Lua program
WWW= https://github.com/ers35/luastatic
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/license.txt
USES= gmake lua
USE_GITHUB= yes
GH_ACCOUNT= ers35
MAKE_ENV+= LUA=${LUA_CMD}
MAKE_ENV+= LIBLUA_A=${LOCALBASE}/lib/liblua-${LUA_VER}.a
MAKE_ENV+= LUA_INCLUDE=${LUA_INCDIR}
PLIST_FILES= bin/luastatic
ALL_TARGET= luastatic
TEST_TARGET= run_test
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/luastatic ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>