git: 5b3ae40ea0b2 - main - graphics/togl: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 12:16:19 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5b3ae40ea0b2a9ebb0a2f727fc2bb6e6bd81f34b
commit 5b3ae40ea0b2a9ebb0a2f727fc2bb6e6bd81f34b
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-26 11:53:11 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 12:16:01 +0000
graphics/togl: Fix build with llvm16
- Pet portclippy
Sponsored by: The FreeBSD Foundation
---
graphics/togl/Makefile | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/graphics/togl/Makefile b/graphics/togl/Makefile
index 45deaa70a367..3943f03e8d82 100644
--- a/graphics/togl/Makefile
+++ b/graphics/togl/Makefile
@@ -14,18 +14,24 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gl gmake tk:86,tea xorg
-USE_XORG= x11 xt xmu
USE_GL= gl
USE_LDCONFIG= ${PREFIX}/lib/Togl2.0
+USE_XORG= x11 xt xmu
WRKSRC= ${WRKDIR}/Togl2.0
-TOGL_INSTDIR= ${PREFIX}/lib/${DISTNAME}
+PORTDOCS= *
+PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
-PORTDOCS= *
-PORTEXAMPLES= *
+TOGL_INSTDIR= ${PREFIX}/lib/${DISTNAME}
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|wish |${WISH:T} |' ${WRKSRC}/*.tcl