aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2022-05-07 19:22:26 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2022-05-07 19:44:12 +0000
commit7fafedd73f0b64a16c85cc221244360b520ca3f9 (patch)
tree3917f01acf133b1fdc54693f7634afa31814076b
parentb2198bfa357ae2b4f1504eda49f743e2671b8cf5 (diff)
downloadports-7fafedd73f0b64a16c85cc221244360b520ca3f9.tar.gz
ports-7fafedd73f0b64a16c85cc221244360b520ca3f9.zip
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
-rw-r--r--editors/imhex/Makefile13
1 files changed, 12 insertions, 1 deletions
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>