Add xkbcommon pkg-config file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
diff --git a/.gitignore b/.gitignore
index 8ae0a31..a640dea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ libtool
ltmain.sh
missing
stamp-h1
+xkbcommon.pc
ylwrap
.deps/
.libs/
diff --git a/Makefile.am b/Makefile.am
index 5460eea..6c97739 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,8 @@
SUBDIRS = include src test
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = xkbcommon.pc
+
EXTRA_DIST = ChangeLog
MAINTAINERCLEANFILES = ChangeLog
diff --git a/configure.ac b/configure.ac
index 03b7502..307bfd6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,6 +91,7 @@ XORG_CHANGELOG
AC_OUTPUT([
Makefile
+xkbcommon.pc
include/Makefile
src/Makefile
src/makekeys/Makefile
diff --git a/xkbcommon.pc.in b/xkbcommon.pc.in
new file mode 100644
index 0000000..b8587c8
--- /dev/null
+++ b/xkbcommon.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: xkbcommon
+Description: XKB API common to servers and clients
+Version: @PACKAGE_VERSION@
+Requires: xproto kbproto >= 1.0.99.1
+Cflags: -I${includedir}
+Libs: -L${libdir} -lxkbcommon