X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=COMPILING.md;h=da7f733333dc91b45a1c9e319a724e02b479610d;hp=5b9ab9e48f095846bd2135294399170df32154f2;hb=refs%2Fheads%2Fimprovements;hpb=1cd298a004e19319fef1928e58d2e5b626e48027 diff --git a/COMPILING.md b/COMPILING.md index 5b9ab9e..da7f733 100644 --- a/COMPILING.md +++ b/COMPILING.md @@ -16,7 +16,6 @@ available via your package manager (dnf, urpmi, apt, brew, etc.): - LibPNG - OpenAL Soft - Ogg, Vorbis and Vorbisfile -- Zlib ## GNU/Linux @@ -34,10 +33,28 @@ The resulting `lugaru` binary will expect to find the `Data/` folder next to it, so either copy `build/lugaru` in the main directory, or create a symbolic link to run the game. +### Packaging + +If you want to package Lugaru for a GNU/Linux distribution, or if you want to +install it system-wide locally, you need to set the `SYSTEM_INSTALL` CMake +option, and (optionally) define the CMAKE_INSTALL_BINDIR and _DATADIR if they +differ from the default ones (`bin` and `share` appended to the prefix). +Example: + +``` +mkdir build && cd build +cmake -DSYSTEM_INSTALL=ON \ + -DCMAKE_INSTALL_BINDIR=games \ + -DCMAKE_INSTALL_DATADIR=share/games \ + .. +make +sudo make install +``` + ## Mac OSX -The instructions should be similar to the GNU/Linux ones, but have not been -tested in a Mac environment recently. +The instructions are similar to the GNU/Linux ones, provided you have +installed Xcode and the required dependencies (e.g. via homebrew). ## Windows