mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 20:14:48 +00:00
72 lines
1.7 KiB
Plaintext
72 lines
1.7 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/run --with-server-uid=user
|
|
--with-server-gid=group
|
|
|
|
localstatedir 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.
|
|
|
|
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
|
|
|