-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
282 lines (217 loc) · 6.53 KB
/
BUILD
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
Instructions to build from scratch (from the repository sources).
If you downloaded a release you can skip the "Bootstrap" instructions
and go to "Dependencies" directly.
These instructions may sound redundant with the packaging specs (.deb,
.rpm, .ebuild, etc.) but they are necessary for people who want to
compile the latest, not-yet-packaged sources :)
On a minimal Debian system
==========================
## Bootstrap
# Source code:
apt-get install git
git clone git://git.sv.gnu.org/freedink
cd freedink/
# Gnulib
(cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
# or:
#apt-get install gnulib
# autoconf automake: base autotools
# pkg-config: for PKG_CHECK_MODULES
# help2man: to rebuild manpages
# gettext autopoint: for i18n
# rsync: to fetch translationproject.org
apt-get install autoconf automake pkg-config help2man gettext autopoint rsync
sh bootstrap
## Dependencies
# Base: GCC, make & al.
apt-get install build-essential
# Required: SDL
apt-get install pkg-config \
libsdl2-dev \
libsdl2-image-dev libsdl2-image-dbg \
libsdl2-mixer-dev libsdl2-mixer-dbg \
libsdl2-ttf-dev libsdl2-ttf-dbg \
libsdl2-gfx-dev libsdl2-gfx-dbg \
libfontconfig1-dev \
libglm-dev \
cxxtest
# Optional:
# - upx compresses binary
# - bzip is for .tar.bz2 release tarballs
apt-get install upx-ucl bzip2
## Compilation
./configure
make
make install
## Release tests
make dist
make distcheck
## Optional: software MIDI support, used by SDL_mixer
# Check doc/midi.txt for details
apt-get install timidity freepats
# :)
On a minimal Fedora system
==========================
(use 'yum' or 'pkcon' indifferently)
## Bootstrap
# Source code:
yum install git-core
git clone git://git.sv.gnu.org/freedink
cd freedink/
# Gnulib
(cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
# No Fedora package, but there's no need for one.
# autoconf automake: base autotools
# pkg-config: for PKG_CHECK_MODULES
# help2man: to rebuild manpages
# gettext autpoint: for i18n
# rsync: to fetch translationproject.org
yum install autoconf automake pkg-config help2man gettext-devel rsync
sh bootstrap
## Dependencies
# Base: GCC, make & al.
# Note: 'groupinstall' not working with pkcon yet
yum groupinstall 'Development Tools'
# or just:
#yum install make gcc
yum install SDL-devel SDL_gfx-devel SDL_ttf-devel SDL_image-devel \
SDL_mixer-devel fontconfig-devel
# Optional:
# - upx compresses binary
# - bzip is for .tar.bz2 release tarballs
yum install upx bzip2
## Compilation
./configure
make
make install
## Release tests
make dist
make distcheck
## Optional: software MIDI support, used by SDL_mixer
# Check doc/sound.txt for details
# timidity++ and timidity++-patches already installed as dependencies
# from SDL_mixer
# :)
On a minimal Gentoo system
==========================
## Bootstrap
# Source code:
emerge dev-util/git
git clone git://git.sv.gnu.org/freedink
cd freedink
# Gnulib
(cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
# or:
# Gnulib is currently masked, you need to unmask it:
# http://gentoo-wiki.com/Masked#Masked_by_missing_keyword
# Not that there are issues with the Gentoo wrapper. Use
# /usr/share/gnulib/gnulib-tool instead of /usr/bin/gnulib-tool if
# possible
#echo "dev-libs/gnulib **" >> /etc/portage/package.keywords
#emerge gnulib
# I assume you already have autoconf & al. ;)
emerge help2man # to rebuild manpages
emerge pkgconfig # for PKG_CHECK_MODULES
sh bootstrap
## Dependencies
# I also assume you already have GCC and Make ;)
emerge libsdl # (if not already done in bootstrap step)
emerge sdl-gfx sdl-ttf sdl-image sdl-mixer fontconfig
# Optional:
# - upx compresses binary
# - bzip is for .tar.bz2 release tarballs (included in base Gentoo)
emerge upx
./configure
make
make install
## Release tests
make dist
make distcheck
## Optional: software MIDI support, used by SDL_mixer
# Check doc/sound.txt for details
emerge media-sound/timidity++
echo "media-sound/timidity-freepats **" >> /etc/portage/package.keywords
emerge media-sound/timidity-freepats # GPLv>=2 + lax exception
emerge media-sound/timidity-eawpatches # non-free
# :)
On a minimal ArchLinux system
=============================
## Bootstrap
# Update packages list
pacman -Sy
# Source code:
pacman -S git
git clone git://git.sv.gnu.org/freedink
cd freedink
# Gnulib
(cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
# No ArchLinux package, but there's no need for one.
# Install development tools (autoconf automake gcc m4 make pkgconfig)
pacman -S base-devel
pacman -S help2man # to rebuild manpages
pacman -S gettext # for i18n
sh bootstrap
## Dependencies
# I also assume you already have GCC and Make ;)
pacman -S sdl # (if not already done in bootstrap step)
pacman -S sdl_gfx sdl_ttf sdl_image sdl_mixer fontconfig
# Optional:
# - upx compresses binary
# - bzip is for .tar.bz2 release tarballs (included in base Gentoo)
pacman -S bzip2 upx
./configure
make
make install
## Release tests
make dist
make distcheck
## Optional: software MIDI support, used by SDL_mixer
# Check doc/sound.txt for details
pacman -S timidity++
pacman -S timidity-freepats # GPLv>=2 + lax exception
cp /etc/timidity++/timidity-freepats.cfg /etc/timidity++/timidity.cfg
yaourt -S timidity-eawpatches # non-free, in the AUR
cp /etc/timidity++/timidity-eawpats.cfg /etc/timidity++/timidity.cfg
# :)
On a minimal FreeBSD 10.0 system
===============================
## Bootstrap
# Source code:
pkg install -y git
git clone git://git.sv.gnu.org/freedink
cd freedink/
# Gnulib
(cd /usr/src && git clone git://git.sv.gnu.org/gnulib)
# autoconf automake: base autotools
# pkgconf: for PKG_CHECK_MODULES
# help2man: to rebuild manpages
# gettext autopoint: for i18n
# rsync: to fetch translationproject.org
pkg install -y autoconf automake pkgconf help2man gettext rsync
sh bootstrap
## Dependencies
# I assume you already have GCC and Make ;)
pkg install -y sdl sdl_gfx sdl_ttf sdl_image sdl_mixer fontconfig
# Optional:
# - upx compresses binary
# - bzip is for .tar.bz2 release tarballs (included in base FreeBSD)
pkg install -y upx
./configure
make -k # TODO: issue with spurious newlines added by msgmerge
make install -k
## Release tests
make dist
make distcheck
## Optional: software MIDI support, used by SDL_mixer
# Check doc/sound.txt for details
# timidity already installed as dependencies
# from SDL_mixer
pkg install -y freepats
# To test, see http://www.freebsd.org/doc/en/books/handbook/x-config.html
# pkg install x11
# startx
# :)
On a minimal Woe system
=======================
Check doc/cross.txt (for cross compiling from GNU/Linux + MinGW32) or
doc/woe-compile.txt (for compiling from native MinGW32).