annotate configure.d @ 138:a1c2b56cb44d

Beginnings of rst doc with embedded plantuml
author David Bryant <bagnose@gmail.com>
date Sun, 30 Sep 2012 15:25:53 +0930
parents be50d20643a1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
1 //
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
2 // Configure script for the reuse repo
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
3 //
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
4
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
5 import configure_functions;
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
6
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
7 import std.process;
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
8 import std.string;
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
9 import std.file;
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
10
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
11
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
12 void main(string args[]) {
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
13 auto data = initialise(args, "doodle");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
14
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
15 //
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
16 // open
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
17 //
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
18
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
19 /*
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
20 // libssh2 and dependencies required by net
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
21 usePackage(data, "libssh2", Constraint.AtLeast, "1.2");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
22 useHeader( data, "gcrypt.h");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
23 useLibrary(data, "libgcrypt.so");
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
24 */
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
25
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
26 // TAO is required by corba-tao
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
27 //useTao(data);
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
29
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
30 //
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
31 // reuse
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
32 //
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
33
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
34 /*
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
35 usePackage(data, "libxml-2.0");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
36 usePackage(data, "libpng");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
37 usePackage(data, "freetype2");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
38 usePackage(data, "gtkmm-2.4", Constraint.AtLeast, "2.18");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
39 usePackage(data, "gtkglext-1.0");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
40 usePackage(data, "gstreamer-0.10", Constraint.AtLeast, "0.10.22");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
41 usePackage(data, "gstreamermm-0.10", Constraint.AtLeast, "0.10.1");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
42 usePackage(data, "xv");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
43 usePackage(data, "xext");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
44 usePackage(data, "xextproto");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
45 usePackage(data, "neon", Constraint.AtLeast, "0.28.2");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
46 usePackage(data, "libconfig", Constraint.AtLeast, "1.3.1");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
47 usePackage(data, "libconfig++", Constraint.AtLeast, "1.3.1");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
48
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
49 useHeader( data, "jpeglib.h");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
50 useLibrary(data, "libjpeg.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
51
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
52 useExecutable(data, "IMAGE_MAGICK_CONVERT", ["convert"]);
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
53 useExecutable(data, "ZIP", ["zip"]);
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
54 */
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
55
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
56 /*
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
57 appendBobVar(data, "CCFLAGS",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
58 ["-DGTKMM_MACRO_SHADOW_ERROR",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
59 "-DGTKMM_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
60 "-DGDKMM_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
61 "-DGLIBMM_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
62 "-DGDK_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
63 "-DG_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
64 "-DLIBSIGC_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
65 "-DGTK_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
66 "-DGSEAL_ENABLE"]);
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
67 */
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
68
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
69 /*
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
70 if (exists("/opt/acacia/ecw")) {
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
71 string[][Use] dirs;
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
72 dirs[Use.Inc] = ["/opt/acacia/ecw/include"];
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
73 dirs[Use.Lib] = ["/opt/acacia/ecw/lib"];
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
74 setProjectDirs(data, dirs);
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
75
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
76 useHeader( data, "NCSFile.h");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
77 useLibrary(data, "libNCSUtil.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
78 useLibrary(data, "libNCSCnet.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
79 useLibrary(data, "libNCSEcw.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
80
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
81 appendBobVar(data, "CCFLAGS", ["-DUSE_ECW_CHARTING_RASTER_SOURCE"]);
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
82 appendBobVar(data, "ECW_LIBRARIES", ["NCSEcw", "NCSUtil", "NCSCnet"]);
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
83 }
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
84 */
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
85
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
86
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
87 /*
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
88 appendRunVar(data, "GST_PLUGIN_PATH", ["${DIST_PATH}/lib/plugins"]);
135
be50d20643a1 Depend on only the things we need.
David Bryant <bagnose@gmail.com>
parents: 134
diff changeset
89 */
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
90
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
91
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
92 finalise(data, [/*"open"*/]);
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
93 }