git: 7fafedd73f0b - main - editors/imhex: Mark IGNORE for FreeBSD versions that uses old libc++
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 May 2022 19:44:35 UTC
The branch main has been updated by nobutaka: URL: https://cgit.FreeBSD.org/ports/commit/?id=7fafedd73f0b64a16c85cc221244360b520ca3f9 commit 7fafedd73f0b64a16c85cc221244360b520ca3f9 Author: MANTANI Nobutaka <nobutaka@FreeBSD.org> AuthorDate: 2022-05-07 19:22:26 +0000 Commit: MANTANI Nobutaka <nobutaka@FreeBSD.org> CommitDate: 2022-05-07 19:44:12 +0000 editors/imhex: Mark IGNORE for FreeBSD versions that uses old libc++ ImHex heavily uses C++20 API functions and some of them are unavailable in old libc++ before LLVM13 import to the base system. Therefore, build always fails on the systems that use old libc++. PR: 263779 --- editors/imhex/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/editors/imhex/Makefile b/editors/imhex/Makefile index 0f32187a403d..5e48b4f72f3d 100644 --- a/editors/imhex/Makefile +++ b/editors/imhex/Makefile @@ -65,6 +65,17 @@ PORTDOCS= README.md OPTIONS_DEFINE= DOCS NLS NLS_USES= gettext +.include <bsd.port.pre.mk> + +OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} + +# Before LLVM13 import to the base system +.if (${OSMAJOR} == 12 && ${OSVERSION} < 1203505) \ + || (${OSMAJOR} == 13 && ${OSVERSION} < 1300523) \ + || (${OSMAJOR} == 14 && ${OSVERSION} < 1400042) +IGNORE= will not build due to C++20 API functions unavailable in old libc++ +.endif + post-extract: ${CP} ${DISTDIR}/${DIST_SUBDIR}/xdg.hpp ${WRKSRC}/lib/external/xdgpp ${CP} -R ${WRKSRC_capstone}/* ${WRKSRC}/lib/external/capstone @@ -80,4 +91,4 @@ post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} -.include <bsd.port.mk> +.include <bsd.port.post.mk>