~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to .pc/dfsg_disable_alan2.patch/terps/Jamfile

  • Committer: Package Import Robot
  • Author(s): Sylvain Beucler
  • Date: 2013-07-28 13:38:56 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130728133856-4k6uc864wzsnrx04
Tags: 2011.1a-1
* New upstream release
* Alan 2 interpreter is now Free Software, include it
* Update fonts package names in dependencies (Closes: #715160)
* Bump Standards-Version to 3.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -----------------------------------------------------------------------
2
 
#
3
 
# Big fat Jamfile for all the minor terps, so we don't need to
4
 
# mess with the original files and directories more than we have to.
5
 
#
6
 
 
7
 
SubDir TOP terps ;
8
 
 
9
 
MAKE_ADVSYS     ?= yes ;
10
 
MAKE_AGILITY    ?= yes ;
11
 
MAKE_ALAN2      ?= yes ;
12
 
MAKE_ALAN3      ?= yes ;
13
 
MAKE_BOCFEL     ?= yes ;
14
 
MAKE_FROTZ      ?= yes ;
15
 
MAKE_GEAS       ?= yes ;
16
 
MAKE_GIT        ?= yes ;
17
 
MAKE_GLULXE     ?= yes ;
18
 
MAKE_HUGO       ?= no ;
19
 
MAKE_JACL       ?= yes ;
20
 
MAKE_LEVEL9     ?= yes ;
21
 
MAKE_MAGNETIC   ?= yes ;
22
 
MAKE_NITFOL     ?= yes ;
23
 
MAKE_SCARE      ?= yes ;
24
 
MAKE_SCOTT      ?= yes ;
25
 
 
26
 
# -----------------------------------------------------------------------
27
 
#
28
 
# AdvSys 1.2 + ANSI + NewParser + parts of glkize
29
 
#
30
 
 
31
 
if $(MAKE_ADVSYS) = yes
32
 
{
33
 
    SubDir TOP terps advsys ;
34
 
    ObjDir advsys ;
35
 
 
36
 
    SubDirCcFlags -w ;
37
 
 
38
 
    Main $(GARGLKPRE)advsys :
39
 
        advmsg.c advtrm.c advprs.c advdbs.c advint.c advjunk.c advexe.c
40
 
        glkstart.c ;
41
 
 
42
 
    APPS += $(GARGLKPRE)advsys ;
43
 
}
44
 
 
45
 
# -----------------------------------------------------------------------
46
 
#
47
 
# Agility 1.1.1.1 with Glk
48
 
#
49
 
# Agility uses some bad voodoo to get filenames back from glk filerefs.
50
 
# We have three options:
51
 
#   1) use the bad voodoo (only works on unixes)
52
 
#   2) don't use glk file prompts (GLK_ANSI_ONLY)
53
 
#   3) use garglk extension garglk_fileref_get_name (GARGLK)
54
 
#
55
 
 
56
 
if $(MAKE_AGILITY) = yes
57
 
{
58
 
    SubDir TOP terps agility ;
59
 
    ObjDir agility ;
60
 
 
61
 
    SubDirCcFlags -DGLK ;
62
 
    SubDirCcFlags -DGLK_ANSI_ONLY ;
63
 
 
64
 
    Main $(GARGLKPRE)agility :
65
 
        agtread.c gamedata.c util.c agxfile.c auxfile.c filename.c
66
 
        parser.c exec.c runverb.c metacommand.c savegame.c debugcmd.c
67
 
        agil.c token.c disassemble.c object.c
68
 
        interface.c os_glk.c 
69
 
        ;
70
 
 
71
 
    APPS += $(GARGLKPRE)agility ;
72
 
}
73
 
 
74
 
# -----------------------------------------------------------------------
75
 
#
76
 
# Alan interpreter 2.8.6
77
 
#
78
 
# Fixed a couple of bugs (needsp needs resetting in a few places).
79
 
# Added glk file prompts for gargoyle using garglk_fileref_get_name.
80
 
#
81
 
 
82
 
if $(MAKE_ALAN2) = yes
83
 
{
84
 
    SubDir TOP terps alan2 ;
85
 
    ObjDir alan2 ;
86
 
 
87
 
    SubDirCcFlags -funsigned-char -Wno-parentheses -DGLK -DREVERSED ;
88
 
 
89
 
    Main $(GARGLKPRE)alan2 :
90
 
        arun.c main.c debug.c args.c exe.c inter.c parse.c rules.c stack.c
91
 
        decode.c term.c reverse.c readline.c params.c sysdep.c
92
 
        glkstart.c glkio.c alan.version.c
93
 
        ;
94
 
 
95
 
    APPS += $(GARGLKPRE)alan2 ;
96
 
}
97
 
 
98
 
# -----------------------------------------------------------------------
99
 
#
100
 
# Alan interpreter 3 beta 2
101
 
#
102
 
 
103
 
if $(MAKE_ALAN3) = yes
104
 
{
105
 
    SubDir TOP terps alan3 ;
106
 
    ObjDir alan3 ;
107
 
 
108
 
    SubDirCcFlags -funsigned-char -DGLK -DHAVE_GARGLK -DBUILD=0 ;
109
 
 
110
 
    Main $(GARGLKPRE)alan3 :
111
 
        alan.version.c act.c actor.c args.c arun.c attribute.c
112
 
        checkentry.c class.c current.c debug.c decode.c
113
 
        dictionary.c event.c exe.c glkio.c glkstart.c instance.c
114
 
        inter.c lists.c literal.c main.c memory.c msg.c options.c
115
 
        output.c params.c parse.c readline.c reverse.c rules.c
116
 
        save.c scan.c score.c set.c stack.c state.c syntax.c
117
 
        sysdep.c syserr.c term.c utils.c word.c compatibility.c
118
 
        AltInfo.c Container.c Location.c ParameterPosition.c StateStack.c
119
 
        ;
120
 
 
121
 
    APPS += $(GARGLKPRE)alan3 ;
122
 
}
123
 
 
124
 
# -----------------------------------------------------------------------
125
 
#
126
 
# Bocfel 0.6.0
127
 
#
128
 
 
129
 
if $(MAKE_BOCFEL) = yes
130
 
{
131
 
    SubDir TOP terps bocfel ;
132
 
    ObjDir bocfel ;
133
 
 
134
 
    SubDirCcFlags -std=c99 -DZTERP_GLK -DGARGLK ;
135
 
 
136
 
    if $(OS) = MINGW
137
 
    {
138
 
      SubDirCcFlags -DZTERP_WIN32 ;
139
 
    }
140
 
    else if $(OS) != MACOSX
141
 
    {
142
 
      SubDirCcFlags -DZTERP_UNIX ;
143
 
    }
144
 
 
145
 
    Main $(GARGLKPRE)bocfel :
146
 
        blorb.c branch.c dict.c glkstart.c iff.c io.c math.c memory.c
147
 
        objects.c osdep.c process.c random.c screen.c stack.c table.c
148
 
        unicode.c util.c zoom.c zterp.c
149
 
        ;
150
 
 
151
 
    APPS += $(GARGLKPRE)bocfel ;
152
 
}
153
 
 
154
 
# -----------------------------------------------------------------------
155
 
#
156
 
# Frotz 2.50 / glk port
157
 
#
158
 
 
159
 
if $(MAKE_FROTZ) = yes
160
 
{
161
 
    SubDir TOP terps frotz ;
162
 
    ObjDir frotz ;
163
 
 
164
 
    Main $(GARGLKPRE)frotz :
165
 
        buffer.c err.c fastmem.c files.c
166
 
        input.c main.c math.c object.c process.c quetzal.c random.c
167
 
        redirect.c sound.c stream.c table.c text.c variable.c
168
 
        glkscreen.c glkmisc.c
169
 
        ;
170
 
 
171
 
    APPS += $(GARGLKPRE)frotz ;
172
 
}
173
 
 
174
 
# -----------------------------------------------------------------------
175
 
#
176
 
# Geas 0.4
177
 
#
178
 
 
179
 
if $(MAKE_GEAS) = yes
180
 
{
181
 
    SubDir TOP terps geas ;
182
 
    ObjDir geas ;
183
 
 
184
 
    SubDirCcFlags -DUSE_INLINE ;
185
 
 
186
 
    if $(OS) = MACOSX
187
 
    {
188
 
        SubDirCcFlags -headerpad_max_install_names $(MAINARCH) $(ALTARCH) ;
189
 
        LINKFLAGS = -headerpad_max_install_names $(MAINARCH) $(ALTARCH) ;
190
 
    }
191
 
 
192
 
    SUBDIRC++FLAGS = $(SUBDIRCCFLAGS) ;
193
 
 
194
 
    Main $(GARGLKPRE)geas :
195
 
        geasfile.cc geas-runner.cc geas-state.cc
196
 
        geas-util.cc geasglk.cc geasglkterm.c
197
 
        istring.cc readfile.cc
198
 
        ;
199
 
 
200
 
    LINK on $(GARGLKPRE)geas$(SUFEXE) = $(CXX) ;
201
 
 
202
 
    APPS += $(GARGLKPRE)geas ;
203
 
}
204
 
 
205
 
# -----------------------------------------------------------------------
206
 
#
207
 
# Git 1.2.9
208
 
#
209
 
# Reworked startup code to redirect errors to Glk windows.
210
 
#
211
 
 
212
 
if $(MAKE_GIT) = yes
213
 
{
214
 
    SubDir TOP terps git ;
215
 
    ObjDir git ;
216
 
 
217
 
    SubDirCcFlags -DUSE_INLINE -DUSE_OWN_POWF ;
218
 
 
219
 
    Main $(GARGLKPRE)git :
220
 
        git.c memory.c compiler.c opcodes.c operands.c
221
 
        peephole.c terp.c glkop.c search.c git_unix.c
222
 
        savefile.c saveundo.c gestalt.c heap.c accel.c
223
 
        ;
224
 
 
225
 
    APPS += $(GARGLKPRE)git ;
226
 
}
227
 
 
228
 
# -----------------------------------------------------------------------
229
 
#
230
 
# Glulxe 0.4.7
231
 
#
232
 
 
233
 
if $(MAKE_GLULXE) = yes
234
 
{
235
 
    SubDir TOP terps glulxe ;
236
 
    ObjDir glulxe ;
237
 
 
238
 
    SubDirCcFlags -DFLOAT_COMPILE_SAFER_POWF ;
239
 
 
240
 
    if $(OS) != MINGW { SubDirCcFlags -DOS_UNIX ; }
241
 
 
242
 
    Main $(GARGLKPRE)glulxe :
243
 
        main.c files.c vm.c exec.c funcs.c operand.c string.c glkop.c
244
 
        heap.c serial.c search.c gestalt.c osdepend.c unixstrt.c
245
 
        accel.c profile.c float.c
246
 
        ;
247
 
 
248
 
    APPS += $(GARGLKPRE)glulxe ;
249
 
}
250
 
 
251
 
# -----------------------------------------------------------------------
252
 
#
253
 
# Hugo 3.1.03
254
 
#
255
 
# Include hemedia.c from heglk.c for sound/graphics support.
256
 
# Added set_base_file so it can find resource files.
257
 
#
258
 
 
259
 
if $(MAKE_HUGO) = yes
260
 
{
261
 
    SubDir TOP terps hugo ;
262
 
    ObjDir hugo ;
263
 
 
264
 
    SubDirHdrs $(SUBDIR) source ;
265
 
    SubDirHdrs $(SUBDIR) heglk ;
266
 
 
267
 
    SubDirCcFlags
268
 
        -DGLK
269
 
        -DCOMPILE_V25
270
 
        -DNO_KEYPRESS_CURSOR
271
 
        "-DHUGO_INLINE=\"static inline\""
272
 
        ;
273
 
 
274
 
    SEARCH_SOURCE =
275
 
        [ FDirName $(SUBDIR) source ]
276
 
        [ FDirName $(SUBDIR) heglk ] ;
277
 
 
278
 
    Main $(GARGLKPRE)hugo :
279
 
        he.c heexpr.c hemisc.c heobject.c heparse.c heres.c herun.c heset.c 
280
 
        stringfn.c heglk.c heglkunix.c
281
 
        ;
282
 
 
283
 
    APPS += $(GARGLKPRE)hugo ;
284
 
}
285
 
 
286
 
# -----------------------------------------------------------------------
287
 
#
288
 
# JACL 2.8.5 for JACL games
289
 
#
290
 
 
291
 
if $(MAKE_JACL) = yes
292
 
{
293
 
    SubDir TOP terps jacl ;
294
 
    ObjDir jacl ;
295
 
 
296
 
    SubDirCcFlags -DGLK -DGARGLK ;
297
 
 
298
 
    Main $(GARGLKPRE)jacl :
299
 
        jacl.c glk_startup.c findroute.c interpreter.c loader.c 
300
 
        glk_saver.c logging.c parser.c display.c utils.c jpp.c 
301
 
        resolvers.c errors.c encapsulate.c 
302
 
        ;
303
 
 
304
 
    APPS += $(GARGLKPRE)jacl ;
305
 
}
306
 
 
307
 
# -----------------------------------------------------------------------
308
 
#
309
 
# Level9 4.1
310
 
#
311
 
# Disabled the status bar that just contained a static version string.
312
 
# Added graphics support.
313
 
#
314
 
 
315
 
if $(MAKE_LEVEL9) = yes
316
 
{
317
 
    SubDir TOP terps level9 ;
318
 
    ObjDir level9 ;
319
 
 
320
 
    SubDirCcFlags
321
 
        -DBITMAP_DECODER
322
 
        -DNEED_STRICMP_PROTOTYPE
323
 
        -Dstricmp=gln_strcasecmp
324
 
        -Dstrnicmp=gln_strncasecmp 
325
 
        ;
326
 
 
327
 
    SEARCH_SOURCE = $(SUBDIR)
328
 
        [ FDirName $(SUBDIR) Glk ] ;
329
 
 
330
 
    Main $(GARGLKPRE)level9 : bitmap.c level9.c glk.c ;
331
 
 
332
 
    APPS += $(GARGLKPRE)level9 ;
333
 
}
334
 
 
335
 
# -----------------------------------------------------------------------
336
 
#
337
 
# Magnetic 2.3
338
 
#
339
 
# Disable layered drawing, because that is slower than drawing
340
 
# all the pixels with fill_rect -- the opposite of Xglk.
341
 
#
342
 
# Delay opening the status window, because for games that don't use it
343
 
# magnetic shows a static version string only. I don't like that.
344
 
#
345
 
# Made shaded border around pictures if-defable.
346
 
#
347
 
 
348
 
if $(MAKE_MAGNETIC) = yes
349
 
{
350
 
    SubDir TOP terps magnetic ;
351
 
    ObjDir magnetic ;
352
 
 
353
 
    SubDirHdrs $(SUBDIR) Generic ;
354
 
 
355
 
    SEARCH_SOURCE =
356
 
        [ FDirName $(SUBDIR) Generic ]
357
 
        [ FDirName $(SUBDIR) Glk ] ;
358
 
 
359
 
    # SubDirCcFlags -DNOBORDER ;
360
 
 
361
 
    Main $(GARGLKPRE)magnetic : emu.c glk.c ;
362
 
 
363
 
    APPS += $(GARGLKPRE)magnetic ;
364
 
}
365
 
 
366
 
# -----------------------------------------------------------------------
367
 
#
368
 
# Nitfol 0.5 + lots of patches
369
 
#
370
 
# Define the stuff you want:
371
 
#
372
 
# DEBUGGING   Compile in the debugger.  See DEBUG for details
373
 
# SMART_TOKENISER Tries to correct typos.
374
 
# TWOS16SHORT Try to speed up some operations if 'short' is a 16 bit two's
375
 
#             complement number on your system.  Note that this might slow down
376
 
#             Pentium IIs.
377
 
# FAST_SIGNED If you're on something which does signed math much faster than
378
 
#             unsigned, define this
379
 
# FAST        Normally, nitfol does lots of tests to make sure values are in
380
 
#             range, both to alert games of unportable actions and to prevent
381
 
#             nitfol from crashing.  Defining this removes those tests, so will
382
 
#             speed up the game a bit.  Completely legal games should run
383
 
#             exactly the same with or without this flag, so if you have a
384
 
#             slow computer and you know all the games you will be running are
385
 
#             completely legal, define this.
386
 
# USE_INLINE  If your C compiler uses the keyword 'inline' to inline functions
387
 
# NO_LIBC     Cause nitfol to use its own functions rather than your libc
388
 
# NO_TICK     If you don't need glk_tick, define this (minor speed improvement)
389
 
# _GNU_SOURCE Use GNU functions (currently just canonicalize_file_name)
390
 
# _BSD_SOURCE Use BSD functions (just realpath)
391
 
# _XOPEN_SOURCE (also lets nitfol use realpath)
392
 
 
393
 
if $(MAKE_NITFOL) = yes
394
 
{
395
 
    SubDir TOP terps nitfol ;
396
 
    ObjDir nitfol ;
397
 
 
398
 
    SubDirCcFlags -DSMART_TOKENISER -DDEBUGGING -DFAST -DUSE_INLINE -DNO_TICK ;
399
 
 
400
 
    Main $(GARGLKPRE)nitfol : 
401
 
        automap.c solve.c infix.c copying.c debug.c inform.c quetzal.c
402
 
        undo.c op_call.c decode.c errmesg.c globals.c iff.c init.c 
403
 
        io.c z_io.c op_jmp.c op_math.c op_save.c op_table.c op_v6.c oplist.c
404
 
        stack.c zscii.c tokenise.c struct.c objects.c portfunc.c hash.c
405
 
        sound.c graphics.c blorb.c main.c startunix.c 
406
 
        ;
407
 
 
408
 
    APPS += $(GARGLKPRE)nitfol ;
409
 
}
410
 
 
411
 
# -----------------------------------------------------------------------
412
 
#
413
 
# SCARE 1.3.10 for Adrift games
414
 
#
415
 
 
416
 
if $(MAKE_SCARE) = yes
417
 
{
418
 
    SubDir TOP terps scare ;
419
 
    ObjDir scare ;
420
 
 
421
 
    if $(OS) = MINGW
422
 
    {
423
 
        SubDirHdrs $(TOP) support zlib ;
424
 
    }
425
 
 
426
 
    Main $(GARGLKPRE)scare :
427
 
        sctafpar.c sctaffil.c scprops.c scvars.c scexpr.c scprintf.c
428
 
        scinterf.c scparser.c sclibrar.c scrunner.c scevents.c scnpcs.c
429
 
        scobjcts.c sctasks.c screstrs.c scgamest.c scserial.c
430
 
        scresour.c scutils.c scdebug.c sclocale.c scmemos.c os_glk.c
431
 
        ;
432
 
 
433
 
    if $(OS) = MINGW
434
 
    {
435
 
        SharedLinkLibraries $(GARGLKPRE)scare : zlib1.dll ;
436
 
    }
437
 
 
438
 
    APPS += $(GARGLKPRE)scare ;
439
 
}
440
 
 
441
 
# -----------------------------------------------------------------------
442
 
#
443
 
# ScottFree 1.14 for Scott Adams games
444
 
#
445
 
 
446
 
if $(MAKE_SCOTT) = yes
447
 
{
448
 
    SubDir TOP terps scott ;
449
 
    ObjDir scott ;
450
 
 
451
 
    Main $(GARGLKPRE)scott : scott.c ;
452
 
 
453
 
    APPS += $(GARGLKPRE)scott ;
454
 
}
455