Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 16:22:30 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: a4135938b101 - main - editors/e93: Fix build with llvm16
Message-ID:  <202308021622.372GMUOU035812@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=a4135938b1019a9defb46b5edf128b019073ac5b

commit a4135938b1019a9defb46b5edf128b019073ac5b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 15:47:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 16:22:19 +0000

    editors/e93: Fix build with llvm16
    
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 editors/e93/Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/editors/e93/Makefile b/editors/e93/Makefile
index a30514741c22..43a60b90a1ea 100644
--- a/editors/e93/Makefile
+++ b/editors/e93/Makefile
@@ -20,6 +20,16 @@ PORTDOCS=	README* TODO
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS\+=|g' \
+		${WRKSRC}/xgui/Makefile
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/e93 ${STAGEDIR}${PREFIX}/bin
 	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/e93lib
@@ -29,4 +39,4 @@ do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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