diff -r 5407cbf3c5dd -r 2ff89178eb3d libpurple/win32/global.mak --- a/libpurple/win32/global.mak Sun Apr 11 03:27:57 2021 -0500 +++ b/libpurple/win32/global.mak Mon Apr 19 20:41:12 2021 -0500 @@ -8,6 +8,10 @@ #include optional $(PIDGIN_TREE_TOP)/local.mak to allow overriding of any definitions -include $(PIDGIN_TREE_TOP)/local.mak +ABS_TOP_SRCDIR := $(shell realpath $(PIDGIN_TREE_TOP)) +# in case we ever do separate build directories +ABS_TOP_BUILDDIR := $(ABS_TOP_SRCDIR) + # Locations of our various dependencies WIN32_DEV_TOP ?= $(PIDGIN_TREE_TOP)/../win32-dev GTKSPELL_TOP ?= $(WIN32_DEV_TOP)/gtkspell-2.0.16 @@ -74,6 +78,8 @@ cat $(PIDGIN_TREE_TOP)/VERSION \ ) PURPLE_VERSION := $(PIDGIN_VERSION) +PURPLE_MAJOR_VERSION := $(firstword $(subst ., ,$(PURPLE_VERSION))) + ifdef EXTRAVERSION DISPLAY_VERSION := $(PIDGIN_VERSION)-$(EXTRAVERSION) else