Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/dns/bind9-devel/files/patch-meson.build
16462 views
1
Use bind-tools option to ease the server/tools package split
2
3
--- meson.build.orig 2025-08-13 17:10:38 UTC
4
+++ meson.build
5
@@ -69,6 +69,8 @@ zlib_opt = get_option('zlib')
6
tracing_opt = get_option('tracing')
7
zlib_opt = get_option('zlib')
8
9
+bind_tools = get_option('bind-tools').enabled()
10
+
11
if meson.version().version_compare('>=1.1.0')
12
build_options = meson.build_options()
13
if build_options == ''
14
@@ -976,9 +978,15 @@ isc_srcconf = isc_srcset.apply(config, strict: false)
15
16
isc_srcconf = isc_srcset.apply(config, strict: false)
17
18
+project_version = meson.project_version()
19
+soversion_parts = project_version.split('.') # ['1', '2', '3']
20
+soversion = '@0@.@1@'.format(soversion_parts[0], soversion_parts[1])
21
+
22
libisc = library(
23
'isc',
24
isc_srcconf.sources(),
25
+ version: project_version,
26
+ soversion: soversion,
27
objects: isc_probe_objects,
28
install: true,
29
install_rpath: libdir,
30
@@ -1006,6 +1014,8 @@ libdns = library(
31
libdns = library(
32
'dns',
33
dns_srcconf.sources(),
34
+ version: project_version,
35
+ soversion: soversion,
36
include_directories: dns_inc,
37
install: true,
38
install_rpath: libdir,
39
@@ -1040,6 +1050,8 @@ libns = library(
40
libns = library(
41
'ns',
42
ns_srcconf.sources(),
43
+ version: project_version,
44
+ soversion: soversion,
45
objects: ns_probe_objects,
46
install: true,
47
install_rpath: libdir,
48
@@ -1066,6 +1078,8 @@ libisccc = library(
49
libisccc = library(
50
'isccc',
51
isccc_srcconf.sources(),
52
+ version: project_version,
53
+ soversion: soversion,
54
implicit_include_directories: false,
55
include_directories: isccc_inc,
56
install: true,
57
@@ -1087,6 +1101,8 @@ libisccfg = library(
58
libisccfg = library(
59
'isccfg',
60
isccfg_srcconf.sources(),
61
+ version: project_version,
62
+ soversion: soversion,
63
implicit_include_directories: false,
64
include_directories: isccfg_inc,
65
install: true,
66
@@ -1107,6 +1123,7 @@ named_srcconf = named_srcset.apply(config, strict: fal
67
68
named_srcconf = named_srcset.apply(config, strict: false)
69
70
+if bind_tools
71
executable(
72
'arpaname',
73
arpaname_src,
74
@@ -1335,7 +1352,9 @@ executable(
75
libisc_dep,
76
],
77
)
78
+endif
79
80
+if not bind_tools
81
executable(
82
'named-checkconf',
83
named_checkconf_src,
84
@@ -1413,7 +1432,9 @@ endif
85
],
86
)
87
endif
88
+endif
89
90
+if bind_tools
91
executable(
92
'named-rrchecker',
93
named_rrchecker_src,
94
@@ -1427,7 +1448,9 @@ executable(
95
],
96
97
)
98
+endif
99
100
+if not bind_tools
101
executable(
102
'named',
103
named_srcconf.sources(),
104
@@ -1458,7 +1481,9 @@ executable(
105
named_srcconf.dependencies(),
106
],
107
)
108
+endif
109
110
+if bind_tools
111
executable(
112
'nsec3hash',
113
nsec3hash_src,
114
@@ -1506,7 +1531,9 @@ executable(
115
edit_dep,
116
],
117
)
118
+endif
119
120
+if not bind_tools
121
executable(
122
'rndc-confgen',
123
rndc_confgen_src,
124
@@ -1592,6 +1619,7 @@ shared_library(
125
libns_dep,
126
],
127
)
128
+endif
129
130
subdir('doc')
131
subdir('tests')
132
@@ -1659,7 +1687,6 @@ print(release_date, end="")
133
print(release_date, end="")
134
'''
135
136
-if doc_opt.allowed()
137
release_date = ''
138
if python.found()
139
release_date = run_command(python, ['-c', get_release_date], check: true).stdout()
140
@@ -1680,6 +1707,7 @@ if doc_opt.allowed()
141
142
install_man(man_pages)
143
144
+if doc_opt.allowed()
145
if sphinx_build.found()
146
alias_target('doc-misc', doc_misc_targets)
147
148
149