aboutsummaryrefslogtreecommitdiff
path: root/pkgconfig
diff options
context:
space:
mode:
authorMatt Jolly <kangie@gentoo.org>2024-07-16 21:23:28 +1000
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 15:11:34 +0200
commit1485cfb36cbdc2a079f73be16670cb3e64567852 (patch)
tree50fe36151016eb2b2aeac76c475f859d12b35cdd /pkgconfig
parent3586a899e49fbe9d3e5d88b9f0500040dc622565 (diff)
Generate pkg-config files directly
- Remove 'pkgconfig' subdir - use meson 'pkgconfig' module to generate and install appropriate .pc files when required. - add `rc_path` variable to installed pkgconfig files Signed-off-by: Matt Jolly <kangie@gentoo.org>
Diffstat (limited to 'pkgconfig')
-rw-r--r--pkgconfig/einfo.pc.in9
-rw-r--r--pkgconfig/meson.build24
-rw-r--r--pkgconfig/openrc.pc.in10
3 files changed, 0 insertions, 43 deletions
diff --git a/pkgconfig/einfo.pc.in b/pkgconfig/einfo.pc.in
deleted file mode 100644
index b5242a66..00000000
--- a/pkgconfig/einfo.pc.in
+++ /dev/null
@@ -1,9 +0,0 @@
-prefix=@PREFIX@
-exec_prefix=${prefix}
-libdir=${prefix}/@LIB@
-includedir=/usr/include
-
-Name: einfo
-Description: Pretty console informational display
-Version: @VERSION@
-Libs: -L${libdir} -leinfo
diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build
deleted file mode 100644
index 424b6ee0..00000000
--- a/pkgconfig/meson.build
+++ /dev/null
@@ -1,24 +0,0 @@
-if get_option('pkgconfig')
-pkgconfig_dir = get_option('libdir') / 'pkgconfig'
-
-pkgconfig_conf_data = configuration_data()
-if rootprefix != '/'
- pkgconfig_conf_data.set('PREFIX', rootprefix)
-else
- pkgconfig_conf_data.set('PREFIX', '')
-endif
-pkgconfig_conf_data.set('LIB', get_option('libdir'))
-pkgconfig_conf_data.set('VERSION', meson.project_version())
-
-pkgconfig_files = [
- 'einfo.pc.in',
- 'openrc.pc.in',
- ]
-
-foreach file : pkgconfig_files
- configure_file(input : file,
- output : '@BASENAME@',
- configuration : pkgconfig_conf_data,
- install_dir : pkgconfig_dir)
-endforeach
-endif
diff --git a/pkgconfig/openrc.pc.in b/pkgconfig/openrc.pc.in
deleted file mode 100644
index 9a8a9165..00000000
--- a/pkgconfig/openrc.pc.in
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@PREFIX@
-exec_prefix=${prefix}
-libdir=${prefix}/@LIB@
-includedir=/usr/include
-
-Name: OpenRC
-Description: Universal init system
-Version: @VERSION@
-Cflags: -I${includedir}
-Libs: -L${libdir} -lrc