SUBDIRS = tidy champlain demos docs/reference
-pcfiles = champlain-0.2.pc
+pcfiles = champlain-@API_VERSION@.pc
-champlain-0.2.pc: champlain.pc
+champlain-@API_VERSION@.pc: champlain.pc
@cp -f $< $@
pkgconfig_DATA = $(pcfiles)
Name: libchamplain
Description: Map View for Clutter
Version: @VERSION@
-Libs: -L${libdir} -lchamplain-0.2
-Cflags: -I${includedir}/libchamplain-0.2
+Libs: -L${libdir} -lchamplain-@API_VERSION@
+Cflags: -I${includedir}/libchamplain-@API_VERSION@
Requires: gobject-2.0 clutter-0.8
# Checks for libraries.
LIBRARY_VERSION=1:2:0
+# API_VERSION is used to generate pc file only
+API_VERSION=0.2
AC_SUBST(LIBRARY_VERSION)
+AC_SUBST(API_VERSION)
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)