summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--configure.ac1
-rw-r--r--wocky/Makefile.am5
-rw-r--r--wocky/wocky-uninstalled.pc.in1
-rw-r--r--wocky/wocky.pc.in11
5 files changed, 18 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index fa0fc6e..2cf77f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -75,6 +75,7 @@ m4/lt~obsolete.m4
wocky/*-signals-marshal.*
wocky/*-enumtypes.*
wocky/wocky-uninstalled.pc
+wocky/wocky.pc
tests/sasl-test.db
tests/test-report.xml
diff --git a/configure.ac b/configure.ac
index b770130..cd01bca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -243,6 +243,7 @@ GTK_DOC_CHECK([1.17],[--flavour no-tmpl])
AC_OUTPUT( Makefile \
wocky/Makefile \
wocky/wocky-uninstalled.pc \
+ wocky/wocky.pc \
m4/Makefile \
tools/Makefile \
examples/Makefile \
diff --git a/wocky/Makefile.am b/wocky/Makefile.am
index 868fb09..77acbb6 100644
--- a/wocky/Makefile.am
+++ b/wocky/Makefile.am
@@ -178,6 +178,11 @@ libwocky_la_SOURCES = $(handwritten_sources) $(built_sources) \
if INSTALL_HEADERS
libwocky_la_HEADERS = $(handwritten_headers) $(built_headers)
libwocky_ladir = $(HEADER_DIR)/wocky
+
+if ENABLE_SHARED_SUFFIX
+ pkgconfigdir = ${libdir}/pkgconfig
+ pkgconfig_DATA = wocky.pc
+endif
endif
# Coding style checks
diff --git a/wocky/wocky-uninstalled.pc.in b/wocky/wocky-uninstalled.pc.in
index fb286a9..429a256 100644
--- a/wocky/wocky-uninstalled.pc.in
+++ b/wocky/wocky-uninstalled.pc.in
@@ -6,7 +6,6 @@ abs_top_builddir=@abs_top_builddir@
Name: Wocky (uninstalled copy)
Description: XMPP library
Version: @VERSION@
-Requires: pkg-config >= 0.21
Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, gio-2.0 >= 2.26
Libs: ${abs_top_builddir}/wocky/libwocky.la
Cflags: -I${abs_top_srcdir} -I${abs_top_builddir} -I${abs_top_builddir}/wocky
diff --git a/wocky/wocky.pc.in b/wocky/wocky.pc.in
new file mode 100644
index 0000000..874ecf6
--- /dev/null
+++ b/wocky/wocky.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Wocky
+Description: XMPP library
+Version: @VERSION@
+Requires.private: glib-2.0 >= 2.16, gobject-2.0 >= 2.16, gio-2.0 >= 2.26
+Libs: -L${libdir} -lwocky
+Cflags: -I@HEADER_DIR@