From: Pierre-Luc Beaudoin Date: Sat, 18 Oct 2008 14:09:56 +0000 (-0400) Subject: Introduce API_VERSION X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b32b008a4b28843e18d1c88a14bfb7cf45464ef;p=libchamplain Introduce API_VERSION --- diff --git a/Makefile.am b/Makefile.am index 593d3df..b7c97a6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,8 @@ 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) diff --git a/champlain.pc.in b/champlain.pc.in index 55795fa..4cf248d 100644 --- a/champlain.pc.in +++ b/champlain.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ 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 diff --git a/configure.ac b/configure.ac index 6ada0c1..dba1585 100644 --- a/configure.ac +++ b/configure.ac @@ -17,8 +17,11 @@ AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal]) # 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)