Files
sthen d22a98951e disable intrinsics properly for newer versions of libunicode
unbreaks i386 and presumably other archs
2025-09-13 17:07:36 +00:00

41 lines
900 B
Makefile

COMMENT = Unicode support to C++ with simple and easy APIs
GH_ACCOUNT = contour-terminal
GH_PROJECT = libunicode
GH_TAGNAME = v0.6.0
SHARED_LIBS = unicode 0.0 # 0.0
SHARED_LIBS += unicode_loader 0.0 # 0.0
SHARED_LIBS += unicode_ucd 0.0 # 0.0
CATEGORIES = textproc
MAINTAINER = SASANO Takayoshi <uaa@openbsd.org>
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB = ${COMPILER_LIBCXX} c m
# C++20
COMPILER = base-clang
MODULES = devel/cmake \
lang/python
BUILD_DEPENDS = textproc/unicode/ucd
CONFIGURE_STYLE = cmake
# to avoid "Can not find target to add properties to: Catch2" error,
# set LIBUNICODE_TESTING=OFF (and Catch2 is not used)
CONFIGURE_ARGS = -DLIBUNICODE_TESTING=OFF \
-DLIBUNICODE_UCD_DIR=${LOCALBASE}/share/unicode/ucd
.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "aarch64"
CONFIGURE_ARGS += -DLIBUNICODE_SIMD_IMPLEMENTATION=none
.endif
.include <bsd.port.mk>