Debian Codegraph @

BUILD

raw
1 Instructions to build from scratch (from the repository sources).
2
3 If you downloaded a release you can skip the "Bootstrap" instructions
4 and go to "Dependencies" directly.
5
6 These instructions may sound redundant with the packaging specs (.deb,
7 .rpm, .ebuild, etc.) but they are necessary for people who want to
8 compile the latest, not-yet-packaged sources :)
9
10
11 On a minimal Debian system
12 ==========================
13
14 ## Bootstrap
15 # Source code:
16 apt-get install git
17 git clone git://git.sv.gnu.org/freedink
18 cd freedink/
19
20 # Gnulib
21 (cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
22 # or:
23 #apt-get install gnulib
24
25 # autoconf automake: base autotools
26 # pkg-config: for PKG_CHECK_MODULES
27 # help2man: to rebuild manpages
28 # gettext autopoint: for i18n
29 # rsync: to fetch translationproject.org
30 apt-get install autoconf automake pkg-config help2man gettext autopoint rsync
31 sh bootstrap
32
33
34 ## Dependencies
35 # Base: GCC, make & al.
36 apt-get install build-essential
37 # Required: libraries
38 apt-get install pkg-config \
39 libsdl2-dev \
40 libsdl2-image-dev libsdl2-image-dbg \
41 libsdl2-mixer-dev libsdl2-mixer-dbg \
42 libsdl2-ttf-dev libsdl2-ttf-dbg \
43 libsdl2-gfx-dev libsdl2-gfx-dbg \
44 libfontconfig1-dev \
45 libglm-dev \
46 cxxtest
47 # Optional:
48 # - upx compresses binary
49 # - bzip is for .tar.bz2 release tarballs
50 apt-get install upx-ucl bzip2
51
52 ## Compilation
53 ./configure
54 make
55 make install
56
57 ## Release tests
58 make dist
59 make distcheck
60
61 ## Optional: software MIDI support, used by SDL_mixer
62 # Check doc/midi.txt for details
63 apt-get install timidity freepats
64
65 # :)
66
67
68 On a minimal Fedora system
69 ==========================
70
71 (use 'yum' or 'pkcon' indifferently)
72
73 ## Bootstrap
74 # Source code:
75 yum install git-core
76 git clone git://git.sv.gnu.org/freedink
77 cd freedink/
78
79 # Gnulib
80 (cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
81 # No Fedora package, but there's no need for one.
82
83 # autoconf automake: base autotools
84 # pkg-config: for PKG_CHECK_MODULES
85 # help2man: to rebuild manpages
86 # gettext autpoint: for i18n
87 # rsync: to fetch translationproject.org
88 yum install autoconf automake pkg-config help2man gettext-devel rsync
89 sh bootstrap
90
91
92 ## Dependencies
93 # Base: GCC, make & al.
94 yum groupinstall 'Development Tools'
95 # or just:
96 #yum install make gcc-c++
97 yum install SDL2-devel \
98 SDL2_gfx-devel SDL2_ttf-devel SDL2_image-devel SDL2_mixer-devel \
99 fontconfig-devel glm-devel
100 # Optional:
101 # - upx compresses binary
102 # - bzip is for .tar.bz2 release tarballs
103 yum install upx bzip2
104
105 ## Compilation
106 ./configure
107 make
108 make install
109
110 ## Release tests
111 make dist
112 make distcheck
113
114 ## Optional: software MIDI support, used by SDL_mixer
115 # Check doc/sound.txt for details
116 # timidity++ and timidity++-patches already installed as dependencies
117 # from SDL_mixer
118
119 # :)
120
121
122 On a minimal Gentoo system
123 ==========================
124
125 ## Bootstrap
126 # Source code:
127 emerge dev-util/git
128 git clone git://git.sv.gnu.org/freedink
129 cd freedink
130
131 # Gnulib
132 (cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
133 # or:
134 # Gnulib is currently masked, you need to unmask it:
135 # http://gentoo-wiki.com/Masked#Masked_by_missing_keyword
136 # Not that there are issues with the Gentoo wrapper. Use
137 # /usr/share/gnulib/gnulib-tool instead of /usr/bin/gnulib-tool if
138 # possible
139 #echo "dev-libs/gnulib **" >> /etc/portage/package.keywords
140 #emerge gnulib
141
142 # I assume you already have autoconf & al. ;)
143
144 emerge help2man # to rebuild manpages
145 emerge pkgconfig # for PKG_CHECK_MODULES
146 sh bootstrap
147
148
149 ## Dependencies
150 # I also assume you already have GCC and Make ;)
151 emerge libsdl # (if not already done in bootstrap step)
152 emerge sdl-gfx sdl-ttf sdl-image sdl-mixer fontconfig
153 # Optional:
154 # - upx compresses binary
155 # - bzip is for .tar.bz2 release tarballs (included in base Gentoo)
156 emerge upx
157
158 ./configure
159 make
160 make install
161
162 ## Release tests
163 make dist
164 make distcheck
165
166 ## Optional: software MIDI support, used by SDL_mixer
167 # Check doc/sound.txt for details
168 emerge media-sound/timidity++
169 echo "media-sound/timidity-freepats **" >> /etc/portage/package.keywords
170 emerge media-sound/timidity-freepats # GPLv>=2 + lax exception
171 emerge media-sound/timidity-eawpatches # non-free
172
173 # :)
174
175
176 On a minimal ArchLinux system
177 =============================
178
179 ## Bootstrap
180 # Update packages list
181 pacman -Sy
182
183 # Source code:
184 pacman -S git
185 git clone git://git.sv.gnu.org/freedink
186 cd freedink
187
188 # Gnulib
189 (cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
190 # No ArchLinux package, but there's no need for one.
191
192 # Install development tools (autoconf automake gcc m4 make pkgconfig)
193 pacman -S base-devel
194
195 pacman -S help2man # to rebuild manpages
196 pacman -S gettext # for i18n
197 sh bootstrap
198
199
200 ## Dependencies
201 # I also assume you already have GCC and Make ;)
202 pacman -S sdl # (if not already done in bootstrap step)
203 pacman -S sdl_gfx sdl_ttf sdl_image sdl_mixer fontconfig
204 # Optional:
205 # - upx compresses binary
206 # - bzip is for .tar.bz2 release tarballs (included in base Gentoo)
207 pacman -S bzip2 upx
208
209 ./configure
210 make
211 make install
212
213 ## Release tests
214 make dist
215 make distcheck
216
217 ## Optional: software MIDI support, used by SDL_mixer
218 # Check doc/sound.txt for details
219 pacman -S timidity++
220 pacman -S timidity-freepats # GPLv>=2 + lax exception
221 cp /etc/timidity++/timidity-freepats.cfg /etc/timidity++/timidity.cfg
222 yaourt -S timidity-eawpatches # non-free, in the AUR
223 cp /etc/timidity++/timidity-eawpats.cfg /etc/timidity++/timidity.cfg
224
225 # :)
226
227
228 On a minimal FreeBSD 10.0 system
229 ===============================
230
231 ## Bootstrap
232 # Source code:
233 pkg install -y git
234 git clone git://git.sv.gnu.org/freedink
235 cd freedink/
236
237 # Gnulib
238 (cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
239
240 # autoconf automake: base autotools
241 # pkgconf: for PKG_CHECK_MODULES
242 # help2man: to rebuild manpages
243 # gettext autopoint: for i18n
244 # rsync: to fetch translationproject.org
245 pkg install -y autoconf automake pkgconf help2man gettext rsync
246 sh bootstrap
247
248
249 ## Dependencies
250 # I assume you already have GCC and Make ;)
251 pkg install -y sdl sdl_gfx sdl_ttf sdl_image sdl_mixer fontconfig
252 # Optional:
253 # - upx compresses binary
254 # - bzip is for .tar.bz2 release tarballs (included in base FreeBSD)
255 pkg install -y upx
256
257 ./configure
258 make -k # TODO: issue with spurious newlines added by msgmerge
259 make install -k
260
261 ## Release tests
262 make dist
263 make distcheck
264
265 ## Optional: software MIDI support, used by SDL_mixer
266 # Check doc/sound.txt for details
267 # timidity already installed as dependencies
268 # from SDL_mixer
269 pkg install -y freepats
270
271 # To test, see http://www.freebsd.org/doc/en/books/handbook/x-config.html
272 # pkg install x11
273 # startx
274
275 # :)
276
277
278 On a minimal Woe system
279 =======================
280
281 Check doc/cross.txt (for cross compiling from GNU/Linux + MinGW32) or
282 doc/woe-compile.txt (for compiling from native MinGW32).