aa6b357bbf
"Fix bit32 conversion issues for Lua 5.1 on 32 bit The default unsigned conversion procedure from upstream using `lua_Integer` as an intermediate value fails if `lua_Integer` has only 32 bits (as is the case on 32 bit Lua 5.1). This fix uses a `lua_Number` (hopefully double) as intermediate value in those cases."
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2021/06/07 11:38:58 nia Exp $
|
|
|
|
DISTNAME= lua-compat53-0.10
|
|
PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/^lua-//1}
|
|
CATEGORIES= devel lua
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
|
|
GITHUB_PROJECT= lua-compat-5.3
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/keplerproject/lua-compat-5.3
|
|
COMMENT= Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1
|
|
LICENSE= mit
|
|
|
|
PLIST_SUBST+= LUA_INCDIR=${LUA_INCDIR}
|
|
|
|
PRINT_PLIST_AWK+= /^${LUA_INCDIR:S|/|\\/|g}/ \
|
|
{ gsub(/${LUA_INCDIR:S|/|\\/|g}/, "$${LUA_INCDIR}") }
|
|
|
|
INSTALLATION_DIRS+= ${LUA_LDIR} ${LUA_CDIR} ${LUA_INCDIR}
|
|
INSTALLATION_DIRS+= ${LUA_LDIR}/compat53
|
|
INSTALLATION_DIRS+= ${LUA_CDIR}/compat53
|
|
|
|
pre-build:
|
|
${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_LIB} ${WRKSRC}/*.so ${DESTDIR}${PREFIX}/${LUA_CDIR}/compat53
|
|
${INSTALL_DATA} ${WRKSRC}/compat53/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/compat53
|
|
${INSTALL_DATA} ${WRKSRC}/c-api/* ${DESTDIR}${PREFIX}/${LUA_INCDIR}
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/tests && ${LUA_INTERPRETER} test.lua
|
|
|
|
.include "../../lang/lua/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|