Make the Terminus fonts an external package
Credit to Michael Allison for the patch and for the previous one to build the fonts in the cross-compile.
This commit is contained in:
@@ -85,13 +85,13 @@ if [ ! -d djgpp/cwsdpmi ]; then
|
||||
rm csdpmi7b.zip
|
||||
fi
|
||||
|
||||
# PDCurses
|
||||
# PDCurses (non-Unicode build uses this)
|
||||
if [ ! -d "pdcurses" ]; then
|
||||
echo "Getting ../pdcurses from https://github.com/wmcbrine/PDCurses.git" ; \
|
||||
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses
|
||||
fi
|
||||
|
||||
# PDCursesMod
|
||||
# PDCursesMod (Unicode build uses this)
|
||||
if [ ! -d "pdcursesmod" ]; then
|
||||
echo "Getting ../pdcursesmod from https://github.com/Bill-Gray/PDCursesMod.git" ; \
|
||||
git clone --depth 1 https://github.com/Bill-Gray/PDCursesMod.git pdcursesmod
|
||||
@@ -115,6 +115,24 @@ if [ ! -d djgpp/djgpp-patch ]; then
|
||||
cd ../../
|
||||
fi
|
||||
|
||||
FONT_VERSION="4.49"
|
||||
FONT_FILE="terminus-font-$FONT_VERSION"
|
||||
FONT_RFILE="$FONT_FILE.1.tar.gz"
|
||||
FONT_URL="https://sourceforge.net/projects/terminus-font/files/$FONT_FILE/$FONT_RFILE"
|
||||
|
||||
# fonts
|
||||
if [ ! -d "$FONT_FILE" ]; then
|
||||
echo "Getting terminus fonts"
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
#Mac
|
||||
curl -L $FONT_URL --output $FONT_RFILE
|
||||
else
|
||||
wget --quiet --no-hsts $FONT_URL
|
||||
fi
|
||||
tar -xvf $FONT_RFILE
|
||||
rm $FONT_RFILE
|
||||
fi
|
||||
|
||||
cd ../
|
||||
|
||||
# Don't fail the build if lua fetch failed because we cannot do anything about it
|
||||
|
||||
Reference in New Issue
Block a user