attempt to fix build on SunOS

This commit is contained in:
nia 2020-07-03 20:41:36 +00:00
parent 13e3daed40
commit c9a8e6391a
2 changed files with 14 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2020/07/02 17:52:03 nia Exp $
# $NetBSD: Makefile,v 1.4 2020/07/03 20:41:36 nia Exp $
DISTNAME= lua-arc4random-1.3.4
PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@ -20,4 +20,8 @@ do-install:
${INSTALL_LIB} ${WRKSRC}/arc4random.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
. include "../../security/openssl/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2020/07/02 17:59:02 nia Exp $
# $NetBSD: Makefile,v 1.2 2020/07/03 20:41:36 nia Exp $
DISTNAME= lua-bcrypt-2.1.5
PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
@ -14,10 +14,18 @@ LICENSE= isc
USE_TOOLS+= gmake
CFLAGS.SunOS+= -Du_int8_t=uint8_t
CFLAGS.SunOS+= -Du_int16_t=uint16_t
CFLAGS.SunOS+= -Du_int32_t=uint32_t
INSTALLATION_DIRS+= ${LUA_CDIR}
do-install:
${INSTALL_LIB} ${WRKSRC}/bcrypt.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
. include "../../security/openssl/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"