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

index 593d3dfc06b32372e0dc6d6ada34ceb789a09c1b..b7c97a6dab5bbfcbe194397163d39830dbd0cc6b 100644 (file)
@@ -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)
index 55795fa8bcbf665f42355a81d57c86e9024c8f22..4cf248d13f6cade5429928cdad0d4f0901b06fcd 100644 (file)
@@ -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
index 6ada0c1d8bf7f2da2749beea47171f54c3de0582..dba1585be57aaffbde4560594932976aaf1df458 100644 (file)
@@ -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)