]> err.no Git - libchamplain/commitdiff
Introduce API_VERSION
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 18 Oct 2008 14:03:31 +0000 (10:03 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 18 Oct 2008 14:03:31 +0000 (10:03 -0400)
Makefile.am
champlain-gtk.pc.in
configure.ac

index 9e22869b8dfa08eb0df3d9e878ac6747a2909084..23ea52b8c894aabd3457ce641ec5f8b287001c79 100644 (file)
@@ -1,8 +1,8 @@
 SUBDIRS = champlain-gtk demos docs/reference
 
-pcfiles = champlain-gtk-0.2.pc
+pcfiles = champlain-gtk-@API_VERSION@.pc
 
-champlain-gtk-0.2.pc: champlain-gtk.pc
+champlain-gtk-@API_VERSION@.pc: champlain-gtk.pc
        @cp -f $< $@
 
 pkgconfig_DATA = $(pcfiles)
index 9079e9bfe3b87b49cdc36cb7de0447dc99e1f339..12567ca84bebcd96f6dbed5692b228afa5e7c24d 100644 (file)
@@ -6,6 +6,6 @@ includedir=@includedir@
 Name: libchamplain-gtk
 Description: Gtk+ Widget wrapper for libchamplain
 Version: @VERSION@
-Libs: -L${libdir} -lchamplain-gtk-0.2
-Cflags: -I${includedir}/libchamplain-gtk-0.2
-Requires: champlain-0.2 gobject-2.0 clutter-0.8 clutter-gtk-0.8 gtk+-2.0
+Libs: -L${libdir} -lchamplain-gtk-@API_VERSION@
+Cflags: -I${includedir}/libchamplain-gtk-@API_VERSION@
+Requires: champlain-@API_VERSION@ gobject-2.0 clutter-0.8 clutter-gtk-0.8 gtk+-2.0
index 90ed73c398c9d5669d63552db62a07e99b03a529..9a4462ba3382672fe5a38de454a617dee6a086de 100644 (file)
@@ -17,8 +17,11 @@ AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
 
 # Checks for libraries.
 LIBRARY_VERSION=0:1:0
+# API_VERSION is used to generate the pc file only
+API_VERSION=0.2
 
 AC_SUBST(LIBRARY_VERSION)
+AC_SUBST(API_VERSION)
 AC_SUBST(DEPS_CFLAGS)
 AC_SUBST(DEPS_LIBS)