wesnoth/INSTALL

99 lines
2.8 KiB
Plaintext
Raw Normal View History

2003-11-21 00:52:27 +00:00
Prerequisites:
Initial code import. [[The Wesnoth repository started off as CVS in September 2003 on SourceForge. In September 2005 it was converted to Subversion using cvs2svn and hosted at Gna!; the last CVS commit corresponded to Subversion r8374. In March 2013 it was converted to git by ESR using reposurgeon 2.30; the last Subversion commit was r56594. In the process, several small, abandoned experimental branches were removed. For all branches known to have been merged to trunk merge points were found and patched in. Comments have been massaged into git summary + body form; revision references have been lifted to action stamps. Conversion comments are, like this one, enclosed in double square brackets. Typos in change comments have often been quietly fixed. Some abbreviations (notably for mainline campaign names) have been made more uniform than they were in the Subversion comments. Infix "::" to mark a campaign-scenario pair (as in "HttT::12" has sometimes been inserted for clarity and to shorten summary lines. Two branches, website/ and resources/, have been merged to trunk, where their history now appears as that of those two top-level directories rather than as separate branches. Subversion property settings, and the commits in the Subversion history that manipulated them, are almost all gone. A few have been translated to .gitignore files and setting of executable bits. There are a few committers that we have been unable to identify. These are: uso zas uid65860 uid66289 uid67456 uid68698 uid68803 uid68842 uid68850 uid68852 uid69097 uid69206 The uid names seem to have been mechanically generated from Wesnoth forum postings. Committer lines for all of these have been left without a domain name in the email address.]]
2003-09-15 11:52:41 +00:00
2006-06-06 00:05:03 +00:00
You'll need to have these libraries (with equivalent devel versions) to build Wesnoth:
libsdl1.2.7
libsdl-image1.2 (with png support)
libsdl-mixer1.2 (with Vorbis support)
2006-06-05 14:00:19 +00:00
libsdl-net
libfreetype2
Recommended (can be deactivated via ./configure --disable-python):
python2.4
Initial code import. [[The Wesnoth repository started off as CVS in September 2003 on SourceForge. In September 2005 it was converted to Subversion using cvs2svn and hosted at Gna!; the last CVS commit corresponded to Subversion r8374. In March 2013 it was converted to git by ESR using reposurgeon 2.30; the last Subversion commit was r56594. In the process, several small, abandoned experimental branches were removed. For all branches known to have been merged to trunk merge points were found and patched in. Comments have been massaged into git summary + body form; revision references have been lifted to action stamps. Conversion comments are, like this one, enclosed in double square brackets. Typos in change comments have often been quietly fixed. Some abbreviations (notably for mainline campaign names) have been made more uniform than they were in the Subversion comments. Infix "::" to mark a campaign-scenario pair (as in "HttT::12" has sometimes been inserted for clarity and to shorten summary lines. Two branches, website/ and resources/, have been merged to trunk, where their history now appears as that of those two top-level directories rather than as separate branches. Subversion property settings, and the commits in the Subversion history that manipulated them, are almost all gone. A few have been translated to .gitignore files and setting of executable bits. There are a few committers that we have been unable to identify. These are: uso zas uid65860 uid66289 uid67456 uid68698 uid68803 uid68842 uid68850 uid68852 uid69097 uid69206 The uid names seem to have been mechanically generated from Wesnoth forum postings. Committer lines for all of these have been left without a domain name in the email address.]]
2003-09-15 11:52:41 +00:00
SDL* libraries can be found at http://www.libsdl.org . libfreetype can be found
at http://www.freetype.org/ . python can be found at http://www.python.org
Initial code import. [[The Wesnoth repository started off as CVS in September 2003 on SourceForge. In September 2005 it was converted to Subversion using cvs2svn and hosted at Gna!; the last CVS commit corresponded to Subversion r8374. In March 2013 it was converted to git by ESR using reposurgeon 2.30; the last Subversion commit was r56594. In the process, several small, abandoned experimental branches were removed. For all branches known to have been merged to trunk merge points were found and patched in. Comments have been massaged into git summary + body form; revision references have been lifted to action stamps. Conversion comments are, like this one, enclosed in double square brackets. Typos in change comments have often been quietly fixed. Some abbreviations (notably for mainline campaign names) have been made more uniform than they were in the Subversion comments. Infix "::" to mark a campaign-scenario pair (as in "HttT::12" has sometimes been inserted for clarity and to shorten summary lines. Two branches, website/ and resources/, have been merged to trunk, where their history now appears as that of those two top-level directories rather than as separate branches. Subversion property settings, and the commits in the Subversion history that manipulated them, are almost all gone. A few have been translated to .gitignore files and setting of executable bits. There are a few committers that we have been unable to identify. These are: uso zas uid65860 uid66289 uid67456 uid68698 uid68803 uid68842 uid68850 uid68852 uid69097 uid69206 The uid names seem to have been mechanically generated from Wesnoth forum postings. Committer lines for all of these have been left without a domain name in the email address.]]
2003-09-15 11:52:41 +00:00
You will also need to have a working installation of gettext to build the
translations.
The .tar.bz2 file is distributed with a working set of configure files. They
are not in the SVN repository. Consequently, if you are building from
SVN, you will need autoconf (>= 2.59) and automake (>= 1.9). Run './autogen.sh'
then to generate the configure files.
2003-11-21 00:52:27 +00:00
Sourcecode:
2003-11-21 00:52:27 +00:00
You can get it here:
2003-11-21 00:52:27 +00:00
http://www.wesnoth.org/downloads
2003-11-21 00:52:27 +00:00
Compiling:
2003-11-21 00:52:27 +00:00
First untar the package:
2006-06-06 00:05:03 +00:00
$ tar xfjv wesnoth-x.y.z.tar.bz2
2003-11-21 00:52:27 +00:00
then
2006-06-06 00:05:03 +00:00
$ cd wesnoth-x.y.z
Do this
2006-06-06 00:05:03 +00:00
$ autogen.sh
2005-03-21 12:54:06 +00:00
$ make
$ sudo make install
2003-12-23 20:16:21 +00:00
to compile the wesnoth binary and install it along with the game
data to the default prefix, which is probably /usr/local. You
can pass configure options to the autogen.sh call
After your first build, it should not be necessary to call autogen.sh
again. You can do
$ configure
$ make
$ sudo make install
2003-12-23 20:16:21 +00:00
If you see lots of messages like "Type 'svnversion --help' for usage.",
you have a Subversion client installed but it is not implementing the
-n option of svnversion. Time to update it.
2005-03-21 12:54:06 +00:00
If you want to build wesnoth_editor too add the --enable-editor
configure option.
2007-06-11 18:22:42 +00:00
The --enable-display-revision option enables code that shows the SVN
revision number on the main screen -- useful for detecting old builds
you might happen to have in your path, but probably not what you want
in a production release.
2005-03-21 12:54:06 +00:00
In case you want wesnothd to be built you should add:
2005-03-21 21:48:47 +00:00
--enable-server --localstatedir=/var --with-server-uid=user
2005-03-21 12:54:06 +00:00
--with-server-gid=group
2005-03-21 21:48:47 +00:00
$localstatedir/run is the location where a wesnothd subdirectory will be
2006-06-06 00:05:03 +00:00
created owned by user:group. This is relevant if you want to be able
2005-03-21 12:54:06 +00:00
to communicate with wesnothd through a fifo file named socket.
2006-06-06 00:05:03 +00:00
You have to run wesnothd with the user specified while configuring in
2005-03-21 12:54:06 +00:00
order for it to work.
You most likely want to change the default localstatedir since it will
probably default to PREFIX/var.
2005-03-21 21:48:47 +00:00
You can also specify the fifodir directly by using --with-fifodir
This way localstatedir won't be used.
If you want to install several versions of wesnoth you should use the
--with-preferences-dir= parameter to get distinct preferences directories.
The default is '.wesnoth'.
2005-03-21 20:35:20 +00:00
Rebuilding:
2005-03-21 20:35:20 +00:00
You should clean your existing wesnoth release build first with:
$ make distclean
If you want to clean your wesnoth SVN build do:
2005-03-21 20:35:20 +00:00
$ make maintainer-clean