From: Pierre-Luc Beaudoin Date: Tue, 19 May 2009 04:53:41 +0000 (-0400) Subject: Fix Bug 582448: Should provide uninstalled.pc files X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d473f557d18dc7853e768ad13d4d40644145fa7;p=libchamplain Fix Bug 582448: Should provide uninstalled.pc files This makes it easier to use an uninstalled copy of libchamplain to compile other projects, by setting PKG_CONFIG_PATH when running their autogen.sh or configure, like this: PKG_CONFIG_PATH=$HOME/src/libchamplain-0.3/libchamplain ./autogen.sh (The necessary directory to put on your PKG_CONFIG_PATH is the libchamplain subdirectory of the source distribution or git checkout, not the top-level directory.) --- diff --git a/champlain-gtk-uninstalled.pc.in b/champlain-gtk-uninstalled.pc.in new file mode 100644 index 0000000..7bda490 --- /dev/null +++ b/champlain-gtk-uninstalled.pc.in @@ -0,0 +1,11 @@ +prefix= +exec_prefix= +libdir=@abs_top_srcdir@ +includedir=@abs_top_builddir@ + +Name: libchamplain-gtk +Description: Gtk+ Widget wrapper for libchamplain +Version: @VERSION@ +Libs: ${abs_top_builddir}/champlain/libchamplain-gtk-@API_VERSION@.la +Cflags: -I${abs_top_srcdir} -I${abs_top_builddir} +Requires: champlain-@API_VERSION@ gobject-2.0 clutter-0.8 clutter-gtk-0.8 gtk+-2.0 diff --git a/champlain-uninstalled.pc.in b/champlain-uninstalled.pc.in new file mode 100644 index 0000000..effa3e3 --- /dev/null +++ b/champlain-uninstalled.pc.in @@ -0,0 +1,11 @@ +prefix= +exec_prefix= +libdir=@abs_top_srcdir@ +includedir=@abs_top_builddir@ + +Name: libchamplain +Description: Map View for Clutter +Version: @VERSION@ +Libs: ${abs_top_builddir}/champlain/libchamplain-@API_VERSION@.la +Cflags: -I${abs_top_srcdir} -I${abs_top_builddir} +Requires: gobject-2.0 clutter-0.8 diff --git a/configure.ac b/configure.ac index 4a9bdca..aa3ebe3 100644 --- a/configure.ac +++ b/configure.ac @@ -108,7 +108,8 @@ if test x$enable_gtk = xyes; then AC_CONFIG_FILES([champlain-gtk/Makefile docs/reference-gtk/Makefile docs/reference-gtk/version.xml - champlain-gtk.pc]) + champlain-gtk.pc + champlain-gtk-uninstalled.pc]) AC_DEFINE(ENABLE_GTK, [], [Enable Gtk+ view code]) fi @@ -201,6 +202,7 @@ AC_CONFIG_FILES([Makefile docs/reference/Makefile docs/reference/version.xml champlain.pc + champlain-uninstalled.pc bindings/python/Makefile bindings/python/champlain/Makefile bindings/python/champlain-gtk/Makefile