2010-02-08 19:22:38 +02:00
|
|
|
INSTEAD 1.1.1
|
2009-11-14 11:24:41 +02:00
|
|
|
=============
|
|
|
|
|
2009-11-09 13:50:58 +02:00
|
|
|
WARNING! For successfull building you must install these development packages (names may vary in your distribution):
|
|
|
|
|
2009-08-26 08:25:53 +03:00
|
|
|
sdl, sdl-mixer, sdl-image, sdl-ttf, lua5.1
|
2009-02-21 12:52:44 +02:00
|
|
|
|
2009-11-09 13:50:58 +02:00
|
|
|
0) Prepare for building
|
2009-11-14 11:24:41 +02:00
|
|
|
=======================
|
2009-11-09 13:50:58 +02:00
|
|
|
|
|
|
|
Unpack source package with this command:
|
|
|
|
$ tar xzvf instead_<version>.tar.gz
|
|
|
|
|
|
|
|
Change current dir to project's build dir:
|
|
|
|
$ cd instead-<version>
|
|
|
|
|
|
|
|
There are several ways to build package.
|
|
|
|
|
2009-11-14 11:24:41 +02:00
|
|
|
1) On Debian based systems you can build deb package
|
|
|
|
====================================================
|
2010-01-10 19:26:29 +02:00
|
|
|
$ sudo apt-get install liblua5.1-dev libreadline-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev
|
2010-01-13 12:47:59 +02:00
|
|
|
$ sudo apt-get install build-essential debhelper
|
2009-11-09 13:50:58 +02:00
|
|
|
$ debuild
|
|
|
|
$ cd ..
|
2010-01-13 12:47:59 +02:00
|
|
|
$ sudo dpkg -i instead_<version>.deb
|
2009-11-09 13:50:58 +02:00
|
|
|
|
2009-12-10 18:59:13 +02:00
|
|
|
2) On gentoo or arch linux
|
|
|
|
==========================
|
2009-11-14 12:08:21 +02:00
|
|
|
Please copy-paste EBUILD (gentoo) or PKGBUILD (arch) from here:
|
|
|
|
http://code.google.com/p/instead/wiki/
|
|
|
|
|
2009-11-14 11:24:41 +02:00
|
|
|
And, I think, you have enough skills to build package yourself. ;)
|
2009-11-09 13:50:58 +02:00
|
|
|
|
2009-11-14 11:24:41 +02:00
|
|
|
3) For other distributions
|
|
|
|
==========================
|
|
|
|
You have a two choices:
|
|
|
|
a) try run ./configure.sh and follow instructions
|
2009-11-09 13:50:58 +02:00
|
|
|
or
|
2009-11-14 11:24:41 +02:00
|
|
|
b) do all things manually
|
2009-11-09 13:50:58 +02:00
|
|
|
|
|
|
|
4) Manual build
|
2009-11-14 11:24:41 +02:00
|
|
|
===============
|
2009-11-09 13:50:58 +02:00
|
|
|
|
2009-11-14 11:24:41 +02:00
|
|
|
To build game, that runs just from build dir use Rules.make.standalone
|
|
|
|
----------------------------------------------------------------------
|
2009-11-09 13:50:58 +02:00
|
|
|
$ rm -f Rules.make
|
|
|
|
$ ln -s Rules.make.standalone Rules.make
|
|
|
|
$ make clean
|
|
|
|
$ make
|
|
|
|
|
|
|
|
If build process has failed check Rules.make.standalone and make changes if needed.
|
2009-02-21 12:52:44 +02:00
|
|
|
|
2009-11-09 13:50:58 +02:00
|
|
|
$ ./sdl-instead
|
2009-08-26 08:25:53 +03:00
|
|
|
|
2009-11-14 11:24:41 +02:00
|
|
|
To build game for system install
|
|
|
|
--------------------------------
|
2009-11-09 13:50:58 +02:00
|
|
|
$ rm -f Rules.make
|
|
|
|
$ ln -s Rules.make.system Rules.make
|
|
|
|
$ make clean
|
|
|
|
$ make
|
2009-08-26 08:25:53 +03:00
|
|
|
|
2009-11-09 13:50:58 +02:00
|
|
|
If build process has failed check Rules.make.system and make changes if needed.
|
2009-02-21 12:52:44 +02:00
|
|
|
|
2009-11-09 13:50:58 +02:00
|
|
|
$ sudo make install
|
2009-11-08 10:29:35 +02:00
|
|
|
|
2009-11-09 13:50:58 +02:00
|
|
|
$ sdl-instead
|
2009-11-08 10:29:35 +02:00
|
|
|
|
2009-11-14 11:24:41 +02:00
|
|
|
Enjoy.
|