xorg-server: fix default font directories
This commit is contained in:
parent
481c636adf
commit
b60ab9d9e7
2 changed files with 28 additions and 2 deletions
26
srcpkgs/xorg-server/patches/meson-fontrootdir.patch
Normal file
26
srcpkgs/xorg-server/patches/meson-fontrootdir.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
--- 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)
|
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'xorg-server'
|
# Template file for 'xorg-server'
|
||||||
pkgname=xorg-server
|
pkgname=xorg-server
|
||||||
version=1.20.1
|
version=1.20.1
|
||||||
revision=5
|
revision=6
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dipv6=true -Dxorg=true -Dxnest=true -Dxephyr=true
|
configure_args="-Dipv6=true -Dxorg=true -Dxnest=true -Dxephyr=true
|
||||||
-Dxvfb=true -Dhal=false -Dudev=true -Dxkb_dir=/usr/share/X11/xkb
|
-Dxvfb=true -Dhal=false -Dudev=true -Dxkb_dir=/usr/share/X11/xkb
|
||||||
-Dxkb_output_dir=/var/lib/xkb -Ddefault_font_path=/usr/share/fonts/X11
|
-Dxkb_output_dir=/var/lib/xkb -Dfont_root_dir=/usr/share/fonts/X11
|
||||||
-Ddmx=true -Dlinux_acpi=true -Dlinux_apm=false -Dsuid_wrapper=true
|
-Ddmx=true -Dlinux_acpi=true -Dlinux_apm=false -Dsuid_wrapper=true
|
||||||
-Dsystemd_logind=false -Dxcsecurity=true -Dos_vendor=Void"
|
-Dsystemd_logind=false -Dxcsecurity=true -Dos_vendor=Void"
|
||||||
hostmakedepends="pkg-config wayland-devel xkbcomp flex gzip"
|
hostmakedepends="pkg-config wayland-devel xkbcomp flex gzip"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue