Mercurial > projects > doodle
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 |
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 | 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 | 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 | 7 import std.process; |
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 | 10 |
11 | |
12 void main(string args[]) { | |
13 auto data = initialise(args, "doodle"); | |
14 | |
15 // | |
16 // open | |
17 // | |
18 | |
19 // libssh2 and dependencies required by net | |
20 usePackage(data, "libssh2", Constraint.AtLeast, "1.2"); | |
21 useHeader( data, "gcrypt.h"); | |
22 useLibrary(data, "libgcrypt.so"); | |
23 | |
24 // TAO is required by corba-tao | |
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 | 28 // |
29 // reuse | |
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 | 32 usePackage(data, "libxml-2.0"); |
33 usePackage(data, "libpng"); | |
34 usePackage(data, "freetype2"); | |
35 usePackage(data, "gtkmm-2.4", Constraint.AtLeast, "2.18"); | |
36 usePackage(data, "gtkglext-1.0"); | |
37 usePackage(data, "gstreamer-0.10", Constraint.AtLeast, "0.10.22"); | |
38 usePackage(data, "gstreamermm-0.10", Constraint.AtLeast, "0.10.1"); | |
39 usePackage(data, "xv"); | |
40 usePackage(data, "xext"); | |
41 usePackage(data, "xextproto"); | |
42 usePackage(data, "neon", Constraint.AtLeast, "0.28.2"); | |
43 usePackage(data, "libconfig", Constraint.AtLeast, "1.3.1"); | |
44 usePackage(data, "libconfig++", Constraint.AtLeast, "1.3.1"); | |
45 | |
46 useHeader( data, "jpeglib.h"); | |
47 useLibrary(data, "libjpeg.so"); | |
48 | |
49 useExecutable(data, "IMAGE_MAGICK_CONVERT", ["convert"]); | |
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 | 52 appendBobVar(data, "CCFLAGS", |
53 ["-DGTKMM_MACRO_SHADOW_ERROR", | |
54 "-DGTKMM_DISABLE_DEPRECATED", | |
55 "-DGDKMM_DISABLE_DEPRECATED", | |
56 "-DGLIBMM_DISABLE_DEPRECATED", | |
57 "-DGDK_DISABLE_DEPRECATED", | |
58 "-DG_DISABLE_DEPRECATED", | |
59 "-DLIBSIGC_DISABLE_DEPRECATED", | |
60 "-DGTK_DISABLE_DEPRECATED", | |
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 | 63 if (exists("/opt/acacia/ecw")) { |
64 string[][Use] dirs; | |
65 dirs[Use.Inc] = ["/opt/acacia/ecw/include"]; | |
66 dirs[Use.Lib] = ["/opt/acacia/ecw/lib"]; | |
67 setProjectDirs(data, dirs); | |
68 | |
69 useHeader( data, "NCSFile.h"); | |
70 useLibrary(data, "libNCSUtil.so"); | |
71 useLibrary(data, "libNCSCnet.so"); | |
72 useLibrary(data, "libNCSEcw.so"); | |
73 | |
74 appendBobVar(data, "CCFLAGS", ["-DUSE_ECW_CHARTING_RASTER_SOURCE"]); | |
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 | 79 appendRunVar(data, "GST_PLUGIN_PATH", ["${DIST_PATH}/lib/plugins"]); |
80 | |
81 | |
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 } |