pkgconfig file does not use prefix
#8 (closed) got fixed, and now pkgconfig file looks like this:
prefix=/usr
Name: gsettings-desktop-schemas
Description: Shared GSettings schemas for the desktop, including helper headers
Version: 3.31.92
Cflags: -I/usr/include/gsettings-desktop-schemas
Note that prefix
is meaningless here, because Cflags is literal.
A stopgap measure would be to do something like this:
pkg_includedir=includedir
if includedir.startswith(prefix)
pkg_includedir=join_paths('${prefix}', get_option('includedir'))
endif
conf.set('includedir', pkg_includedir)
With that you'd get:
Cflags: -I${prefix}/include/gsettings-desktop-schemas
and prefix
will have meaning again.