| @@ -1,15 +1,25 @@ | | | @@ -1,15 +1,25 @@ |
1 | $NetBSD: patch-meson.build,v 1.1 2020/11/10 01:21:24 nia Exp $ | | 1 | $NetBSD: patch-meson.build,v 1.2 2021/11/17 09:43:03 cirnatdan Exp $ |
2 | | | 2 | |
3 | Install config files to examples. | | 3 | Install config files to examples. |
| | | 4 | Fix meson syntax |
4 | | | 5 | |
5 | --- meson.build.orig 2020-10-08 20:37:58.145899300 +0000 | | 6 | --- meson.build.orig 2020-10-08 20:37:58.145899300 +0000 |
6 | +++ meson.build | | 7 | +++ meson.build |
7 | @@ -25,7 +25,7 @@ gsd_includedir = join_paths(gsd_prefix, | | 8 | @@ -25,7 +25,7 @@ gsd_includedir = join_paths(gsd_prefix, |
8 | gsd_libdir = join_paths(gsd_prefix, get_option('libdir')) | | 9 | gsd_libdir = join_paths(gsd_prefix, get_option('libdir')) |
9 | gsd_libexecdir = join_paths(gsd_prefix, get_option('libexecdir')) | | 10 | gsd_libexecdir = join_paths(gsd_prefix, get_option('libexecdir')) |
10 | gsd_localedir = join_paths(gsd_prefix, get_option('localedir')) | | 11 | gsd_localedir = join_paths(gsd_prefix, get_option('localedir')) |
11 | -gsd_sysconfdir = join_paths(gsd_prefix, get_option('sysconfdir')) | | 12 | -gsd_sysconfdir = join_paths(gsd_prefix, get_option('sysconfdir')) |
12 | +gsd_sysconfdir = join_paths(gsd_prefix, get_option('datadir'), 'examples') | | 13 | +gsd_sysconfdir = join_paths(gsd_prefix, get_option('datadir'), 'examples') |
13 | | | 14 | |
14 | gsd_pkgdatadir = join_paths(gsd_datadir, meson.project_name()) | | 15 | gsd_pkgdatadir = join_paths(gsd_datadir, meson.project_name()) |
15 | gsd_pkgincludedir = join_paths(gsd_includedir, gsd_api_name) | | 16 | gsd_pkgincludedir = join_paths(gsd_includedir, gsd_api_name) |
| | | 17 | @@ -83,7 +83,7 @@ endif |
| | | 18 | |
| | | 19 | # Workaround for meson's bug |
| | | 20 | # https://github.com/mesonbuild/meson/pull/1896 |
| | | 21 | -if get_option('b_ndebug') == true |
| | | 22 | +if get_option('b_ndebug') == 'true' |
| | | 23 | common_flags += ['-DG_DISABLE_ASSERT'] |
| | | 24 | endif |
| | | 25 | |