Commit de5d65b1 authored by Jan Tojnar's avatar Jan Tojnar Committed by Marco Trevisan

build: Fix paths in pc files

With absolute includedir (for example on NixOS), the pkg-config
file will contain an incorrect includedir. This patch fixes that
without affecting more standard environments.
parent 5e1389f1
......@@ -72,8 +72,8 @@ configure_file(input: 'config.h.meson',
pc_conf = configuration_data()
pc_conf.set('prefix', get_option('prefix'))
pc_conf.set('exec_prefix', '${prefix}')
pc_conf.set('libdir', '${exec_prefix}/' + get_option('libdir'))
pc_conf.set('includedir', '${prefix}/' + get_option('includedir'))
pc_conf.set('libdir', '${exec_prefix}' / get_option('libdir'))
pc_conf.set('includedir', '${prefix}' / get_option('includedir'))
pc_conf.set('STARTUP_NOTIFICATION_PACKAGE', STARTUP_NOTIFICATION_PACKAGE)
pc_conf.set('X11_PACKAGE', X11_PACKAGE)
pc_conf.set('XRES_PACKAGE', XRES_PACKAGE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment