~ubuntu-branches/ubuntu/saucy/enigma/saucy

« back to all changes in this revision

Viewing changes to .pc/debian-changes-1.10~~pre-alpha+r2210-1/src/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2012-06-19 21:47:22 UTC
  • mfrom: (5.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20120619214722-o8v3jobogn60iw68
Tags: 1.10~~pre-alpha+r2236-1
* New upstream checkout. No release on the horizon, but well playable.
* Acknowledge NMUs. Thank you!
* Drop suggest on enigma-level-previews which are not available for 1.10
* Update policy version, no changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Makefile prototype for Enigma.
3
 
#
4
 
bin_PROGRAMS = enigma
5
 
 
6
 
 
7
 
EXTRA_DIST = \
8
 
        enigma.ico \
9
 
        enigma.rc
10
 
 
11
 
 
12
 
CXXFLAGS = @CXXFLAGS@\
13
 
        -DSYSTEM_DATA_DIR=\"$(datadir)/enigma\" \
14
 
        -DDOCDIR=\"$(docdir)\" \
15
 
        -DLOCALEDIR=\"$(localedir_enigma)\" \
16
 
        -I$(top_srcdir)/lib-src/zipios++  \
17
 
        -I$(top_builddir)/lib-src/zipios++ \
18
 
        -I$(top_srcdir)/lib-src/lua \
19
 
        -I$(top_srcdir)/lib-src/enigma-core \
20
 
        -I$(top_srcdir)/lib-src/enet/include \
21
 
        -I$(top_srcdir)/lib-src \
22
 
        -I$(top_builddir)/intl @SDL_CFLAGS@
23
 
 
24
 
 
25
 
enigma_SOURCES =                \
26
 
        actors.hh               \
27
 
        actors.cc               \
28
 
        actors_internal.hh      \
29
 
        AttributeDescriptor.cc  \
30
 
        AttributeDescriptor.hh  \
31
 
        client.cc               \
32
 
        client.hh               \
33
 
        client_internal.hh      \
34
 
        DOMErrorReporter.hh     \
35
 
        DOMErrorReporter.cc     \
36
 
        DOMSchemaResolver.cc    \
37
 
        DOMSchemaResolver.hh    \
38
 
        d_models.cc             \
39
 
        d_models.hh             \
40
 
        display.hh              \
41
 
        display.cc              \
42
 
        display_internal.hh     \
43
 
        d_engine.hh             \
44
 
        enigma.cc               \
45
 
        enigma.hh               \
46
 
        errors.hh               \
47
 
        file.cc                 \
48
 
        file.hh                 \
49
 
        file_zip.cc             \
50
 
        floors.cc               \
51
 
        floors.hh               \
52
 
        fwd.hh                  \
53
 
        game.cc                 \
54
 
        game.hh                 \
55
 
        GridObject.cc           \
56
 
        GridObject.hh           \
57
 
        Inventory.cc            \
58
 
        Inventory.hh            \
59
 
        ItemHolder.hh           \
60
 
        items.cc                \
61
 
        items.hh                \
62
 
        KindDescriptor.cc       \
63
 
        KindDescriptor.hh       \
64
 
        laser.cc                \
65
 
        laser.hh                \
66
 
        LocalToXML.cc           \
67
 
        LocalToXML.hh           \
68
 
        lua.cc                  \
69
 
        lua.hh                  \
70
 
        lua-display.cc          \
71
 
        lua-display.hh          \
72
 
        lua-enigma.cc           \
73
 
        lua-enigma.hh           \
74
 
        lua-global.cc           \
75
 
        lua-global.hh           \
76
 
        lua-ecl.cc              \
77
 
        lua-ecl.hh              \
78
 
        main.cc                 \
79
 
        main.hh                 \
80
 
        MessageDescriptor.cc    \
81
 
        MessageDescriptor.hh    \
82
 
        netgame.cc              \
83
 
        netgame.hh              \
84
 
        network.cc              \
85
 
        network.hh              \
86
 
        nls.cc                  \
87
 
        nls.hh                  \
88
 
        Object.cc               \
89
 
        Object.hh               \
90
 
        ObjectValidator.cc      \
91
 
        ObjectValidator.hh      \
92
 
        oxyd.cc                 \
93
 
        oxyd.hh                 \
94
 
        oxyd_internal.hh        \
95
 
        ox_extra.cc             \
96
 
        ox_magnum.cc            \
97
 
        ox_oxyd1.cc             \
98
 
        ox_peroxyd.cc           \
99
 
        options.cc              \
100
 
        options.hh              \
101
 
        player.cc               \
102
 
        player.hh               \
103
 
        PreferenceManager.cc    \
104
 
        PreferenceManager.hh    \
105
 
        PropertyManager.cc      \
106
 
        PropertyManager.hh      \
107
 
        server.cc               \
108
 
        server.hh               \
109
 
        server_internal.hh      \
110
 
        SoundEffectManager.cc   \
111
 
        SoundEffectManager.hh   \
112
 
        SoundEngine.cc          \
113
 
        SoundEngine.hh          \
114
 
        MusicManager.cc         \
115
 
        MusicManager.hh         \
116
 
        StateObject.cc          \
117
 
        StateObject.hh          \
118
 
        StateManager.cc         \
119
 
        StateManager.hh         \
120
 
        stones.cc               \
121
 
        stones.hh               \
122
 
        stones_internal.hh      \
123
 
        Utf8ToXML.cc            \
124
 
        Utf8ToXML.hh            \
125
 
        util.cc                 \
126
 
        util.hh                 \
127
 
        utilXML.cc              \
128
 
        utilXML.hh              \
129
 
        Value.cc                \
130
 
        Value.hh                \
131
 
        video.cc                \
132
 
        video.hh                \
133
 
        WorldProxy.cc           \
134
 
        WorldProxy.hh           \
135
 
        world.cc                \
136
 
        world.hh                \
137
 
        world_internal.hh       \
138
 
        XMLtoLocal.cc           \
139
 
        XMLtoLocal.hh           \
140
 
        XMLtoUtf8.cc            \
141
 
        XMLtoUtf8.hh            \
142
 
        actors/Balls.cc         \
143
 
        actors/Balls.hh         \
144
 
        actors/BugActor.cc      \
145
 
        actors/BugActor.hh      \
146
 
        actors/HorseActor.cc    \
147
 
        actors/HorseActor.hh    \
148
 
        actors/KillerActor.cc   \
149
 
        actors/KillerActor.hh   \
150
 
        actors/Rotors.cc        \
151
 
        actors/Rotors.hh        \
152
 
        floors/BridgeFloor.cc   \
153
 
        floors/BridgeFloor.hh   \
154
 
        floors/FloodStream.cc   \
155
 
        floors/FloodStream.hh   \
156
 
        floors/ScalesFloor.cc   \
157
 
        floors/ScalesFloor.hh   \
158
 
        floors/SimpleFloors.cc  \
159
 
        floors/SimpleFloors.hh  \
160
 
        floors/SlopeFloor.cc    \
161
 
        floors/SlopeFloor.hh    \
162
 
        floors/StandardFloors.cc        \
163
 
        floors/StandardFloors.hh        \
164
 
        floors/ThiefFloor.cc    \
165
 
        floors/ThiefFloor.hh    \
166
 
        gui/ErrorMenu.cc        \
167
 
        gui/ErrorMenu.hh        \
168
 
        gui/GameMenu.cc         \
169
 
        gui/GameMenu.hh         \
170
 
        gui/HelpMenu.cc         \
171
 
        gui/HelpMenu.hh         \
172
 
        gui/InfoMenu.cc         \
173
 
        gui/InfoMenu.hh         \
174
 
        gui/LevelInspector.cc   \
175
 
        gui/LevelInspector.hh   \
176
 
        gui/LevelMenu.cc        \
177
 
        gui/LevelMenu.hh        \
178
 
        gui/LevelPackComposer.cc \
179
 
        gui/LevelPackComposer.hh \
180
 
        gui/LevelPackConfig.cc  \
181
 
        gui/LevelPackConfig.hh  \
182
 
        gui/LevelPackMenu.cc    \
183
 
        gui/LevelPackMenu.hh    \
184
 
        gui/LevelPreviewCache.cc \
185
 
        gui/LevelPreviewCache.hh \
186
 
        gui/LevelWidget.cc      \
187
 
        gui/LevelWidget.hh      \
188
 
        gui/LPGroupConfig.cc    \
189
 
        gui/LPGroupConfig.hh    \
190
 
        gui/MainMenu.cc         \
191
 
        gui/MainMenu.hh         \
192
 
        gui/Menu.cc             \
193
 
        gui/Menu.hh             \
194
 
        gui/MonospacedLabel.cc  \
195
 
        gui/MonospacedLabel.hh  \
196
 
        gui/OptionsMenu.cc      \
197
 
        gui/OptionsMenu.hh      \
198
 
        gui/ScreenshotViewer.cc \
199
 
        gui/ScreenshotViewer.hh \
200
 
        gui/SearchMenu.cc       \
201
 
        gui/SearchMenu.hh       \
202
 
        gui/TextField.cc        \
203
 
        gui/TextField.hh        \
204
 
        gui/widgets.cc          \
205
 
        gui/widgets.hh          \
206
 
        items/BagItem.cc        \
207
 
        items/BagItem.hh        \
208
 
        items/BrakeItem.cc      \
209
 
        items/BrakeItem.hh      \
210
 
        items/BlockerItem.cc    \
211
 
        items/BlockerItem.hh    \
212
 
        items/Bomb.cc           \
213
 
        items/Bomb.hh           \
214
 
        items/Bottle.cc         \
215
 
        items/Bottle.hh         \
216
 
        items/BurnableItem.cc   \
217
 
        items/BurnableItem.hh   \
218
 
        items/Coin.cc           \
219
 
        items/Coin.hh           \
220
 
        items/CompatibilityItems.cc     \
221
 
        items/CompatibilityItems.hh     \
222
 
        items/Crack.cc          \
223
 
        items/Crack.hh          \
224
 
        items/CrossItem.cc      \
225
 
        items/CrossItem.hh      \
226
 
        items/DocumentItem.cc   \
227
 
        items/DocumentItem.hh   \
228
 
        items/Drop.cc           \
229
 
        items/Drop.hh           \
230
 
        items/Dynamite.cc       \
231
 
        items/Dynamite.hh       \
232
 
        items/Extinguisher.cc   \
233
 
        items/Extinguisher.hh   \
234
 
        items/ExtraLife.cc      \
235
 
        items/ExtraLife.hh      \
236
 
        items/GlassesItem.cc    \
237
 
        items/GlassesItem.hh    \
238
 
        items/Hammer.cc         \
239
 
        items/Hammer.hh         \
240
 
        items/Landmine.cc       \
241
 
        items/Landmine.hh       \
242
 
        items/Magnet.cc         \
243
 
        items/Magnet.hh         \
244
 
        items/Meditation.cc     \
245
 
        items/Meditation.hh     \
246
 
        items/PipeItem.cc       \
247
 
        items/PipeItem.hh       \
248
 
        items/PullerItem.cc     \
249
 
        items/PullerItem.hh     \
250
 
        items/RubberbandItem.cc \
251
 
        items/RubberbandItem.hh \
252
 
        items/SeedItem.cc       \
253
 
        items/SeedItem.hh       \
254
 
        items/Sensor.cc         \
255
 
        items/Sensor.hh         \
256
 
        items/ShogunDot.cc      \
257
 
        items/ShogunDot.hh      \
258
 
        items/SimpleItems.cc    \
259
 
        items/SimpleItems.hh    \
260
 
        items/StripItem.cc      \
261
 
        items/StripItem.hh      \
262
 
        items/SurpriseItem.cc   \
263
 
        items/SurpriseItem.hh   \
264
 
        items/Sword.cc          \
265
 
        items/Sword.hh          \
266
 
        items/TrapItem.cc       \
267
 
        items/TrapItem.hh       \
268
 
        items/Trigger.cc        \
269
 
        items/Trigger.hh        \
270
 
        items/Umbrella.cc       \
271
 
        items/Umbrella.hh       \
272
 
        items/Vortex.cc         \
273
 
        items/Vortex.hh         \
274
 
        items/WormHole.cc       \
275
 
        items/WormHole.hh       \
276
 
        lev/Index.cc            \
277
 
        lev/Index.hh            \
278
 
        lev/RatingManager.cc    \
279
 
        lev/RatingManager.hh    \
280
 
        lev/PersistentIndex.cc  \
281
 
        lev/PersistentIndex.hh  \
282
 
        lev/Proxy.cc            \
283
 
        lev/Proxy.hh            \
284
 
        lev/ScoreManager.cc     \
285
 
        lev/ScoreManager.hh     \
286
 
        lev/SubProxy.cc         \
287
 
        lev/SubProxy.hh         \
288
 
        lev/VolatileIndex.cc    \
289
 
        lev/VolatileIndex.hh    \
290
 
        others/CannonBall.cc    \
291
 
        others/CannonBall.hh    \
292
 
        others/CounterGadget.cc \
293
 
        others/CounterGadget.hh \
294
 
        others/Other.cc         \
295
 
        others/Other.hh         \
296
 
        others/Rubberband.cc    \
297
 
        others/Rubberband.hh    \
298
 
        others/TimerGadget.cc   \
299
 
        others/TimerGadget.hh   \
300
 
        others/Wire.cc          \
301
 
        others/Wire.hh          \
302
 
        stones/ActorImpulseStone.cc     \
303
 
        stones/ActorImpulseStone.hh     \
304
 
        stones/BarrierStone.cc   \
305
 
        stones/BarrierStone.hh   \
306
 
        stones/BlockerStone.cc  \
307
 
        stones/BlockerStone.hh  \
308
 
        stones/BoulderStone.cc  \
309
 
        stones/BoulderStone.hh  \
310
 
        stones/BrakeStone.cc    \
311
 
        stones/BrakeStone.hh    \
312
 
        stones/BreakStone.cc    \
313
 
        stones/BreakStone.hh    \
314
 
        stones/ChameleonStone.cc        \
315
 
        stones/ChameleonStone.hh        \
316
 
        stones/ChessStone.cc    \
317
 
        stones/ChessStone.hh    \
318
 
        stones/ClusterStone.cc  \
319
 
        stones/ClusterStone.hh  \
320
 
        stones/CoinSlot.cc      \
321
 
        stones/CoinSlot.hh      \
322
 
        stones/CompatibilityStones.cc   \
323
 
        stones/CompatibilityStones.hh   \
324
 
        stones/DeathStone.cc    \
325
 
        stones/DeathStone.hh    \
326
 
        stones/DiscoStone.cc    \
327
 
        stones/DiscoStone.hh    \
328
 
        stones/DispenserStone.cc        \
329
 
        stones/DispenserStone.hh        \
330
 
        stones/Door.cc          \
331
 
        stones/Door.hh          \
332
 
        stones/FakeStone.cc     \
333
 
        stones/FakeStone.hh     \
334
 
        stones/FlatStone.cc     \
335
 
        stones/FlatStone.hh     \
336
 
        stones/BoxStone.cc      \
337
 
        stones/BoxStone.hh      \
338
 
        stones/FloppySwitch.cc  \
339
 
        stones/FloppySwitch.hh  \
340
 
        stones/FourSwitch.cc    \
341
 
        stones/FourSwitch.hh    \
342
 
        stones/GhostStone.cc    \
343
 
        stones/GhostStone.hh    \
344
 
        stones/GlassStones.cc   \
345
 
        stones/GlassStones.hh   \
346
 
        stones/GreenBrownStone.cc       \
347
 
        stones/GreenBrownStone.hh       \
348
 
        stones/IceBlock.cc      \
349
 
        stones/IceBlock.hh      \
350
 
        stones/JambStone.cc     \
351
 
        stones/JambStone.hh     \
352
 
        stones/KeySwitch.cc     \
353
 
        stones/KeySwitch.hh     \
354
 
        stones/KnightStone.cc   \
355
 
        stones/KnightStone.hh   \
356
 
        stones/LaserStone.cc    \
357
 
        stones/LaserStone.hh    \
358
 
        stones/LaserSwitch.cc   \
359
 
        stones/LaserSwitch.hh   \
360
 
        stones/LightPassengerStone.cc   \
361
 
        stones/LightPassengerStone.hh   \
362
 
        stones/MagicStone.cc    \
363
 
        stones/MagicStone.hh    \
364
 
        stones/MailStone.cc     \
365
 
        stones/MailStone.hh     \
366
 
        stones/MirrorStone.cc   \
367
 
        stones/MirrorStone.hh   \
368
 
        stones/MonoFlopStone.cc \
369
 
        stones/MonoFlopStone.hh \
370
 
        stones/OneWayStone.cc   \
371
 
        stones/OneWayStone.hh   \
372
 
        stones/OxydStone.cc     \
373
 
        stones/OxydStone.hh     \
374
 
        stones/PassageStone.cc  \
375
 
        stones/PassageStone.hh  \
376
 
        stones/PlasterStone.cc  \
377
 
        stones/PlasterStone.hh  \
378
 
        stones/PolarSwitchStone.cc      \
379
 
        stones/PolarSwitchStone.hh      \
380
 
        stones/PortalStone.cc   \
381
 
        stones/PortalStone.hh   \
382
 
        stones/PullStone.cc     \
383
 
        stones/PullStone.hh     \
384
 
        stones/PuzzleStone.cc   \
385
 
        stones/PuzzleStone.hh   \
386
 
        stones/QuakeStone.cc    \
387
 
        stones/QuakeStone.hh    \
388
 
        stones/RotatorStone.cc  \
389
 
        stones/RotatorStone.hh  \
390
 
        stones/RubberbandStone.cc       \
391
 
        stones/RubberbandStone.hh       \
392
 
        stones/ScissorsStone.cc \
393
 
        stones/ScissorsStone.hh \
394
 
        stones/ShogunStone.cc   \
395
 
        stones/ShogunStone.hh   \
396
 
        stones/SimpleStones.cc  \
397
 
        stones/SimpleStones.hh  \
398
 
        stones/SpitterStone.cc  \
399
 
        stones/SpitterStone.hh  \
400
 
        stones/StandardStones.cc        \
401
 
        stones/StandardStones.hh        \
402
 
        stones/StoneImpulse.cc  \
403
 
        stones/StoneImpulse.hh  \
404
 
        stones/SurpriseStone.cc \
405
 
        stones/SurpriseStone.hh \
406
 
        stones/SwapStone.cc     \
407
 
        stones/SwapStone.hh     \
408
 
        stones/Switch.cc        \
409
 
        stones/Switch.hh        \
410
 
        stones/ThiefStone.cc    \
411
 
        stones/ThiefStone.hh    \
412
 
        stones/TimerStone.cc    \
413
 
        stones/TimerStone.hh    \
414
 
        stones/Turnstile.cc     \
415
 
        stones/Turnstile.hh     \
416
 
        stones/VolcanoStone.cc  \
417
 
        stones/VolcanoStone.hh  \
418
 
        stones/WindowStone.cc   \
419
 
        stones/WindowStone.hh   \
420
 
        stones/YieldingStone.cc \
421
 
        stones/YieldingStone.hh
422
 
 
423
 
datadir = @datadir@
424
 
 
425
 
if MINGW32
426
 
 
427
 
  localedir_enigma := data/locale
428
 
  mingw_ldadd := enigma_ico.o -lws2_32
429
 
  enigma_ico.o: enigma.rc enigma.ico
430
 
        $(WINDRES) $(srcdir)/enigma.rc --include-dir=$(srcdir) -O coff -o enigma_ico.o
431
 
 
432
 
else # not MINGW32
433
 
 
434
 
  localedir_enigma := $(datadir)/locale
435
 
  mingw_ldadd =
436
 
 
437
 
endif
438
 
 
439
 
enigma_LDADD = \
440
 
        @LIBINTL@ \
441
 
        $(top_builddir)/lib-src/enigma-core/libecl.a \
442
 
        $(top_builddir)/lib-src/lua/liblua.a \
443
 
        $(top_builddir)/lib-src/enet/libenet.a \
444
 
        $(top_builddir)/lib-src/oxydlib/liboxyd.a \
445
 
        $(top_builddir)/lib-src/zipios++/src/libzipios.a \
446
 
        -lz \
447
 
        $(mingw_ldadd) \
448
 
        @SDL_LIBS@
449
 
 
450
 
# Rule for creating Lua interfaces from package descriptions using 'tolua'
451
 
TOLUA=@TOLUA@
452
 
.PHONY: tolua
453
 
tolua:
454
 
        @if [ "x${TOLUA}" != "x" ]; then \
455
 
                echo "Running ${TOLUA}..."; \
456
 
                ${TOLUA} -H lua-display.hh -n display -o lua-display.cc display-lua.pkg; \
457
 
                ${TOLUA} -H lua-enigma.hh -n enigma -o lua-enigma.cc enigma-lua.pkg; \
458
 
                ${TOLUA} -H lua-global.hh -n global -o lua-global.cc global-lua.pkg; \
459
 
                ${TOLUA} -H lua-ecl.hh -n px -o lua-ecl.cc ecl-lua.pkg; \
460
 
        else \
461
 
                echo "$<:0: Warning: Can't update lua interface - tolua not installed "; \
462
 
        fi
463
 
 
464
 
 
465
 
#------------------ Packaging rules for Mac OSX ------------------------
466
 
 
467
 
bundle_root := $(top_builddir)/etc/macfiles
468
 
bundle_name := $(bundle_root)/Enigma.app
469
 
# Special target to copy all needed game files to Enigma.app/Contents/Resources.
470
 
# For Mac OS X bundle.
471
 
.PHONY: bundle
472
 
bundle:
473
 
        -rm -rf $(bundle_root)
474
 
        mkdir -p $(bundle_name)/Contents/MacOS
475
 
        mkdir -p $(bundle_name)/Contents/Resources/data/
476
 
        echo "APPL????" > $(bundle_name)/Contents/PkgInfo
477
 
        cp $(top_builddir)/etc/Info.plist $(bundle_name)/Contents/
478
 
        cp $(top_builddir)/etc/enigma.icns $(bundle_name)/Contents/Resources/
479
 
        tar --exclude .svn -c -f - -C $(top_builddir)/data levels | tar xpf - -C $(bundle_name)/Contents/Resources/data
480
 
        cp $(top_builddir)/data/*.lua $(bundle_name)/Contents/Resources/data/
481
 
        cp $(top_builddir)/data/*.xml $(bundle_name)/Contents/Resources/data/
482
 
        mkdir -p $(bundle_name)/Contents/Resources/data/gfx
483
 
        cp $(top_builddir)/data/gfx/*.png $(bundle_name)/Contents/Resources/data/gfx
484
 
        mkdir -p $(bundle_name)/Contents/Resources/data/gfx/flags25x15
485
 
        cp $(top_builddir)/data/gfx/flags25x15/*.png $(bundle_name)/Contents/Resources/data/gfx/flags25x15
486
 
        mkdir -p $(bundle_name)/Contents/Resources/data/gfx32
487
 
        cp $(top_builddir)/data/gfx32/*.png $(bundle_name)/Contents/Resources/data/gfx32
488
 
        cp $(top_builddir)/data/gfx32/*.jpg $(bundle_name)/Contents/Resources/data/gfx32
489
 
        mkdir -p $(bundle_name)/Contents/Resources/data/gfx40
490
 
        cp $(top_builddir)/data/gfx40/*.png $(bundle_name)/Contents/Resources/data/gfx40
491
 
        cp $(top_builddir)/data/gfx40/*.jpg $(bundle_name)/Contents/Resources/data/gfx40
492
 
        mkdir -p $(bundle_name)/Contents/Resources/data/gfx48
493
 
        cp $(top_builddir)/data/gfx48/*.png $(bundle_name)/Contents/Resources/data/gfx48
494
 
        cp $(top_builddir)/data/gfx48/*.jpg $(bundle_name)/Contents/Resources/data/gfx48
495
 
        mkdir -p $(bundle_name)/Contents/Resources/data/schemas
496
 
        cp $(top_builddir)/data/schemas/*.xml $(bundle_name)/Contents/Resources/data/schemas
497
 
        cp $(top_builddir)/data/schemas/*.xsd $(bundle_name)/Contents/Resources/data/schemas
498
 
        mkdir -p $(bundle_name)/Contents/Resources/data/music
499
 
        mkdir -p $(bundle_name)/Contents/Resources/data/music/menu
500
 
        cp $(top_builddir)/data/music/menu/*.s3m $(bundle_name)/Contents/Resources/data/music/menu
501
 
        cp $(top_builddir)/data/music/menu/*.ogg $(bundle_name)/Contents/Resources/data/music/menu
502
 
        mkdir -p $(bundle_name)/Contents/Resources/data/soundsets
503
 
        mkdir -p $(bundle_name)/Contents/Resources/data/soundsets/enigma
504
 
        cp $(top_builddir)/data/soundsets/enigma/*.wav $(bundle_name)/Contents/Resources/data/soundsets/enigma
505
 
        mkdir -p $(bundle_name)/Contents/Resources/data/fonts
506
 
        cp $(top_builddir)/data/fonts/*.png $(bundle_name)/Contents/Resources/data/fonts
507
 
        cp $(top_builddir)/data/fonts/*.bmf $(bundle_name)/Contents/Resources/data/fonts
508
 
        cp $(top_builddir)/data/fonts/*.ttf $(bundle_name)/Contents/Resources/data/fonts
509
 
        mkdir -p $(bundle_name)/Contents/Frameworks
510
 
        cp -R /Library/Frameworks/SDL.framework $(bundle_name)/Contents/Frameworks/
511
 
        cp -R /Library/Frameworks/SDL_image.framework $(bundle_name)/Contents/Frameworks/
512
 
        cp -R /Library/Frameworks/SDL_mixer.framework $(bundle_name)/Contents/Frameworks/
513
 
        cp -R /Library/Frameworks/SDL_ttf.framework $(bundle_name)/Contents/Frameworks/
514
 
        for cat in $(ALL_LINGUAS); do \
515
 
          dir=$(bundle_name)/Contents/Resources/locale/$$cat/LC_MESSAGES; \
516
 
          mkdir -p $$dir; \
517
 
          echo "installing $$cat as $$dir/enigma.mo"; \
518
 
          cp $(top_builddir)/po/$$cat.gmo $$dir/enigma.mo; \
519
 
        done
520
 
 
521
 
# Special target to copy the binary to Enigma.app/Contents/MacOS.
522
 
.PHONY: bundle-fw
523
 
bundle-fw: enigma-fw-mosx
524
 
        cp enigma-fw $(bundle_name)/Contents/MacOS/enigma
525
 
        strip $(bundle_name)/Contents/MacOS/enigma
526
 
 
527
 
# Special target to copy the doc files to the MacOS dmg staging area
528
 
bundle_doc := $(bundle_name)/Contents/Resources/doc
529
 
.PHONY: bundle-doc
530
 
bundle-doc:
531
 
        -rm -rf $(bundle_doc)
532
 
        mkdir -p $(bundle_doc)/images/flags25x15
533
 
        mkdir -p $(bundle_doc)/reference/images
534
 
        mkdir -p $(bundle_doc)/manual/images
535
 
        cp $(top_builddir)/README $(bundle_doc)/
536
 
        cp $(top_builddir)/COPYING $(bundle_doc)/
537
 
        cp $(top_builddir)/CHANGES $(bundle_doc)/
538
 
        cp $(top_builddir)/ACKNOWLEDGEMENTS $(bundle_doc)/
539
 
        cp $(top_builddir)/etc/README-SDL.txt $(bundle_doc)/
540
 
        cp $(top_builddir)/doc/index.html $(bundle_doc)/
541
 
        mkalias -r $(bundle_doc)/index.html $(bundle_root)/EnigmaDocs.html
542
 
        cp $(top_builddir)/doc/gpl.txt $(bundle_doc)/
543
 
        cp $(top_builddir)/doc/lgpl.txt $(bundle_doc)/
544
 
        cp $(top_builddir)/doc/images/enigma.css $(bundle_doc)/images/
545
 
        cp $(top_builddir)/doc/images/nav_enigma.gif $(bundle_doc)/images/
546
 
        cp $(top_builddir)/doc/images/nav_cornerul.gif $(bundle_doc)/images/
547
 
        cp $(top_builddir)/doc/images/nav_cornerur.gif $(bundle_doc)/images/
548
 
        cp $(top_builddir)/doc/images/favicon.png $(bundle_doc)/images/
549
 
        cp $(top_builddir)/doc/images/menu_bg.jpg $(bundle_doc)/images/
550
 
        cp $(top_builddir)/doc/images/flags25x15/*.png $(bundle_doc)/images/flags25x15/
551
 
        cp $(top_builddir)/doc/reference/ant_lua.txt $(bundle_doc)/reference/
552
 
        cp $(top_builddir)/doc/reference/sounds.txt $(bundle_doc)/reference/
553
 
        cp $(top_builddir)/doc/reference/soundset.lua $(bundle_doc)/reference/
554
 
        cp $(top_builddir)/doc/reference/lua2xml $(bundle_doc)/reference/
555
 
        cp $(top_builddir)/doc/reference/xml2lua $(bundle_doc)/reference/
556
 
        cp $(top_builddir)/doc/manual/images/*.png $(bundle_doc)/manual/images/
557
 
        cp $(top_builddir)/doc/manual/*.html $(bundle_doc)/manual/
558
 
        cp $(top_builddir)/doc/reference/images/*.png $(bundle_doc)/reference/images/
559
 
        cp $(top_builddir)/doc/reference/*.html $(bundle_doc)/reference/
560
 
 
561
 
# Special target to create a binary linked with Mac OS X frameworks
562
 
# note this assumes that xercesc and libpng are installed in same directory as the SDL libraries.
563
 
static_prefix := `$(SDL_CONFIG) --prefix`
564
 
.PHONY: enigma-fw-mosx
565
 
enigma-fw-mosx: $(enigma_OBJECTS) $(enigma_DEPENDENCIES)
566
 
        $(CXX) $(LDFLAGS) -o enigma-fw $(enigma_OBJECTS) $(enigma_DEPENDENCIES) $(static_prefix)/lib/libintl.a /usr/lib/libiconv.dylib /usr/lib/libcurl.dylib $(static_prefix)/lib/libxerces-c.a -L$(static_prefix)/lib -lsdlmain -lz -framework SDL -framework SDL_image -framework SDL_mixer -framework Cocoa -framework OpenGL -framework SDL_ttf $(static_prefix)/lib/libpng.a 
567
 
 
568
 
# Special target to make a disk image of the bundled app
569
 
.PHONY: bundle-dmg
570
 
bundle-dmg:
571
 
        hdiutil create  -ov -srcfolder $(bundle_root) -volname Enigma -imagekey zlib-level=6 $(top_builddir)/etc/enigma.dmg
572