git: 03b2c7ada53c - main - graphics/rubygem-opengl: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Aug 2023 12:30:48 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=03b2c7ada53cd82a7b1d9d7d68b0683f2d224012
commit 03b2c7ada53cd82a7b1d9d7d68b0683f2d224012
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 11:57:41 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 12:30:36 +0000
graphics/rubygem-opengl: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
graphics/rubygem-opengl/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/graphics/rubygem-opengl/Makefile b/graphics/rubygem-opengl/Makefile
index bb6e82c19b35..77b9facdee56 100644
--- a/graphics/rubygem-opengl/Makefile
+++ b/graphics/rubygem-opengl/Makefile
@@ -16,4 +16,10 @@ LICENSE_FILE= ${WRKSRC}/MIT-LICENSE
USES= gl gem
USE_GL= glut
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CONFIGURE_ARGS+= --with-cflags="-Wno-error=incompatible-function-pointer-types"
+.endif
+
.include <bsd.port.mk>