mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-15 20:09:40 +00:00
74 lines
1.8 KiB
Plaintext
74 lines
1.8 KiB
Plaintext
Prerequisites:
|
|
|
|
You'll need to have these libraries (with equivalent devel versions) to build Wesnoth:
|
|
|
|
libsdl1.2
|
|
libsdl-image1.2
|
|
libsdl-mixer1.2 (with Vorbis support)
|
|
libsdl-net
|
|
libfreetype2
|
|
|
|
SDL* libraries can be found at http://www.libsdl.org . libfreetype can be found
|
|
at http://www.freetype.org/ .
|
|
|
|
You will also need to have a working installation of gettext to build the
|
|
translations.
|
|
|
|
The .tar.gz file is distributed with a working set of configure files. They
|
|
are not in the CVS repository though. Consequently, if you are building from
|
|
CVS, you will need autoconf (>= 2.59) and automake (>= 1.9).
|
|
|
|
Sourcecode:
|
|
|
|
You can get it here:
|
|
|
|
http://www.wesnoth.org/downloads
|
|
|
|
|
|
Compiling:
|
|
|
|
First untar the package:
|
|
|
|
$ tar xfzv wesnoth-0.x.tar.gz
|
|
|
|
then
|
|
|
|
$ cd wesnoth-0.x
|
|
|
|
The usual
|
|
|
|
$ ./configure
|
|
$ make
|
|
$ make install
|
|
|
|
only compiles the wesnoth binary and installs it along with the game
|
|
data to the default prefix which is probably /usr/local.
|
|
|
|
If you want to build wesnoth_editor too add the --enable-editor
|
|
configure option.
|
|
|
|
In case you want wesnothd to be built you should add:
|
|
--enable-server --localstatedir=/var --with-server-uid=user
|
|
--with-server-gid=group
|
|
|
|
$localstatedir/run is the location where a wesnothd subdirectory will be
|
|
created owned by user:group. This is relevant if you want to be able
|
|
to communicate with wesnothd through a fifo file named socket.
|
|
You have to run wesnothd with the user specified while configuring in
|
|
order for it to work.
|
|
You most likely want to change the default localstatedir since it will
|
|
probably default to PREFIX/var.
|
|
You can also specify the fifodir directly by using --with-fifodir
|
|
This way localstatedir won't be used.
|
|
|
|
Rebuilding:
|
|
|
|
You should clean your existing wesnoth release build first with:
|
|
|
|
$ make distclean
|
|
|
|
If you want to clean your wesnoth CVS build do:
|
|
|
|
$ make maintainer-clean
|
|
|