Package: libgtkada / 2.24.1-7

example_makefiles.patch Patch series | download
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
Description: Adapt the example Makefiles to Debian
 This patch is Debian-specific as it adjusts the build infrastructure
 of the examples to the Debian paths and project files, which are much
 simpler to use than upstream's.
Author: Olivier Henley <olivier.henley@polymtl.ca>
Forwarded: not-needed
Reviewed-By: Ludovic Brenta <lbrenta@debian.org>
Last-Update: 2010-07-08


Index: b/examples/composite_widget/composite_widget.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/composite_widget/composite_widget.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project CompositeWidget is
+	for Main use ("main.adb");
+end CompositeWidget;
Index: b/examples/composite_widget/Makefile
===================================================================
--- a/examples/composite_widget/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/composite_widget/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,8 +1,9 @@
 all:
-	gnatmake -g -gnata -gnaty -gnatwu main `gtkada-config`
+	gnatmake -Pcomposite_widget
+
 run:
 	./main
 
 clean: 
-	${RM} main *.o *.ali
+	gnat clean -Pcomposite_widget
 
Index: b/examples/display_switch/display_switch.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/display_switch/display_switch.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Display_Switch is
+	for Main use ("test_display_switch.adb");
+end Display_Switch;
Index: b/examples/display_switch/Makefile
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/display_switch/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,8 @@
+all:
+	gnatmake -Pdisplay_switch
+
+run:
+	./test_display_switch
+
+clean:
+	gnat clean -Pdisplay_switch
Index: b/examples/doublebuffer/anim2.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/doublebuffer/anim2.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Anim2 is
+	for Main use ("anim2.adb");
+end Anim2;
Index: b/examples/doublebuffer/anim.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/doublebuffer/anim.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Anim is
+	for Main use ("anim.adb");
+end Anim;
Index: b/examples/doublebuffer/main_full_test.adb
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/doublebuffer/main_full_test.adb	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,10 @@
+with Full_Test; use Full_Test;
+with Gtk.Main; use Gtk.Main;
+
+procedure Main_Full_Test is
+begin
+   Gtk.Main.Set_Locale;
+   Gtk.Main.Init;
+   Full_Test.Init;
+   Gtk.Main.Main;
+end Main_Full_Test;
Index: b/examples/doublebuffer/main_full_test.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/doublebuffer/main_full_test.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Main_Full_Test is
+	for Main use ("main_full_test.adb");
+end Main_Full_Test;
Index: b/examples/doublebuffer/Makefile
===================================================================
--- a/examples/doublebuffer/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/doublebuffer/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,16 +1,13 @@
-all: parameters anim anim2
-
-GNAT_FLAGS = -g -gnata -gnatwu
-
-parameters::
-	gnatmake $(GNAT_FLAGS) parameters `gtkada-config`
-
-anim::
-	gnatmake $(GNAT_FLAGS) anim `gtkada-config`
-
-anim2::
-	gnatmake $(GNAT_FLAGS) anim2 `gtkada-config`
-
+all:
+	gnatmake -Panim
+	gnatmake -Panim2
+	gnatmake -Pmain_full_test
+
+run:
+	./anim
+	./anim2
+	./main_full_test
 clean:
-	${RM} *.o *.ali anim parameters anim2
-
+	gnat clean -Panim
+	gnat clean -Panim2
+	gnat clean -Pmain_full_test
Index: b/examples/dynamic_cast/dynamic_cast.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/dynamic_cast/dynamic_cast.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Dynamic_Cast is
+	for Main use ("dynamic.adb");
+end Dynamic_Cast;
Index: b/examples/dynamic_cast/Makefile
===================================================================
--- a/examples/dynamic_cast/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/dynamic_cast/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,6 +1,9 @@
 all:
-	gnatmake -g -gnata -gnatwu dynamic `gtkada-config`
+	gnatmake -Pdynamic_cast
+
+run:
+	./dynamic
 
 clean:
-	${RM} *.o *.ali b~* dynamic
+	gnat clean -Pdynamic_cast
 
Index: b/examples/gtk_examples/Makefile
===================================================================
--- a/examples/gtk_examples/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/gtk_examples/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,9 +1,9 @@
-EXAMPLES=scribble
+all:
+	gnatmake -Pscribble
 
-all: ${EXAMPLES}
+run:
+	./scribble
 
-scribble::
-	gnatmake -g -gnata -gnatwu $@ `gtkada-config`
-clean::
-	${RM} *.o *.ali scribble b~*
+clean:
+	gnat clean -Pscribble
 
Index: b/examples/gtk_examples/scribble.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/gtk_examples/scribble.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Scribble is
+	for Main use ("scribble.adb");
+end Scribble;
Index: b/examples/images/README
===================================================================
--- a/examples/images/README	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/images/README	2011-10-04 00:58:44.000000000 +0200
@@ -2,6 +2,3 @@
 them on the screen. It also reacts to mouse events to provide an
 interactive selection rectangle.
 
-How to build the demos:
-  >  gnatmake -Prect
-
Index: b/examples/images/rect.adb
===================================================================
--- a/examples/images/rect.adb	2011-10-03 18:31:56.000000000 +0200
+++ b/examples/images/rect.adb	2011-10-04 00:58:44.000000000 +0200
@@ -281,7 +281,7 @@
    --  error code of course, and provide fallbacks.
    --  Note that at this point the image has not been drawn to the screen
 
-   Gdk_New_From_File (Pix, "../../testgtk/alps.png", Error);
+   Gdk_New_From_File (Pix, "Ada_Lovelace1.jpg", Error);
 
    --  Connect to the relevant signals
 
Index: b/examples/Makefile
===================================================================
--- a/examples/Makefile	2011-10-03 18:31:56.000000000 +0200
+++ b/examples/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,4 +1,4 @@
-include ../src/Makefile.common
+#include ../src/Makefile.common
 
 examples=$(prefix)/share/examples/gtkada/
 
@@ -15,7 +15,6 @@
 export PATH:=${prefix}/bin:${PATH}
 
 DIRECTORIES=base_widget \
-  calendar_combo        \
   composite_widget      \
   doublebuffer          \
   documentation         \
Index: b/examples/powergnu/file.tst
===================================================================
--- a/examples/powergnu/file.tst	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/powergnu/file.tst	2011-10-04 00:58:44.000000000 +0200
@@ -1 +1,2 @@
-<enter image name in file.tst>
+Ada_Lovelace1.jpg
+Ada_Lovelace2.jpg
Index: b/examples/powergnu/Makefile
===================================================================
--- a/examples/powergnu/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/powergnu/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,13 +1,8 @@
-CFLAGS = -g -O2 -gnata
+all:
+	gnatmake -Ppowergnu
 
-EXEC = power
-
-all: $(EXEC)
-
-power: force
-	gnatmake -m -gnatwu $(CFLAGS) $(EXEC) `gtkada-config`
-
-force:
+run:
+	./power file.tst
 
 clean:
-	rm -f *.o *.ali *~ b~* $(EXEC)
+	gnat clean -Ppowergnu
Index: b/examples/powergnu/makefile2
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/powergnu/makefile2	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,13 @@
+CFLAGS = -g -O2 -gnata
+
+EXEC = power
+
+all: $(EXEC)
+
+power: force
+	gnatmake -m -gnatwu $(CFLAGS) $(EXEC) `gtkada-config`
+
+force:
+
+clean:
+	rm -f *.o *.ali *~ b~* $(EXEC)
Index: b/examples/powergnu/powergnu.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/powergnu/powergnu.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project PowerGnu is
+	for Main use ("power.adb");
+end PowerGnu;
Index: b/examples/tooltips/Makefile
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tooltips/Makefile	2011-10-04 01:00:06.000000000 +0200
@@ -0,0 +1,8 @@
+all:
+	gnatmake -Ptooltips
+
+run:
+	./tooltips
+
+clean:
+	gnat clean -Ptooltips
Index: b/examples/tooltips/tooltips.gpr
===================================================================
--- a/examples/tooltips/tooltips.gpr	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tooltips/tooltips.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -4,9 +4,9 @@
 
    for Main use ("tooltips.adb");
 
-   package Compiler is
-      for Default_Switches ("ada") use ("-gnat05");
-   end Compiler;
+   --package Compiler is
+     -- for Default_Switches ("ada") use ("-gnat05");
+   --end Compiler;
 
 end Tooltips;
 
Index: b/examples/tutorial/gtkdial/gtkdial.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tutorial/gtkdial/gtkdial.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,7 @@
+--  The following with clause is the only thing necessary to compile and link
+--  a GtkAda application
+
+with "gtkada";
+project GtkDial is
+   for Main use ("dial_test.adb");
+end GtkDial;
Index: b/examples/tutorial/gtkdial/Makefile
===================================================================
--- a/examples/tutorial/gtkdial/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/gtkdial/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,5 +1,7 @@
-all: force
-	gnatmake -g -gnata -gnaty -gnatwu dial_test `gtkada-config`
+all:
+	gnatmake -Pgtkdial
+run:
+	./dial_test
 clean: 
-	rm -f *.o *~ *.ali dial_test
-force:
+	gnat clean -Pgtkdial
+
Index: b/examples/tutorial/helloworld/helloworld.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tutorial/helloworld/helloworld.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project HelloWorld is
+	for Main use ("hello.adb");
+end HelloWorld;
Index: b/examples/tutorial/helloworld/Makefile
===================================================================
--- a/examples/tutorial/helloworld/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/helloworld/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,5 +1,6 @@
-all: force
-	gnatmake -g -gnata -gnaty -gnatwu hello `gtkada-config`
+all:
+	gnatmake -Phelloworld
+run:
+	./hello
 clean: 
-	rm -f *.o *~ *.ali hello
-force:
+	gnat clean -Phelloworld
Index: b/examples/tutorial/helloworld2/helloworld2.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tutorial/helloworld2/helloworld2.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project HelloWorld2 is
+	for Main use ("hello2.adb");
+end HelloWorld2;
Index: b/examples/tutorial/helloworld2/Makefile
===================================================================
--- a/examples/tutorial/helloworld2/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/helloworld2/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,5 +1,8 @@
-all: force
-	gnatmake -g -gnata -gnaty -gnatwu hello2 `gtkada-config`
+all:
+	gnatmake -Phelloworld2
+
+run:
+	./hello2
+
 clean: 
-	rm -f *.o *~ *.ali hello2
-force:
+	gnat clean -Phelloworld2
Index: b/examples/tutorial/Makefile
===================================================================
--- a/examples/tutorial/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,4 +1,4 @@
-all: force
+all:
 	make -C gtkdial all
 	make -C helloworld all
 	make -C helloworld2 all
@@ -14,4 +14,3 @@
 	make -C simple clean
 	make -C table clean
 	make -C tictactoe clean
-force:
Index: b/examples/tutorial/packbox/Makefile
===================================================================
--- a/examples/tutorial/packbox/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/packbox/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,9 +1,10 @@
-all: force
-	gnatmake -g -gnata -gnatwu packbox_test `gtkada-config`
-run: all
-	./packbox_text 1
-	./packbox_text 2
-	./packbox_text 3
+all:
+	gnatmake -Ppackbox
+
+run:
+	./packbox_test 1
+	./packbox_test 2
+	./packbox_test 3
 clean: 
-	rm -f *.o *~ *.ali packbox_test
-force:
+	gnat clean -Ppackbox
+
Index: b/examples/tutorial/packbox/packbox.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tutorial/packbox/packbox.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project PackBox is
+	for Main use ("packbox_test.adb");
+end PackBox;
Index: b/examples/tutorial/simple/Makefile
===================================================================
--- a/examples/tutorial/simple/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/simple/Makefile	2011-10-04 01:00:23.000000000 +0200
@@ -1,5 +1,8 @@
-all: force
-	gnatmake -g -gnata -gnaty -gnatwu simple `gtkada-config`
-clean: 
-	rm -f *.o *~ *.ali simple
-force:
+all:
+	gnatmake -Psimple
+
+run:
+	./simple
+
+clean:
+	gnat clean -Psimple
Index: b/examples/tutorial/simple/simple.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tutorial/simple/simple.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Simple is
+	for Main use ("simple.adb");
+end Simple;
Index: b/examples/tutorial/table/Makefile
===================================================================
--- a/examples/tutorial/table/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/table/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,5 +1,8 @@
-all: force
-	gnatmake -g -gnata -gnaty -gnatwu table_test `gtkada-config`
+all:
+	gnatmake -Ptable
+
+run:
+	./table_test
+
 clean: 
-	rm -f *.o *~ *.ali table_test
-force:
+	gnat clean -Ptable
Index: b/examples/tutorial/table/table.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tutorial/table/table.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project Table is
+	for Main use ("table_test.adb");
+end Table;
Index: b/examples/tutorial/tictactoe/Makefile
===================================================================
--- a/examples/tutorial/tictactoe/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/tutorial/tictactoe/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,5 +1,8 @@
-all: force
-	gnatmake -g -gnata -gnaty -gnatwu ttt_test `gtkada-config`
+all:
+	gnatmake -Ptictactoe
+
+run:
+	./ttt_test
+
 clean: 
-	rm -f *.o *~ *.ali ttt_test
-force:
+	gnat clean -Ptictactoe
Index: b/examples/tutorial/tictactoe/tictactoe.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/tutorial/tictactoe/tictactoe.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,5 @@
+with "gtkada";
+project TicTacToe is
+	for Main use ("ttt_test.adb");
+end TicTacToe;
+
Index: b/examples/user_data/Makefile
===================================================================
--- a/examples/user_data/Makefile	2011-10-03 17:42:38.000000000 +0200
+++ b/examples/user_data/Makefile	2011-10-04 00:58:44.000000000 +0200
@@ -1,5 +1,9 @@
 all:
-	gnatmake test_handlers `gtkada-config`
+	gnatmake -Puser_data
+
+run:
+	./test_handlers
+
 clean:
-	${RM} *.o *.ali b~* test_handlers
+	gnat clean -Puser_data
 
Index: b/examples/user_data/user_data.gpr
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ b/examples/user_data/user_data.gpr	2011-10-04 00:58:44.000000000 +0200
@@ -0,0 +1,4 @@
+with "gtkada";
+project User_Data is
+	for Main use ("test_handlers.adb");
+end User_Data;