1 Use upstream utf8proc package, as suggested in
2 http://source.netsurf-browser.org/libutf8proc.git/commit/?id=770e329cceaf0620c7b482589a9b17ed1d19c16d
4 Work around upstream's lack of a pkg-config file and update API.
6 --- netsurf-3.6/Makefile
7 +++ netsurf-3.6/Makefile
9 $(eval $(call pkg_config_find_and_add,libcss,CSS))
10 $(eval $(call pkg_config_find_and_add,libdom,DOM))
11 $(eval $(call pkg_config_find_and_add,libnsutils,nsutils))
12 -$(eval $(call pkg_config_find_and_add,libutf8proc,utf8proc))
14 # Common libraries without pkg-config support
16 +LDFLAGS += -lz -lutf8proc
18 # Optional libraries with pkgconfig
20 --- netsurf-3.6/utils/idna.c
21 +++ netsurf-3.6/utils/idna.c
26 -#include <libutf8proc/utf8proc.h>
27 +#include <utf8proc.h>
29 #include "utils/errors.h"
30 #include "utils/idna.h"
35 - nfc_size = utf8proc_normalise(nfc_label, nfc_size,
36 + nfc_size = utf8proc_normalize_utf32(nfc_label, nfc_size,
37 UTF8PROC_STABLE | UTF8PROC_COMPOSE);
43 /* Perform NFC normalisation */
44 - ucs4_len = utf8proc_normalise(ucs4, u_ucs4_len,
45 + ucs4_len = utf8proc_normalize_utf32(ucs4, u_ucs4_len,
46 UTF8PROC_STABLE | UTF8PROC_COMPOSE);
49 --- netsurf-3.6/test/Makefile
50 +++ netsurf-3.6/test/Makefile
53 -Itest -Iinclude -Icontent/handlers -Ifrontends -I. -I.. \
55 - $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc libidn) \
56 + $(shell pkg-config --cflags libcurl libparserutils libwapcaplet libdom libnsutils libidn) \
60 -TESTLDFLAGS := $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils libutf8proc libidn) -lz \
61 +TESTLDFLAGS := $(shell pkg-config --libs libcurl libparserutils libwapcaplet libdom libnsutils libidn) -lz -lutf8proc \