git: 34b2b20cc1ab - main - graphics/devil: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 18:10:17 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=34b2b20cc1aba1798ca9099125d2c6b340b5d760
commit 34b2b20cc1aba1798ca9099125d2c6b340b5d760
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 17:39:19 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 18:10:03 +0000
graphics/devil: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
Sponsored by: The FreeBSD Foundation
---
graphics/devil/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/graphics/devil/Makefile b/graphics/devil/Makefile
index bda2fe25e14d..9e32b36d06bc 100644
--- a/graphics/devil/Makefile
+++ b/graphics/devil/Makefile
@@ -62,6 +62,12 @@ SQUISH_CMAKE_BOOL= IL_USE_DXTC_SQUISH
#NVTT_CMAKE_BOOL= IL_USE_DXTC_NVIDIA
CMAKE_ARGS+= -DIL_USE_DXTC_NVIDIA=0
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CXXFLAGS+= -Dregister=
+.endif
+
post-install-DOCS-on:
cd ${WRKSRC}/DevIL-docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/DevIL && ${INSTALL_DATA} CREDITS NEWS README.md TODO ${STAGEDIR}${DOCSDIR}/