diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-25 13:54:52 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-25 13:54:52 +0200 |
| commit | 8132c06bf78e2ed39deb917fd9e96823e40b7b42 (patch) | |
| tree | 49c97e0daf25d9ef4654fc11cab262baf89c70a2 /x11-wm/mango/files/patch-meson.build | |
| parent | 11214b70b0d5e670d85c294e79f96cba63e34b13 (diff) | |
| download | ports-8132c06bf78e2ed39deb917fd9e96823e40b7b42.tar.gz | |
add sunshine, i3bar-river, mango and scenefx05 ports
Diffstat (limited to 'x11-wm/mango/files/patch-meson.build')
| -rw-r--r-- | x11-wm/mango/files/patch-meson.build | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/x11-wm/mango/files/patch-meson.build b/x11-wm/mango/files/patch-meson.build new file mode 100644 index 0000000..5fc5a00 --- /dev/null +++ b/x11-wm/mango/files/patch-meson.build @@ -0,0 +1,30 @@ +--- meson.build.orig 2026-05-29 13:04:35 UTC ++++ meson.build +@@ -12,12 +12,16 @@ endif + endif + endif + ++osname = build_machine.system() ++ + prefix = get_option('prefix') + sysconfdir = get_option('sysconfdir') + + # 如果 sysconfdir 以 prefix 开头,去掉 prefix +-if sysconfdir.startswith(prefix) and not is_nixos +- sysconfdir = sysconfdir.substring(prefix.length()) ++if sysconfdir.startswith(prefix) and not is_nixos and osname != 'freebsd' ++ sysconfdir = sysconfdir.replace(prefix, '') + # 确保 sysconfdir 是绝对路径 + if not sysconfdir.startswith('/') + sysconfdir = '/' + sysconfdir +@@ -72,9 +76,8 @@ c_args = [ + '-g', + '-Wno-unused-function', + '-DWLR_USE_UNSTABLE', +- '-D_POSIX_C_SOURCE=200809L', + '-DVERSION="@0@"'.format(version_with_hash), +- '-DSYSCONFDIR="@0@"'.format('/etc'), ++ '-DSYSCONFDIR="@0@"'.format(sysconfdir), + ] + + # 仅在 debug 选项启用时添加调试参数 |
