emulators/dosbox: fix build with llvm16

Undefine 'register' keyword.

PR:		272659
Reported by:	Trond.Endrestol@ximalas.info
This commit is contained in:
Fernando Apesteguía 2023-07-23 19:14:30 +02:00
parent de30501050
commit 99db2990f1

View file

@ -36,6 +36,11 @@ DEBUGGER_HEAVY_DESC=Enable internal debugger with extra features
DEBUGGER_ENABLE_CONFIGURE_ON= --enable-debug=yes
DEBUGGER_HEAVY_CONFIGURE_ON= --enable-debug=heavy
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CPPFLAGS+= -Dregister=
.endif
post-patch:
@${REINPLACE_CMD} -e 's#\/usr\/share\/doc\/dosbox#${DOCSDIR}#g' \
${WRKSRC}/docs/dosbox.1