annotate configure.d @ 134:89e8b0d92f36

Ported to bob2 !!!
author David Bryant <bagnose@gmail.com>
date Thu, 02 Aug 2012 17:20:52 +0930
parents 9e1a313d8003
children be50d20643a1
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
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
19 // libssh2 and dependencies required by net
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
20 usePackage(data, "libssh2", Constraint.AtLeast, "1.2");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
21 useHeader( data, "gcrypt.h");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
22 useLibrary(data, "libgcrypt.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
23
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
24 // TAO is required by corba-tao
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
25 //useTao(data);
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
26
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
27
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
28 //
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
29 // reuse
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
30 //
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
31
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
32 usePackage(data, "libxml-2.0");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
33 usePackage(data, "libpng");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
34 usePackage(data, "freetype2");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
35 usePackage(data, "gtkmm-2.4", Constraint.AtLeast, "2.18");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
36 usePackage(data, "gtkglext-1.0");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
37 usePackage(data, "gstreamer-0.10", Constraint.AtLeast, "0.10.22");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
38 usePackage(data, "gstreamermm-0.10", Constraint.AtLeast, "0.10.1");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
39 usePackage(data, "xv");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
40 usePackage(data, "xext");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
41 usePackage(data, "xextproto");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
42 usePackage(data, "neon", Constraint.AtLeast, "0.28.2");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
43 usePackage(data, "libconfig", Constraint.AtLeast, "1.3.1");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
44 usePackage(data, "libconfig++", Constraint.AtLeast, "1.3.1");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
45
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
46 useHeader( data, "jpeglib.h");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
47 useLibrary(data, "libjpeg.so");
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 useExecutable(data, "IMAGE_MAGICK_CONVERT", ["convert"]);
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
50 useExecutable(data, "ZIP", ["zip"]);
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
51
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
52 appendBobVar(data, "CCFLAGS",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
53 ["-DGTKMM_MACRO_SHADOW_ERROR",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
54 "-DGTKMM_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
55 "-DGDKMM_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
56 "-DGLIBMM_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
57 "-DGDK_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
58 "-DG_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
59 "-DLIBSIGC_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
60 "-DGTK_DISABLE_DEPRECATED",
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
61 "-DGSEAL_ENABLE"]);
28
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
62
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
63 if (exists("/opt/acacia/ecw")) {
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
64 string[][Use] dirs;
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
65 dirs[Use.Inc] = ["/opt/acacia/ecw/include"];
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
66 dirs[Use.Lib] = ["/opt/acacia/ecw/lib"];
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
67 setProjectDirs(data, dirs);
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
68
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
69 useHeader( data, "NCSFile.h");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
70 useLibrary(data, "libNCSUtil.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
71 useLibrary(data, "libNCSCnet.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
72 useLibrary(data, "libNCSEcw.so");
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
73
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
74 appendBobVar(data, "CCFLAGS", ["-DUSE_ECW_CHARTING_RASTER_SOURCE"]);
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
75 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
76 }
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
77
1754cb773d41 Part-way through getting to compile with configure/builder.
Graham St Jack <graham.stjack@internode.on.net>
parents:
diff changeset
78
134
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
79 appendRunVar(data, "GST_PLUGIN_PATH", ["${DIST_PATH}/lib/plugins"]);
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
89e8b0d92f36 Ported to bob2 !!!
David Bryant <bagnose@gmail.com>
parents: 133
diff changeset
82 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
83 }