summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-18 07:24:20 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-18 07:26:37 (EDT)
commit3579ed2ff0152bfb176efa2023e40f61a5780799 (patch)
treedcb59118ac5be0b719d7eafebbfef672bc9b7083
parent2487057557ff52e4ff3b3f77e127589ec610d761 (diff)
downloaddodge-balls-3579ed2ff0152bfb176efa2023e40f61a5780799.zip
dodge-balls-3579ed2ff0152bfb176efa2023e40f61a5780799.tar.gz
dodge-balls-3579ed2ff0152bfb176efa2023e40f61a5780799.tar.bz2
fonts: Add Ubuntu Titling font
-rw-r--r--Makefile.am4
-rw-r--r--fonts/UbuntuTitling-Bold.ttfbin0 -> 55460 bytes
-rw-r--r--fonts/local.mk20
3 files changed, 23 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1fed884..ca58a81 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,7 +53,8 @@ dodge_balls_CPPFLAGS = \
$(ZLIB_CFLAGS) \
$(EXPAT_CFLAGS) \
-DABS_BUILDDIR=\"$(abs_builddir)\" \
- -DGAMESDIR=\"$(gamesdir)\"
+ -DGAMESDIR=\"$(gamesdir)\" \
+ -DFONTSDIR=\"$(fontsdir)\"
dodge_balls_LDADD = \
$(ASAN_CFLAGS) \
$(SDL_LIBS) \
@@ -125,5 +126,6 @@ release:
include $(top_srcdir)/src/local.mk
include $(top_srcdir)/games/local.mk
+include $(top_srcdir)/fonts/local.mk
uninstall_dirs += $(pkgdatadir)
diff --git a/fonts/UbuntuTitling-Bold.ttf b/fonts/UbuntuTitling-Bold.ttf
new file mode 100644
index 0000000..53585e5
--- /dev/null
+++ b/fonts/UbuntuTitling-Bold.ttf
Binary files differ
diff --git a/fonts/local.mk b/fonts/local.mk
new file mode 100644
index 0000000..8326296
--- /dev/null
+++ b/fonts/local.mk
@@ -0,0 +1,20 @@
+fontsdir = $(pkgdatadir)/fonts
+uninstall_dirs += $(fontsdir)
+
+dist_fonts_DATA = \
+ %reldir%/UbuntuTitling-Bold.ttf
+
+if OUT_OF_TREE
+CLEANFILES += \
+ $(dist_fonts_DATA)
+endif
+
+# To run in place, the engine needs game data in the build directory, which may
+# be different from the source directory.
+$(dist_fonts_DATA): %reldir%/$(am__dirstamp)
+ $(AM_V_GEN)[ x"$(srcdir)" = x"$(builddir)" ] || \
+ $(LN_S) "$(abs_srcdir)/$@" "$@"
+CONFIG_CLEAN_FILES += %reldir%/$(am__dirstamp)
+%reldir%/$(am__dirstamp):
+ @$(MKDIR_P) %reldir%
+ @: > %reldir%/$(am__dirstamp)