From 2b636272ac985fcc3b294a05e6caf87d5a642c52 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Fri, 21 Jul 2023 18:14:10 +0200 Subject: [PATCH] games/chessx: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/chessx/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/games/chessx/Makefile b/games/chessx/Makefile index 7ea3139d624b..40234def862d 100644 --- a/games/chessx/Makefile +++ b/games/chessx/Makefile @@ -31,6 +31,14 @@ STOCKFISH_DESC= Install Stockfish Chess Engine CRAFTY_RUN_DEPENDS= crafty:games/crafty STOCKFISH_RUN_DEPENDS= stockfish:games/stockfish +.include + +post-patch: +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 + @${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \ + ${WRKSRC}/src/database/polyglotdatabase.cpp +.endif + post-configure: ( cd ${BUILD_WRKSRC} && ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro ) @@ -40,4 +48,4 @@ post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chessx ${FIND} ${STAGEDIR}${PREFIX} -name 'ecp.????????' -delete -.include +.include