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)
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
# 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)