63c9c752f16fdbe801845db70d358cab34e1fd73
[feed/packages.git] / libs / libpsl / patches / 020-iconv.patch
1 --- a/meson.build
2 +++ b/meson.build
3 @@ -20,6 +20,7 @@ libicu_dep = notfound
4 libidn_dep = notfound
5 libunistring = notfound
6 networking_deps = notfound
7 +libiconv_dep = notfound
8
9 # FIXME: Cleanup this when Meson gets 'feature-combo':
10 # https://github.com/mesonbuild/meson/issues/4566
11 @@ -86,6 +87,7 @@ endif
12 if libidn2_dep.found() or libidn_dep.found()
13 # Check for libunistring, we need it for psl_str_to_utf8lower()
14 libunistring = cc.find_library('unistring')
15 + libiconv_dep = dependency('iconv')
16 endif
17
18 if host_machine.system() == 'windows'
19 --- a/src/meson.build
20 +++ b/src/meson.build
21 @@ -19,7 +19,7 @@ cargs = [
22 libpsl = library('psl', sources, suffixes_dafsa_h,
23 include_directories : [configinc, includedir],
24 c_args : cargs,
25 - dependencies : [libidn2_dep, libidn_dep, libicu_dep, libunistring, networking_deps],
26 + dependencies : [libidn2_dep, libidn_dep, libicu_dep, libunistring, networking_deps, libiconv_dep],
27 version: lt_version,
28 install: true,
29 )