add lua 5.4 support in lua module

ok sthen@
This commit is contained in:
semarie 2022-12-25 13:40:19 +00:00
parent a3846b9350
commit e6f07015a6
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@
SUBDIR += 5.1
SUBDIR += 5.2
SUBDIR += 5.3
SUBDIR += 5.4
.include <bsd.port.subdir.mk>

View File

@ -15,6 +15,8 @@ FLAVOR ?= # empty
MODLUA_VERSION = 5.2
.elif ${FLAVOR:Mlua53}
MODLUA_VERSION = 5.3
.elif ${FLAVOR:Mlua54}
MODLUA_VERSION = 5.4
.else
MODLUA_VERSION ?= ${MODLUA_DEFAULT_VERSION}
.endif
@ -28,6 +30,9 @@ MODLUA_FLAVOR = lua52
.elif "${MODLUA_VERSION}" == "5.3"
_MODLUA_PKG_PREFIX = lua53
MODLUA_FLAVOR = lua53
.elif "${MODLUA_VERSION}" == "5.4"
_MODLUA_PKG_PREFIX = lua54
MODLUA_FLAVOR = lua54
.else
ERRORS += "Invalid MODLUA_VERSION set: ${MODLUA_VERSION}."
.endif