[Telepathy-commits] [telepathy-glib/master] Generate telepathy-glib-uninstalled.pc

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Sep 3 10:27:12 PDT 2008


This makes it easier to use an uninstalled copy of telepathy-glib to
compile other projects, by setting PKG_CONFIG_PATH when running their
autogen.sh or configure, like this:

PKG_CONFIG_PATH=$HOME/src/telepathy-glib-0.7/telepathy-glib ./autogen.sh

(The necessary directory to put on your PKG_CONFIG_PATH is the telepathy-glib
subdirectory of the source distribution or git checkout, not the
top-level directory.)
---
 configure.ac                                    |    1 +
 telepathy-glib/telepathy-glib-uninstalled.pc.in |   12 ++++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 telepathy-glib/telepathy-glib-uninstalled.pc.in

diff --git a/configure.ac b/configure.ac
index 346ddb7..10a6d4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,6 +223,7 @@ AC_OUTPUT( Makefile \
 	   spec/Makefile \
 	   telepathy-glib/Makefile \
 	   telepathy-glib/telepathy-glib.pc \
+	   telepathy-glib/telepathy-glib-uninstalled.pc \
 	   tests/Makefile \
 	   tests/lib/Makefile \
 	   tests/dbus/Makefile \
diff --git a/telepathy-glib/telepathy-glib-uninstalled.pc.in b/telepathy-glib/telepathy-glib-uninstalled.pc.in
new file mode 100644
index 0000000..7c07e47
--- /dev/null
+++ b/telepathy-glib/telepathy-glib-uninstalled.pc.in
@@ -0,0 +1,12 @@
+prefix=
+exec_prefix=
+abs_top_srcdir=@abs_top_srcdir@
+abs_top_builddir=@abs_top_builddir@
+
+Name: Telepathy-GLib (uninstalled copy)
+Description: GLib utility library for the Telepathy framework
+Version: @VERSION@
+Requires: pkg-config >= 0.21
+Requires.private: dbus-glib-1 >= 0.73, glib-2.0 >= 2.10, gobject-2.0 >= 2.10
+Libs: ${abs_top_builddir}/telepathy-glib/libtelepathy-glib.la
+Cflags: -I${abs_top_srcdir} -I${abs_top_builddir}
-- 
1.5.6.3



More information about the Telepathy-commits mailing list