From 8132c06bf78e2ed39deb917fd9e96823e40b7b42 Mon Sep 17 00:00:00 2001 From: cashmere Date: Sat, 25 Jul 2026 13:54:52 +0200 Subject: add sunshine, i3bar-river, mango and scenefx05 ports --- x11-wm/mango/files/patch-meson.build | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 x11-wm/mango/files/patch-meson.build (limited to 'x11-wm/mango/files/patch-meson.build') 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 选项启用时添加调试参数 -- cgit v1.3.1