git: 42e21c547c88 - main - graphics/opendx: Make it build with clang 19

From: Stephen Montgomery-Smith <stephen_at_FreeBSD.org>
Date: Sun, 04 Jan 2026 03:43:51 UTC
The branch main has been updated by stephen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=42e21c547c888199ab318786c40d3838dc6d012d

commit 42e21c547c888199ab318786c40d3838dc6d012d
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2026-01-04 03:39:38 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2026-01-04 03:39:38 +0000

    graphics/opendx: Make it build with clang 19
    
    - Make it build with clang 19 and higher.
    
    - bump portrevision.
    
    PR:             292168
    Reported by:    dim@FreeBSD.org
---
 graphics/opendx/Makefile | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile
index 30e4c3d91fdd..12c5f1567405 100644
--- a/graphics/opendx/Makefile
+++ b/graphics/opendx/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	opendx
 PORTVERSION=	4.4.4
-PORTREVISION=	40
+PORTREVISION=	41
 CATEGORIES=	graphics math java
 MASTER_SITES=	http://www.sfr-fresh.com/unix/misc/
 DISTNAME=	dx-${PORTVERSION}
@@ -18,6 +18,7 @@ LIB_DEPENDS=	libtiff.so:graphics/tiff		\
 		libcdf.so:science/cdf
 
 USES=		bison compiler:c++17-lang gl gmake libtool localbase:ldflags magick:6 motif sbrk xorg
+USE_CXXSTD=	gnu++11
 USE_GL=		gl glu
 USE_LDCONFIG=	yes
 USE_XORG=	x11 xt xinerama xext xpm xmu sm ice
@@ -29,8 +30,6 @@ CONFIGURE_ENV=	ARCH=freebsd
 
 MAKE_JOBS_UNSAFE=	yes
 
-CPPFLAGS+=	${CXXFLAGS}
-
 NO_MTREE=	yes
 
 PKGMESSAGE=	${WRKDIR}/pkg-message
@@ -69,16 +68,12 @@ PLIST_SUB+=	JAVA="@comment "
 
 PLIST_SUB+=	UNAMEP=${ARCH}
 
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
 
-.if ${OPSYS} == FreeBSD
-USES+=	llvm:max=15
-CONFIGURE_ENV+=	ac_cv_requires_lstdcxx=yes
+.if ${COMPILER_TYPE} == clang
 CFLAGS+=	-Wno-error=incompatible-function-pointer-types
 .endif
 
-.include <bsd.port.pre.mk>
-
 post-patch:
 	@${RM} ${WRKSRC}/include/stamp-h.in
 .for dir in doc help html man