forked from instead-hub/instead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
128 lines (93 loc) · 2.75 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
INSTEAD 2.4.1
=============
WARNING! For successfull building you must install these development packages
(names may vary in your distribution):
sdl, sdl-mixer, sdl-image, sdl-ttf, lua5.1, iconv
and gtk+2(3) (to build with open file dialog)
Optionally you may use:
sdl2
lua5.2/luajit
luajit is recommended for slow machines.
0) Prepare for building
=======================
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.
1) On Ubuntu
============
Install stable (old) version from repo:
$ apt-get install instead
Or use ppa with latest version:
http://launchpad.net/~instead/+archive/ppa
2) On Debian based systems you can build deb package
====================================================
$ sudo apt-get install liblua5.1-dev libreadline-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev
$ sudo apt-get install build-essential debhelper
$ debuild
$ cd ..
$ sudo dpkg -i instead_<version>.deb
3) On arch linux
================
Install stable version from community:
$ pacman -S instead
Or build from svn:
$ make PKGBUILD
$ makepkg -s
And, I think, you have enough skills to build package yourself. ;)
4) On FreeBSD
=============
Install instead from ports with pkgng:
# pkg install instead
Or:
# cd /usr/ports/games/instead
# make install
Or build from tarball:
$ ./configure.sh
$ gmake
5) On RPM based system
======================
There is .spec file in tarball.
6) For other distributions
==========================
You have three choices:
a) try run ./configure.sh and follow instructions
or
b) try to use experimental cmake rules
c) do all things manually
7) Build using cmake
====================
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
Warning, in some systems (like Arch linux) you need to define LUA dir, to help cmake.
For example (Arch linux):
$ LUA_DIR=/usr/include/lua5.1/ cmake ..
To build standalone version, use this (in ./build/ directory):
$ cmake .. -DSTANDALONE=1
$ make && make install
$ cd standalone
$ ./sdl-instead
8) Manual build
===============
To build game, that runs just from build dir use Rules.make.standalone
----------------------------------------------------------------------
$ 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.
$ ./sdl-instead
To build game for system install
--------------------------------
$ rm -f Rules.make
$ ln -s Rules.make.system Rules.make
$ make clean
$ make
If build process has failed check Rules.make.system and make changes if needed.
$ sudo make install
$ sdl-instead
Enjoy.