diff options
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | wayland-protocols.pc.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index e5802dc..1f30157 100644 --- a/meson.build +++ b/meson.build @@ -75,7 +75,7 @@ wayland_protocols_srcdir = meson.current_source_dir() pkgconfig_configuration = configuration_data() pkgconfig_configuration.set('prefix', get_option('prefix')) -pkgconfig_configuration.set('datadir', get_option('datadir')) +pkgconfig_configuration.set('datarootdir', '${prefix}/@0@'.format(get_option('datadir'))) pkgconfig_configuration.set('abs_top_srcdir', wayland_protocols_srcdir) pkgconfig_configuration.set('PACKAGE', 'wayland-protocols') pkgconfig_configuration.set('WAYLAND_PROTOCOLS_VERSION', wayland_protocols_version) diff --git a/wayland-protocols.pc.in b/wayland-protocols.pc.in index d2dd276..4571fa8 100644 --- a/wayland-protocols.pc.in +++ b/wayland-protocols.pc.in @@ -1,5 +1,5 @@ prefix=@prefix@ -datarootdir=${prefix}/@datadir@ +datarootdir=@datarootdir@ pkgdatadir=${pc_sysrootdir}${datarootdir}/@PACKAGE@ Name: Wayland Protocols |