Permalink
Browse files

Allow build server without freetype

  • Loading branch information...
proller committed Sep 29, 2016
1 parent db52b18 commit f29a194b4e6338f52a3376dab1f1b65017da18fa
Showing with 8 additions and 5 deletions.
  1. +7 −4 README.md
  2. +1 −1 src/CMakeLists.txt
View
@@ -63,10 +63,13 @@ Install dependencies. Here's an example for
Debian/Ubuntu:
```sh
sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev \
libpng12-dev libjpeg-dev libfreetype6-dev libxxf86vm-dev libgl1-mesa-dev \
libsqlite3-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev \
libleveldb-dev libsnappy-dev libgettextpo0 libmsgpack-dev libgmp-dev libspatialindex-dev
sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev libgettextpo0 \
libsqlite3-dev libleveldb-dev libsnappy-dev libcurl4-openssl-dev libluajit-5.1-dev libgmp-dev libspatialindex-dev \
libpng12-dev libjpeg-dev libfreetype6-dev libxxf86vm-dev libgl1-mesa-dev libvorbis-dev libopenal-dev
# First - needed always
# Second - recommended for servers and singleplayer
# Third - needed for client only
# optional:
sudo apt-get install libhiredis-dev cmake-curses-gui
```
View
@@ -392,7 +392,7 @@ set(USE_FREETYPE FALSE)
set(CGUITTFONT_LIBRARY cguittfont)
endif()
if(NOT FREETYPE_FOUND AND NOT NO_BUILD)
if(NOT FREETYPE_FOUND AND NOT NO_BUILD AND BUILD_CLIENT)
message(FATAL_ERROR "FreeType was not found.")
endif()

0 comments on commit f29a194

Please sign in to comment.