From 03b2c7ada53cd82a7b1d9d7d68b0683f2d224012 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 6 Aug 2023 13:57:41 +0200 Subject: 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(+) (limited to 'graphics/rubygem-opengl') 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 + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CONFIGURE_ARGS+= --with-cflags="-Wno-error=incompatible-function-pointer-types" +.endif + .include -- cgit v1.2.3