git: 80c9446118f9 - main - graphics/pixen: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 12:04:04 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=80c9446118f9879504356cbf3f0ac7955c205b77
commit 80c9446118f9879504356cbf3f0ac7955c205b77
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 11:48:31 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 12:03:42 +0000
graphics/pixen: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
---
graphics/pixen/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/graphics/pixen/Makefile b/graphics/pixen/Makefile
index 7c89eea52d59..e6e594945e27 100644
--- a/graphics/pixen/Makefile
+++ b/graphics/pixen/Makefile
@@ -17,13 +17,17 @@ USE_GNUSTEP= back build
ADDITIONAL_OBJCFLAGS+= -Dlog2=logb
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/Pixen.app/Pixen
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>