aboutsummaryrefslogtreecommitdiff
path: root/pkgconfig
diff options
context:
space:
mode:
Diffstat (limited to 'pkgconfig')
-rw-r--r--pkgconfig/.gitignore2
-rw-r--r--pkgconfig/Makefile11
-rw-r--r--pkgconfig/einfo.pc.in9
-rw-r--r--pkgconfig/openrc.pc.in10
4 files changed, 32 insertions, 0 deletions
diff --git a/pkgconfig/.gitignore b/pkgconfig/.gitignore
new file mode 100644
index 00000000..e50bf9c5
--- /dev/null
+++ b/pkgconfig/.gitignore
@@ -0,0 +1,2 @@
+einfo.pc
+openrc.pc
diff --git a/pkgconfig/Makefile b/pkgconfig/Makefile
new file mode 100644
index 00000000..cdcf8be8
--- /dev/null
+++ b/pkgconfig/Makefile
@@ -0,0 +1,11 @@
+DIR= ${LIBDIR}/pkgconfig
+SRCS= einfo.pc.in openrc.pc.in
+INC= einfo.pc openrc.pc
+
+sed -n -e 's/^VERSION=[[:space:]]*\([^[:space:]]*\).*/#define VERSION "\1${GITVER}\"/p' ../../Makefile > version.h
+
+SED_EXTRA= -e 's:@VERSION@:${VERSION}:g'
+
+MK= ../mk
+include ../Makefile.inc
+include ${MK}/scripts.mk
diff --git a/pkgconfig/einfo.pc.in b/pkgconfig/einfo.pc.in
new file mode 100644
index 00000000..b5242a66
--- /dev/null
+++ b/pkgconfig/einfo.pc.in
@@ -0,0 +1,9 @@
+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/openrc.pc.in b/pkgconfig/openrc.pc.in
new file mode 100644
index 00000000..9a8a9165
--- /dev/null
+++ b/pkgconfig/openrc.pc.in
@@ -0,0 +1,10 @@
+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