From 79ea714ec4a1378cea0e0dd160fc8e3c76290050 Mon Sep 17 00:00:00 2001 From: Andrew Caudwell Date: Thu, 14 Nov 2019 12:53:14 +1300 Subject: [PATCH] Don't install FreeSans.ttf if a custom font file is specified. Document --enable-font-file configure option. --- INSTALL | 6 ++++++ Makefile.am | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index eebf7d51..5ec43ccc 100644 --- a/INSTALL +++ b/INSTALL @@ -63,6 +63,12 @@ If you already have these fonts, you can configure Gource to use them with: ./configure --enable-ttf-font-dir=/path/to/freefont/ +You can also build Gource with a different font: + + ./configure --enable-font-file=/path/to/alternate/font.ttf + +The font file format must be supported by Free Type 2. + Gource includes a copy of TinyXML. To build against the system version of the library use: diff --git a/Makefile.am b/Makefile.am index 745a42aa..970c1e4f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -80,12 +80,11 @@ endif if FONTFILE AM_CPPFLAGS += -DGOURCE_FONT_FILE=\"$(gourcefontfile)\" -endif - +else if FONTDIR AM_CPPFLAGS += -DSDLAPP_FONT_DIR=\"$(gourcefontdir)\" else fontsdir = $(pkgdatadir)/fonts dist_fonts_DATA = data/fonts/README data/fonts/FreeSans.ttf endif - +endif