git: 2ebf737b7a7e - 2025Q3 - devel/libunicode-contour: fix build on powerpc64le

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 19 Sep 2025 08:34:02 UTC
The branch 2025Q3 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2ebf737b7a7eaaaf25c761f8f43924702052bf38

commit 2ebf737b7a7eaaaf25c761f8f43924702052bf38
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-08-21 08:13:18 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-19 08:32:37 +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
          |     ^
    
    (cherry picked from commit b4adf0f2dd79607d012ab9c15503f3390f9fbc38)
---
 devel/libunicode-contour/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/libunicode-contour/Makefile b/devel/libunicode-contour/Makefile
index 7838bbc1e031..6642bd91877c 100644
--- a/devel/libunicode-contour/Makefile
+++ b/devel/libunicode-contour/Makefile
@@ -24,6 +24,8 @@ USE_LDCONFIG=	yes
 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__
 
 CONFLICTS_INSTALL=	libunicode