Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jun 2023 16:55:18 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c21a38f6fffb - main - emulators/x16-emulator: Fix build with llvm15
Message-ID:  <202306091655.359GtIRv074296@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306091655.359GtIRv074296>