]> err.no Git - libchamplain/commitdiff
Fix Bug 582448: Should provide uninstalled.pc files
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 19 May 2009 04:53:41 +0000 (00:53 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 20 May 2009 14:48:40 +0000 (10:48 -0400)
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.)

champlain-gtk-uninstalled.pc.in [new file with mode: 0644]
champlain-uninstalled.pc.in [new file with mode: 0644]
configure.ac

diff --git a/champlain-gtk-uninstalled.pc.in b/champlain-gtk-uninstalled.pc.in
new file mode 100644 (file)
index 0000000..7bda490
--- /dev/null
@@ -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 (file)
index 0000000..effa3e3
--- /dev/null
@@ -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
index 4a9bdca83464e873b5e701b7a3510008aafe2beb..aa3ebe3f2ae99f91ebfaa204923f3f83a757ac58 100644 (file)
@@ -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