summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-03 01:41:17 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-04-03 01:41:17 (GMT)
commit63d8c28947f80a3e6dd0eb107cdb38fba71dd771 (patch)
tree231781c183811b5d096f313e1a3370f77f11b46b
parent34a3e176e259c15032897d9a71fd2a088e2d69c3 (diff)
downloadlibwapcaplet-63d8c28947f80a3e6dd0eb107cdb38fba71dd771.tar.gz
libwapcaplet-63d8c28947f80a3e6dd0eb107cdb38fba71dd771.tar.bz2
Reflect shared library versioning
svn path=/trunk/libwapcaplet/; revision=7031
-rw-r--r--Makefile6
-rw-r--r--libwapcaplet.pc.in6
2 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 271fb4b..3169b21 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
# Component settings
COMPONENT := wapcaplet
+COMPONENT_VERSION := 0.0.1
# Default to a static library
COMPONENT_TYPE ?= lib-static
@@ -28,6 +29,7 @@ ifeq ($(WANT_TEST),yes)
endif
# Extra installation rules
-INSTALL_ITEMS := $(INSTALL_ITEMS) /include/libwapcaplet:include/libwapcaplet/libwapcaplet.h
+I := /include/libwapcaplet$(major-version)/libwapcaplet
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libwapcaplet/libwapcaplet.h
INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in
-INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(BUILDDIR)/lib$(COMPONENT)$(LIBEXT)
+INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT)
diff --git a/libwapcaplet.pc.in b/libwapcaplet.pc.in
index fe44a63..c544836 100644
--- a/libwapcaplet.pc.in
+++ b/libwapcaplet.pc.in
@@ -5,6 +5,6 @@ includedir=${prefix}/include
Name: libwapcaplet
Description: String internalisation dictionary
-Version: 0.0.1
-Libs: -L${libdir} -lwapcaplet
-Cflags: -I${includedir}
+Version: VERSION
+Libs: -L${libdir} -lwapcapletMAJOR
+Cflags: -I${includedir}/libwapcapletMAJOR