diff --git a/include/meson.build b/include/meson.build index 69aea8095..c64af59f5 100644 --- a/include/meson.build +++ b/include/meson.build @@ -87,8 +87,8 @@ conf_data.set_quoted('SERVER_MISC_CONFIG_PATH', serverconfigdir) conf_data.set_quoted('PROJECTROOT', get_option('prefix')) conf_data.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir'))) conf_data.set_quoted('SUID_WRAPPER_DIR', join_paths(get_option('prefix'), get_option('libexecdir'))) +conf_data.set_quoted('COMPILEDDEFAULTFONTPATH', default_font_path) -# XXX: Stopped enumerating at COMPILEDEFAULTFONTPATH conf_data.set('XORG_VERSION_CURRENT', release) conf_data.set('HASXDMAUTH', get_option('xdm-auth-1')) diff --git a/meson.build b/meson.build index 47b87b5e6..b39c47e81 100644 --- a/meson.build +++ b/meson.build @@ -118,6 +118,22 @@ if xkb_bin_dir == '' endif endif +dfp = get_option('default_font_path') +if dfp == '' + fontutil_dep = dependency('fontutil') + fontrootdir = fontutil_dep.get_pkgconfig_variable('fontrootdir') + default_font_path = ','.join([ + join_paths(fontrootdir, 'misc'), + join_paths(fontrootdir, 'TTF'), + join_paths(fontrootdir, 'OTF'), + join_paths(fontrootdir, 'Type1'), + join_paths(fontrootdir, '100dpi'), + join_paths(fontrootdir, '75dpi'), + ]) +else + default_font_path = dfp +endif + hal_option = get_option('hal') glamor_option = get_option('glamor') @@ -493,7 +509,7 @@ manpage_config.set('modulepath', join_paths(get_option('prefix'), module_dir)) # wtf doesn't this work # manpage_config.set('suid_wrapper_dir', join_paths(get_option('prefix'), libexecdir)) manpage_config.set('suid_wrapper_dir', join_paths(get_option('prefix'), 'libexec')) -manpage_config.set('default_font_path', 'catalogue:/etc/X11/fontpath.d:built-ins') +manpage_config.set('default_font_path', default_font_path) # Include must come first, as it sets up dix-config.h subdir('include') diff --git a/meson_options.txt b/meson_options.txt index dede8562a..ce1ae80bd 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -21,6 +21,7 @@ option('builder_string', type: 'string', description: 'Additional builder string option('log_dir', type: 'string') option('module_dir', type: 'string', description: 'X.Org modules directory') +option('default_font_path', type: 'string') option('glx', type: 'boolean', value: true) option('xdmcp', type: 'boolean', value: true)