1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
--- a/Makefile 2024-05-27 19:43:53.339479403 -0500
+++ b/Makefile 2024-05-27 19:45:08.737841222 -0500
@@ -206,7 +206,7 @@
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
-HOST := $(shell sh -c 'cc -dumpmachine || echo unknown')
+HOST :=
ARCH := $(HOST)
ifdef CROSSHOST
@@ -509,15 +509,7 @@
GCC_VER_SUFFIX:=-$(GCC_VER)
endif
-# Attempt to use a full compiler name, to make
-# distcc builds work nicely.
-LMACH := $(shell gcc -dumpmachine)-
-ifeq ($(LMACH),-)
LMACH :=
-endif
-ifeq ($(shell which $(LMACH)gcc$(GCC_VER_SUFFIX) > /dev/null 2> /dev/null && echo "Yes"),)
-LMACH :=
-endif
ifneq ($(FORCE_CC),)
GCC := $(FORCE_CC)
@@ -862,10 +854,11 @@
COVERAGE=YesPlease
# current catch2 doesn't support c++11
STDFLAG = -std=c++14
+ # tests require this
+ LIBS += -lgcov
endif
ifdef HURRY
- NO_OPTIMIZE=YesPlease
endif
ifdef COVERAGE
@@ -1017,7 +1010,7 @@
INSTALL_FONTS += "$(PROPORTIONAL_FONT)"
endif
else
- SYS_PROPORTIONAL_FONT = $(shell util/find_font "$(OUR_PROPORTIONAL_FONT)")
+ SYS_PROPORTIONAL_FONT = /usr/share/fonts/dejavu/DejaVuSans.ttf
ifneq (,$(SYS_PROPORTIONAL_FONT))
ifeq (,$(COPY_FONTS))
DEFINES += -DPROPORTIONAL_FONT=\"$(SYS_PROPORTIONAL_FONT)\"
@@ -1037,7 +1030,7 @@
INSTALL_FONTS += "$(MONOSPACED_FONT)"
endif
else
- SYS_MONOSPACED_FONT = $(shell util/find_font "$(OUR_MONOSPACED_FONT)")
+ SYS_MONOSPACED_FONT = /usr/share/fonts/dejavu/DejaVuSansMono.ttf
ifneq (,$(SYS_MONOSPACED_FONT))
ifeq (,$(COPY_FONTS))
DEFINES += -DMONOSPACED_FONT=\"$(SYS_MONOSPACED_FONT)\"
@@ -1177,14 +1170,8 @@
ifdef TILES_ANY
ifndef NO_OPTIMIZE
- ifneq (,$(shell which advpng))
- USE_ADVPNG = y
- else
- ifneq (,$(shell which pngcrush))
PNGCRUSH = pngcrush -q -m 113
PNGCRUSH_LABEL = PNGCRUSH
- endif
- endif
endif
endif
@@ -1280,9 +1267,8 @@
LANGUAGES = $(filter-out en, $(notdir $(wildcard dat/descript/??)))
SRC_PKG_BASE := stone_soup
-SRC_VERSION := $(shell git describe $(MERGE_BASE) 2>/dev/null || cat util/release_ver)
+SRC_VERSION := $(shell cat util/release_ver)
MAJOR_VERSION = $(shell echo "$(SRC_VERSION)"|$(SED) -r 's/-.*//;s/^([^.]+\.[^.]+).*/\1/')
-RECENT_TAG := $(shell git describe --abbrev=0 $(MERGE_BASE))
WINARCH := $(shell $(GXX) -dumpmachine | grep -q x64_64 && echo win64 || echo win32)
export SRC_VERSION
@@ -1645,13 +1631,13 @@
$(COPY) dat/tiles/stone_soup_icon-512x512.png $(prefix_fp)/share/icons/hicolor/512x512/apps/$(XDG_NAME).png
$(COPY) dat/tiles/stone_soup_icon.svg $(prefix_fp)/share/icons/hicolor/scalable/apps/$(XDG_NAME).svg
-install: all install-data
- [ -d $(prefix_fp)/$(bin_prefix) ] || mkdir -p $(prefix_fp)/$(bin_prefix)
- $(COPY) $(GAME) $(prefix_fp)/$(bin_prefix)/
- $(STRIP) $(prefix_fp)/$(bin_prefix)/$(GAME)
+install: install-data
+ [ -d $(prefix_fp)$(bin_prefix) ] || mkdir -p $(prefix_fp)$(bin_prefix)
+ $(COPY) $(GAME) $(prefix_fp)$(bin_prefix)/
+ $(STRIP) $(prefix_fp)$(bin_prefix)/$(GAME)
ifeq ($(USE_DGAMELAUNCH),)
- $(CHOWN) $(INSTALL_UGRP) $(prefix_fp)/$(bin_prefix)/$(GAME) || true
- $(CHMOD) $(MCHMOD) $(prefix_fp)/$(bin_prefix)/$(GAME) || true
+ $(CHOWN) $(INSTALL_UGRP) $(prefix_fp)$(bin_prefix)/$(GAME) || true
+ $(CHMOD) $(MCHMOD) $(prefix_fp)$(bin_prefix)/$(GAME) || true
endif
clean: clean-rltiles clean-webserver clean-android clean-monster clean-catch2 \
@@ -1905,9 +1891,6 @@
dat/tiles/%.png: $(RLTILES)/%.png
$(QUIET_PNGCRUSH)$(PNGCRUSH) $< $@
-ifdef USE_ADVPNG
- $(QUIET_ADVPNG)$(ADVPNG) $@
-endif
clean-rltiles:
$(RM) $(DESTTILEFILES)
|