From 05961325dc9a37d992e3ee9e9deed0877b8ac56f Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Thu, 21 May 2026 18:41:48 +0200
Subject: [PATCH] meson: Only install 05-macos.conf on darwin

---
 conf.d/meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/conf.d/meson.build b/conf.d/meson.build
index 2f8dfec9..974350d5 100644
--- a/conf.d/meson.build
+++ b/conf.d/meson.build
@@ -1,5 +1,4 @@
 conf_files = [
-  '05-macos.conf',
   '05-reset-dirs-sample.conf',
   '09-autohint-if-no-hinting.conf',
   '10-autohint.conf',
@@ -50,7 +49,6 @@ preferred_sub_pixel_rendering = get_option('default-sub-pixel-rendering')
 preferred_bitmap = get_option('bitmap-conf')
 
 conf_links = [
-  '05-macos.conf',
   '10-scale-bitmap-fonts.conf',
   '10-yes-antialias.conf',
   '11-lcdfilter-default.conf',
@@ -73,6 +71,11 @@ conf_links = [
   '90-synthetic.conf',
 ]
 
+if host_machine.system() == 'darwin'
+  conf_files += '05-macos.conf'
+  conf_links += '05-macos.conf'
+endif
+
 if preferred_hinting != 'noinstall'
   conf_links += '10-hinting-@0@.conf'.format(preferred_hinting)
 endif
-- 
GitLab

