Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/irc/hexchat/files/patch-meson.build
16462 views
1
--- meson.build.orig 2021-10-01 21:52:09.000000000 +0200
2
+++ meson.build 2021-10-07 10:35:49.739120000 +0200
3
@@ -15,7 +15,7 @@
4
5
libgio_dep = dependency('gio-2.0', version: '>= 2.34.0')
6
libgmodule_dep = dependency('gmodule-2.0')
7
-
8
+libssl_dep_found = false
9
libcanberra_dep = dependency('libcanberra', version: '>= 0.22',
10
required: get_option('libcanberra'))
11
dbus_glib_dep = dependency('dbus-glib-1', required: get_option('dbus'))
12
@@ -25,7 +25,16 @@
13
libssl_dep = cc.find_library('libssl')
14
else
15
libssl_dep = dependency('openssl', version: '>= 0.9.8',
16
- required: get_option('tls'))
17
+ required: false)
18
+ if not libssl_dep.found()
19
+ libssl_dep = [
20
+ cc.find_library('ssl', required: get_option('tls')),
21
+ cc.find_library('crypto', required: get_option('tls'))
22
+ ]
23
+ libssl_dep_found = libssl_dep[0].found()
24
+ else
25
+ libssl_dep_found = libssl_dep.found()
26
+ endif
27
endif
28
29
config_h = configuration_data()
30
@@ -37,7 +46,7 @@
31
config_h.set10('ENABLE_NLS', true)
32
33
# Optional features
34
-config_h.set('USE_OPENSSL', libssl_dep.found())
35
+config_h.set('USE_OPENSSL', libssl_dep_found)
36
config_h.set('USE_LIBCANBERRA', libcanberra_dep.found())
37
config_h.set('USE_DBUS', dbus_glib_dep.found())
38
config_h.set('USE_PLUGIN', get_option('plugin'))
39
@@ -57,7 +66,7 @@
40
join_paths(get_option('prefix'), get_option('libdir'), 'hexchat/plugins')
41
)
42
43
-if libssl_dep.found()
44
+if libssl_dep_found
45
config_h.set('HAVE_X509_GET_SIGNATURE_NID',
46
cc.has_function('X509_get_signature_nid', dependencies: libssl_dep)
47
)
48
@@ -178,7 +187,7 @@
49
}, section: 'Directories')
50
51
summary({
52
- 'TLS (openssl)': libssl_dep.found(),
53
+ 'TLS (openssl)': libssl_dep_found,
54
'Plugin Support': get_option('plugin'),
55
'DBus Support': dbus_glib_dep.found(),
56
'libcanberra': libcanberra_dep.found(),
57
58