git: b4adf0f2dd79 - main - devel/libunicode-contour: fix build on powerpc64le
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Aug 2025 08:14:34 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b4adf0f2dd79607d012ab9c15503f3390f9fbc38
commit b4adf0f2dd79607d012ab9c15503f3390f9fbc38
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-08-21 08:13:18 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-08-21 08:14:30 +0000
devel/libunicode-contour: fix build on powerpc64le
Use clang's SSE translation, libunicode has intrinsics implemented
only for amd64 and arm64:
/wrkdirs/usr/ports/devel/libunicode-contour/work/libunicode-0.6.0/src/libunicode/scan.cpp:110:5: error: use of undeclared identifier 'intrinsics'
110 | intrinsics::m128i const ControlCodeMax = intrinsics::set1_epi8(0x20); // 0..0x1F
| ^
---
devel/libunicode-contour/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/devel/libunicode-contour/Makefile b/devel/libunicode-contour/Makefile
index 9e7001648d9b..5055291498ce 100644
--- a/devel/libunicode-contour/Makefile
+++ b/devel/libunicode-contour/Makefile
@@ -25,6 +25,8 @@ USE_LDCONFIG= ${PREFIX}/lib/contour
CMAKE_ARGS= -DLIBUNICODE_UCD_DIR:STRING=${LOCALBASE}/share/unicode/ucd \
${CMAKE_ARGS_${ARCH}}
CMAKE_ARGS_i386= -DLIBUNICODE_SIMD_IMPLEMENTATION:STRING=std
+CMAKE_ARGS_powerpc64le= -DLIBUNICODE_SIMD_IMPLEMENTATION:STRING=sse2
+CXXFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS -D__SSE2__
REINPLACE_ARGS= -i ''