2003-11-21 00:52:27 +00:00
Prerequisites:
2003-09-15 11:52:41 +00:00
2003-11-21 00:52:27 +00:00
You'll need to have these libraries (with equivalent devel versions) to build Wesnoth:
2003-10-28 09:37:37 +00:00
libsdl1.2
libsdl-image1.2
libsdl-mixer1.2 (with Vorbis support)
libsdl-ttf2.0
libsdl-net
2003-09-15 11:52:41 +00:00
2003-09-29 09:58:27 +00:00
These libraries can be found at http://www.libsdl.org
2003-09-15 11:52:41 +00:00
2003-10-28 09:37:37 +00:00
2003-11-21 00:52:27 +00:00
Sourcecode:
2003-09-29 09:58:27 +00:00
2003-11-21 00:52:27 +00:00
You can get it here:
2003-10-28 09:37:37 +00:00
2003-11-21 00:52:27 +00:00
http://www.wesnoth.org/downloads
http://www.ventu.info/wesnoth/?WesnothCVS
2003-09-29 09:58:27 +00:00
2003-11-21 00:52:27 +00:00
Compiling:
2003-09-29 09:58:27 +00:00
2003-11-21 00:52:27 +00:00
First untar the package:
2003-09-29 09:58:27 +00:00
$ tar xfzv wesnoth-0.x.tar.gz
2003-11-21 00:52:27 +00:00
then
2003-09-29 09:58:27 +00:00
$ cd wesnoth-0.x
2003-10-28 09:37:37 +00:00
2003-09-29 09:58:27 +00:00
followed by
2003-11-21 00:52:27 +00:00
2003-09-29 09:58:27 +00:00
$ make
2003-11-21 00:52:27 +00:00
2003-10-28 09:37:37 +00:00
2003-11-21 00:52:27 +00:00
Installing:
$ make install
2003-09-29 09:58:27 +00:00
2003-11-21 00:52:27 +00:00
Relocating Data:
2003-09-15 11:52:41 +00:00
2003-11-21 00:52:27 +00:00
By default game is installed to /usr/local. There is a way to get Wesnoth to locate its data and have the data files not under the executable. Variables with defaults are:
2003-10-28 09:37:37 +00:00
2003-11-21 00:52:27 +00:00
DESTDIR=/usr/local # base path for game binaries, pixmaps, and man pages
DATADIR=/usr/local # base path for wesnoth-data
SERVDIR=/usr/local # base path for server-binary
2003-10-28 09:37:37 +00:00
2003-11-21 00:52:27 +00:00
These are given as args to make. To install wesnoth to /opt...
2003-10-28 09:37:37 +00:00
2003-11-21 00:52:27 +00:00
$ make DESTDIR=/opt/wesnoth-0.5.1-cvs DATADIR=/opt/wesnoth-0.5.1-cvs SERVDIR=/opt/wesnoth-server-0.5.1-cvs
$ make install DESTDIR=/opt/wesnoth-0.5.1-cvs DATADIR=/opt/wesnoth-0.5.1-cvs SERVDIR=/opt/wesnoth-server-0.5.1-cvs
2003-10-28 09:37:37 +00:00
2003-11-21 00:52:27 +00:00
Note:
2003-09-18 16:32:07 +00:00
2003-11-21 00:52:27 +00:00
Users compiling CVS sources should 'make clean' before 'make' after any tree update.