Zandronum Server on FreeBSD: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 28: Line 28:


Once downloaded, use <code>tar xf</code> to extract the package into a new directory.
Once downloaded, use <code>tar xf</code> to extract the package into a new directory.
== Compiling ==
* Install dependencies
<pre>
$ pkg install sdl sqlite3 openssl cmake python3 mercurial
</pre>
If you're building '''Zandronum 3.x or higher''':
<pre>
$ pkg install gcc5 && export cc=gcc5 && export CXX=g++5
</pre>
If you're building '''Zandronum 2.x or lower''':
<pre>
$ pkg install gcc && export CC=gcc48 && export CXX=g++48
</pre>
* Create your working dir:
<pre>
mkdir zabuild && cd zabuild
</pre>
* Clone [https://bitbucket.org/Torr_Samaho/zandronum the repo]:
<pre>
hg clone https://bitbucket.org/Torr_Samaho/zandronum && cd zandronum
</pre>
* Optionally, checkout the latest stable release:
<pre<noinclude></noinclude>>
hg update ZA_{{LatestVersion}}
</pre<noinclude></noinclude>>
* Generate the CMake files
<pre>
cd .. && cmake -DCMAKE_BUILD_TYPE=Release -DSERVER_ONLY -DCMAKE_CXX_FLAGS="-fpermissive" ../zandronum
</pre>
* Build it
<pre>
make -j$(nproc)
</pre>
* Assuming it all went well, you should have these files in your current directory:
  * <code>zandronum-server</code>
  * <code>zandronum-server.debug</code>
  * <code>zandronum.pk3</code>
  * <code>skulltag_actors.pk3</code>