diff options
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev.pc.in | 10 | ||||
-rw-r--r-- | src/libudev/meson.build | 9 |
2 files changed, 11 insertions, 8 deletions
diff --git a/src/libudev/libudev.pc.in b/src/libudev/libudev.pc.in index b657b7d068..89028aaa6b 100644 --- a/src/libudev/libudev.pc.in +++ b/src/libudev/libudev.pc.in @@ -7,13 +7,13 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@rootlibdir@ -includedir=@includedir@ +prefix={{PREFIX}} +exec_prefix={{PREFIX}} +libdir={{ROOTLIBDIR}} +includedir={{INCLUDE_DIR}} Name: libudev Description: Library to access udev device information -Version: @PROJECT_VERSION@ +Version: {{PROJECT_VERSION}} Libs: -L${libdir} -ludev Cflags: -I${includedir} diff --git a/src/libudev/meson.build b/src/libudev/meson.build index b3ffb8b10a..61e7cc20a6 100644 --- a/src/libudev/meson.build +++ b/src/libudev/meson.build @@ -39,11 +39,14 @@ libudev_static = static_library( static_libudev = get_option('static-libudev') static_libudev_pic = static_libudev == 'true' or static_libudev == 'pic' -configure_file( +custom_target( + 'libudev.pc', input : 'libudev.pc.in', output : 'libudev.pc', - configuration : substs, - install_dir : pkgconfiglibdir == 'no' ? '' : pkgconfiglibdir) + command : [meson_render_jinja2, config_h, '@INPUT@'], + capture : true, + install : pkgconfiglibdir != 'no', + install_dir : pkgconfiglibdir) ############################################################ |