pkgsrc/devel/lua-bit32/Makefile
nia 59d7fb0955 Add LUA_LINKER_MAGIC variable that centrally sets LDFLAGS on Darwin,
as should probably have been done to begin with. Remove per-package hacks.
2020-07-11 15:14:29 +00:00

33 lines
916 B
Makefile

# $NetBSD: Makefile,v 1.4 2020/07/11 15:14:29 nia Exp $
# Keep versioning in sync with the luarocks rockspec.
DISTNAME= lua-compat53-0.9
PKGNAME= ${LUA_PKGPREFIX}-bit32-5.3.5
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
GITHUB_PROJECT= lua-compat-5.3
GITHUB_TAG= v${DISTNAME:S/^lua-compat53-//1}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://luarocks.org/modules/siffiejoe/bit32
COMMENT= Lua 5.2 bit manipulation library
LICENSE= mit
CONFLICTS+= ${LUA_PKGPREFIX}-bitlib-[0-9]*
SUPERSEDES+= ${LUA_PKGPREFIX}-bitlib-[0-9]*
INSTALLATION_DIRS+= ${LUA_CDIR}
pre-build:
${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
do-install:
${INSTALL_LIB} ${WRKSRC}/bit32.so \
${DESTDIR}${PREFIX}/${LUA_CDIR}/bit32.so
do-test:
cd ${WRKSRC}/tests && LUA_CPATH=${WRKSRC}/?.so \
${LUA_INTERPRETER} test-bit32.lua
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"