void-packages/srcpkgs/xorg-server/patches/meson-fontrootdir.patch

27 lines
959 B
Diff

--- meson.build.orig
+++ meson.build
@@ -122,8 +122,11 @@
dfp = get_option('default_font_path')
if dfp == ''
- fontutil_dep = dependency('fontutil')
- fontrootdir = fontutil_dep.get_pkgconfig_variable('fontrootdir')
+ fontrootdir = get_option('font_root_dir')
+ if fontrootdir == ''
+ fontutil_dep = dependency('fontutil')
+ fontrootdir = fontutil_dep.get_pkgconfig_variable('fontrootdir')
+ endif
default_font_path = ','.join([
join_paths(fontrootdir, 'misc'),
join_paths(fontrootdir, 'TTF'),
--- meson_options.txt.orig
+++ meson_options.txt
@@ -24,6 +24,7 @@
option('module_dir', type: 'string', value: 'xorg/modules',
description: 'X.Org modules directory (absolute or relative to the directory specified by the libdir option)')
option('default_font_path', type: 'string')
+option('font_root_dir', type: 'string')
option('glx', type: 'boolean', value: true)
option('xdmcp', type: 'boolean', value: true)