forked from fte-team/fteqw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fte.m4
294 lines (293 loc) · 6.88 KB
/
fte.m4
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
283
284
285
286
287
288
289
290
291
292
293
dnl
dnl This file will be processed to provide relevant package lists for the various packages built from FTE's source.
dnl The output will need to be combined with any other packages, and then signed for these packages to be considered valid.
dnl Users can add extra sources with the `pkg addsource URL' console command (will show a prompt, to try to avoid exploits).
dnl
define(`DATE',FTE_DATE)dnl
define(`REVISION',FTE_REVISION)dnl
define(`DLSIZE',`esyscmd(`stat --printf="%s" $1')')dnl
define(`SHA512',`esyscmd(`fteqw -sha512 $1')')dnl
define(`URL',`url "$1"
dlsize "DLSIZE($1)"
sha512 "SHA512($1)" ')dnl
define(`CAT',`$1$2$3$4$5$6$7$8$9')dnl
define(`ZIP',`unzipfile "$2"
URL($1$3)')dnl
define(`FILE',`file "$1$2$3$4$5$6$7$8$9"')dnl
define(`WINENGINE',`category "Engine"
ver "REVISION"
gamedir ""
license "GPLv2"
{
arch "win_x86-FTE$1"
FILE(fteqw_,REVISION,_32.exe)
ZIP(win32/,CAT($2,.exe),CAT($2,_win32.zip))
}
{
arch "win_x64-FTE$1"
FILE(fteqw_,REVISION,_64.exe)
ZIP(win64/,CAT($2,64.exe),CAT($2,_win64.zip))
}')dnl
define(`LINENGINE2',`{
arch "linux_amd64-FTE$1"
FILE(fteqw_,REVISION,_64.bin)
ZIP(linux_amd64/,CAT($2,64),$3)
}')dnl
define(`LINENGINE',`LINENGINE2($1,$2,CAT($2_lin64.zip))')dnl
define(`HIDE',)dnl
define(`GAME',`ifelse(FTE_GAME,`$1',`$2'
,)')dnl
define(`TEST',`ifelse(FTE_TEST,`1',` test "1"
',` test "0"
')')dnl
{
package "fte_cl"
WINENGINE(-m,fteqw)
LINENGINE(-m,fteqw)
title "CAT(`FTE Engine ',DATE)"
desc "The awesome FTE engine (multi-renderer build)"
TEST()dnl
}
HIDE(`
{
package "fte_cl_gl"
dnl WINENGINE(-gl,fteglqw)
dnl //don't bother advertising it on linux
dnl title "CAT(`FTE Engine ',DATE,` - OpenGL'")
desc "The awesome FTE engine (OpenGL-only build)"
TEST()dnl
}
{
package "fte_cl_vk"
dnl WINENGINE(-vk,ftevkqw)
dnl //don't bother advertising it on linux
dnl title "CAT(`FTE Engine ',DATE,` - Vulkan')"
desc "The awesome FTE engine (Vulkan-only build)"
TEST()dnl
}
{
package "fte_cl_d3d"
dnl WINENGINE(-d3d,fted3dqw)
//no d3d on linux
dnl title "CAT(`FTE Engine ',DATE,` - Direct3D')"
desc "The awesome FTE engine (Direct3D-only build)"
TEST()dnl
}')dnl
{
package "fte_sv"
WINENGINE(-sv,fteqwsv)
LINENGINE2(-sv,fteqw-sv,fteqwsv_lin64.zip)
title "CAT(`FTE Engine ',DATE,` - Server')"
desc "The awesome FTE engine (server-only build)"
TEST()dnl
}
define(`WINPLUG',`category "Plugins"
ver "REVISION"
gamedir ""
license "GPLv2"
{
arch "win_x86"
FILE(fteplug_$1_x86.REVISION.dll)
URL(win32/fteplug_$1_x86.dll)
}
{
arch "win_x64"
FILE(fteplug_$1_x64.REVISION.dll)
URL(win64/fteplug_$1_x64.dll)
}')dnl
define(`WIN64PLUG',`category "Plugins"
ver "REVISION"
gamedir ""
license "GPLv2"
{
arch "win_x64"
FILE(fteplug_$1_x64.REVISION.dll)
URL(win64/fteplug_$1_x64.dll)
}')dnl
define(`LINPLUG',`{
arch "linux_amd64"
FILE(fteplug_$1_amd64.REVISION,.so)
URL(linux_amd64/fteplug_$1_amd64.so)
}')dnl
GAME(quake,
`{
package "fteplug_ezhud"
WINPLUG(ezhud)
LINPLUG(ezhud)
title "EzHud Plugin"
replace "ezhud"
desc "Some lame alternative configurable hud."
TEST()dnl
}')dnl
GAME(quake,
`{
package "fteplug_qi"
WINPLUG(qi)
LINPLUG(qi)
category "Plugins"
title "Quake Injector Plugin"
replace "Quake Injector Plugin"
author "Spike"
website "https://www.quaddicted.com/reviews/"
desc "Provides a way to quickly list+install+load numerous different maps and mods. Some better than others."
desc "If youre a single-player fan then these will keep you going for quite some time."
desc "The database used is from quaddicted.com."
TEST()dnl
}')dnl
{
package "fteplug_irc"
WINPLUG(irc)
LINPLUG(irc)
title "IRC Plugin"
replace "IRC Plugin"
desc "Allows you to converse on IRC servers in-game."
desc "Requires manual configuration."
TEST()dnl
}
{
package "fteplug_xmpp"
WINPLUG(xmpp)
LINPLUG(xmpp)
title "XMPP Plugin"
desc "Allows you to converse on XMPP servers. This also includes a method for NAT holepunching between contacts."
desc "Requires manual configuration."
TEST()dnl
}
{
package "fteplug_openssl"
WINPLUG(openssl)
license "GPLv3" //Apache2+GPLv2=GPLv3
title "OpenSSL Plugin"
author "Spike"
desc "Provides TLS and DTLS support, instead of using Microsoft's probably-outdated libraries."
desc "Required for fully functional DTLS support on windows."
desc "Connecting to QEx servers requires additional setup."
TEST()dnl
}
{
package "fteplug_hl2"
WINPLUG(hl2)
LINPLUG(hl2)
title "HalfLife2 Formats Plugin"
desc "Provides support for HalfLife2 bsp and texture formats."
desc "Some related games may work, but this is not guarenteed."
desc "Requires mod support for full functionality."
TEST()dnl
}
HIDE(`
{
package "fteplug_models"
WINPLUG(models)
LINPLUG(models)
title "Model exporter plugin"
desc ""
TEST()dnl
}
{
package fteplug_ode
TEST()dnl
}
{
package fteplug_cef
TEST()dnl
}
{
package "fteplug_ffmpeg"
{
arch "win_x86"
file "fteplug_ffmpeg_x86."#REVISION#".dll"
url "win32/fteplug_ffmpeg_x86.dll"
}
{
arch "win_x64"
file "fteplug_ffmpeg_x64."#REVISION#".dll"
url "win64/fteplug_ffmpeg_x64.dll"
}
// {
// arch "linux_x64"
// file "fteplug_ffmpeg_amd64."#REVISION#".so"
// url "linux_amd64/fteplug_ffmpeg_amd64.so"
// }
ver REVISION
category "Plugins"
title "FFmpeg Plugin"
file "fteplug_ffmpeg"
gamedir ""
TEST()dnl
}
{
package "libffmpeg"
{
arch "win_x86"
url "win32/ffmpeg-4.0-x86.zip"
}
{
arch "win_x64"
url "win64/ffmpeg-4.0-x64.zip"
}
// {
// arch "linux_x64"
// url "linux_amd64/ffmpeg-4.0-fteplug_ezhud_amd64.so"
// }
ver "4.0"
category "Plugins"
title "FFmpeg Library"
extract "zip"
gamedir ""
}
')dnl
GAME(quake2,
`{
package "q2game_baseq2"
{
arch "win_x86"
FILE(q2gamex86_baseq2.dll)
URL(win32/q2gamex86_baseq2.dll)
}
{
arch "win_x64"
FILE(q2gamex64_baseq2.dll)
URL(win64/q2gamex64_baseq2.dll)
}
{
arch "linux_amd64"
FILE(q2gameamd64_baseq2.so)
URL(linux_amd64/q2gameamd64_baseq2.so)
}
ver "20190606"
category "Mods"
title "Gamecode: Base Game"
license "GPLv2"
website "https://github.com/yquake2/yquake2"
desc "Quake2 Gamecode (from yamagiq2). Required for single player or servers."
TEST()dnl
}')dnl
GAME(quake,
`{
package "fte_csaddon"
category "Plugins"
title "Ingame Map Editor"
ver REVISION
gamedir "fte"
FILE(csaddon.dat)
URL(csaddon/csaddon.dat)
desc "This is Spikes map editing user interface. It is only active while running singleplayer (or sv_cheats is enabled)."
desc "To activate, set the ca_show cvar to 1 (suggestion: ^abind c toggle ca_show^a)."
license "GPLv2, source on the fte svn"
author "Spike"
TEST()dnl
}')dnl
GAME(quake,
`{
package "fte_menusys"
category "AfterQuake"
title "Replacement Menus"
ver REVISION
gamedir "fte"
FILE(menu.dat)
URL(csaddon/menu.dat)
desc "This provides a more modern mouse-first menu system."
license "GPLv2, source on the fte svn"
author "Spike"
TEST()dnl
}')dnl