Skip to content

Commit b36f275

Browse files
committed
sdk: Add utf8proc
1 parent 370c819 commit b36f275

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

sdk/Makefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ VERSION_LIBCARES := 1.34.5
6262
# https://curl.se/
6363
VERSION_LIBCURL := 8.17.0
6464

65+
# Text processing
66+
67+
# https://github.com/JuliaStrings/utf8proc
68+
VERSION_UTF8PROC := 2.11.3
69+
6570
############################################################################
6671

6772
# Platforms with no native iconv (AmigaOS, Atari, Windows)
@@ -176,7 +181,7 @@ REPACK := $(CURDIR)/../tools/repack
176181
# Compute the SDK components
177182
SDK_ITEMS :=
178183

179-
COMMON_SDK_ITEMS := zlib.d openssl.d libpng.d libcares.d libcurl.d libexpat.d
184+
COMMON_SDK_ITEMS := zlib.d openssl.d libpng.d libcares.d libcurl.d libexpat.d utf8proc.d
180185

181186
LIBCURL_SSL := openssl
182187
LIBCURL_DISABLES := $(patsubst %,--disable-%,ftp file dict ldap ldaps mqtt rtsp telnet gopher tftp pop3 imap smb smtp manual)
@@ -383,6 +388,21 @@ $(BUILDSTEPS)/libiconv-gensrc.d: $(BUILDSTEPS)/builddir.d
383388
wget -q -O $(BUILDDIR)/$(subst $(SOURCEDIR)/,,$(SOURCETARBALL_LIBICONV)) "https://ftp.gnu.org/pub/gnu/libiconv/$(subst _,-,$(subst $(SOURCEDIR)/,,$(SOURCETARBALL_LIBICONV)))"
384389
touch $@
385390

391+
###########
392+
# utf8proc
393+
###########
394+
395+
$(eval $(call patched_source_rule,utf8proc,$(VERSION_UTF8PROC)))
396+
397+
$(BUILDSTEPS)/utf8proc.d: $(BUILDSTEPS)/builddir.d $(BUILDSTEP_SRC_UTF8PROC)
398+
mkdir -p $(BUILDDIR_UTF8PROC)/ns-sdk-build
399+
cd $(BUILDDIR_UTF8PROC)/ns-sdk-build && $(env) $(UTF8PROC_ENV) $(NS_SDK_CMAKE_CMD) -DCMAKE_BUILD_TYPE=Release ..
400+
cd $(BUILDDIR_UTF8PROC)/ns-sdk-build && $(env) make install VERBOSE=1
401+
touch $@
402+
403+
$(BUILDSTEPS)/utf8proc-gensrc.d: $(BUILDSTEPS)/builddir.d
404+
wget -q -O $(BUILDDIR)/$(subst $(SOURCEDIR)/,,$(SOURCETARBALL_UTF8PROC)) "https://github.com/JuliaStrings/utf8proc/archive/refs/tags/v$(VERSION_UTF8PROC).tar.gz"
405+
touch $@
386406

387407
###########
388408
# libgnurx

0 commit comments

Comments
 (0)