Commit 95540419 authored by Jan Tojnar's avatar Jan Tojnar

build: Fix effectsdir in .pc file

The meson port changed the effectsdir in the .pc file to
$(pkgdatadir)/gnome-video-effects, resulting in paths like

Here we fix the regression such that the path matches to
the actual path where the files are installed.
Also we use ${prefix} pkg-config variable in the path
so that it can be easily overridden.
parent da6699b7
......@@ -7,7 +7,8 @@ gnome = import('gnome')
i18n = import('i18n')
prefix = get_option('prefix')
datadir = prefix / get_option('datadir')
datadir_relative = get_option('datadir')
datadir = prefix / datadir_relative
pkgdatadir = datadir / meson.project_name()
pkgconfigdir = datadir / 'pkgconfig'
......@@ -17,7 +18,7 @@ subdir('po')
# Can't use pkgconfig helper
conf = configuration_data()
conf.set('prefix', prefix)
conf.set('datarootdir', pkgdatadir)
conf.set('datarootdir', '${prefix}' / datadir_relative)
conf.set('VERSION', meson.project_version())
pkg = configure_file(configuration: conf,
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