git: 1e750acf0e47 - main - math/alps: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 12:16:13 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1e750acf0e47ff8940c8605d20033da24a2b1876
commit 1e750acf0e47ff8940c8605d20033da24a2b1876
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-26 11:34:58 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 12:16:00 +0000
math/alps: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
math/alps/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/math/alps/Makefile b/math/alps/Makefile
index 804c259b4537..162cd959d8f0 100644
--- a/math/alps/Makefile
+++ b/math/alps/Makefile
@@ -26,6 +26,14 @@ GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+ @${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \
+ ${WRKSRC}/Alps/src/AlpsHelperFunctions.h
+.endif
+
post-install:
${RM} -r ${STAGEDIR}${PREFIX}/share