git: c21a38f6fffb - main - emulators/x16-emulator: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Jun 2023 16:55:18 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=c21a38f6fffbaa254d31dda179d9f452357a1a18 commit c21a38f6fffbaa254d31dda179d9f452357a1a18 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-09 16:44:13 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-09 16:55:04 +0000 emulators/x16-emulator: Fix build with llvm15 Approved by: portmgr (blanket) --- emulators/x16-emulator/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emulators/x16-emulator/Makefile b/emulators/x16-emulator/Makefile index 9c371aed1431..433d3718c2db 100644 --- a/emulators/x16-emulator/Makefile +++ b/emulators/x16-emulator/Makefile @@ -26,8 +26,15 @@ DESKTOP_ENTRIES= "Commander X16" \ PLIST_FILES= bin/x16emu +.include <bsd.port.options.mk> + post-patch: ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/src/main.c +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) + ${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=-Wno-error=deprecated-non-prototype |g' \ + ${WRKSRC}/Makefile +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/x16emu ${STAGEDIR}${PREFIX}/bin