git: 29e3d406ff35 - main - graphics/povray37: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Jul 2023 15:50:46 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=29e3d406ff3583fca47401bcc05868b9889ee116
commit 29e3d406ff3583fca47401bcc05868b9889ee116
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-18 13:45:33 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-18 15:50:38 +0000
graphics/povray37: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
graphics/povray37/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/graphics/povray37/Makefile b/graphics/povray37/Makefile
index cd65dc67d237..ec3be553b1dc 100644
--- a/graphics/povray37/Makefile
+++ b/graphics/povray37/Makefile
@@ -97,6 +97,10 @@ post-patch:
${REINPLACE_CMD} -e 's|@@EXAMPLESDIR@@|${EXAMPLESDIR}|' \
-e 's|@@ETCDIR@@|${ETCDIR}|' \
${WRKSRC}/unix/povray.conf
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+ @${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|' \
+ ${WRKSRC}/source/backend/render/trace.cpp
+.endif
pre-configure:
cd ${WRKSRC}/unix && ./prebuild.sh