1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk3-compile" default="compile">
|
---|
3 |
|
---|
4 | <target name="compile">
|
---|
5 |
|
---|
6 | <antcall target="checkout-greenstone3" />
|
---|
7 | <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall>
|
---|
8 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="compiled/gli" /></antcall>
|
---|
9 | <ant dir="compiled" inheritAll="false">
|
---|
10 | <target name="prepare"/>
|
---|
11 | <target name="install"/>
|
---|
12 | <target name="dist-tidy"/>
|
---|
13 | <propertyset refid="forward.properties"/>
|
---|
14 | </ant>
|
---|
15 | <antcall target="insert-xml-parser"/>
|
---|
16 | <antcall target="insert-ant"/>
|
---|
17 | <antcall target="insert-documented-examples"/>
|
---|
18 | <antcall target="insert-imagemagick-linux-binaries"/>
|
---|
19 | <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
|
---|
20 | <antcall target="prepare-documentation"/> <!-- from rk3-targets -->
|
---|
21 |
|
---|
22 | <!-- tweakers -->
|
---|
23 | <!--<antcall target="tweak-configure-scripts" />
|
---|
24 | <antcall target="regenerate-configure"/>
|
---|
25 | <antcall target="tweak-makefiles" />
|
---|
26 | <antcall target="linux-strip-execs" />
|
---|
27 | -->
|
---|
28 |
|
---|
29 |
|
---|
30 | </target>
|
---|
31 |
|
---|
32 | <target name="insert-imagemagick-linux-binaries">
|
---|
33 | <delete dir="compiled/bin/linux/imagemagick"/>
|
---|
34 | <svn>
|
---|
35 | <export srcurl="${svn.root}/other-projects/trunk/linux-binaries/imagemagick" destPath="compiled/gs2build/bin/linux/imagemagick"/>
|
---|
36 | </svn>
|
---|
37 | </target>
|
---|
38 |
|
---|
39 |
|
---|
40 | <!--
|
---|
41 | <target name="ant-prepare">
|
---|
42 | <ant target="prepare" dir="compiled" inheritAll="false">
|
---|
43 | <propertyset refid="forward.properties"/>
|
---|
44 | </ant>
|
---|
45 | </target>
|
---|
46 |
|
---|
47 | <target name="ant-install">
|
---|
48 | <ant target="install" dir="compiled" inheritAll="false">
|
---|
49 | <propertyset refid="forward.properties"/>
|
---|
50 | </ant>
|
---|
51 | </target>
|
---|
52 |
|
---|
53 | <target name="ant-dist-tidy">
|
---|
54 | <ant target="dist-tidy" dir="compiled" inheritAll="false">
|
---|
55 | <propertyset refid="forward.properties"/>
|
---|
56 | </ant>
|
---|
57 | </target>
|
---|
58 | -->
|
---|
59 |
|
---|
60 | <target name="tweak-configure-scripts">
|
---|
61 | <antcall target="mgpp-add-static" />
|
---|
62 | <antcall target="mg-add-static" />
|
---|
63 | <antcall target="gs2build-add-static" />
|
---|
64 | </target>
|
---|
65 |
|
---|
66 | <target name="regenerate-configure">
|
---|
67 | <exec dir="compiled/gs2build" executable="autoconf" output="compiled/gs2build/configure">
|
---|
68 | <arg line="configure.in"/>
|
---|
69 | </exec>
|
---|
70 | <chmod file="compiled/gs2build/configure" perm="+x"/>
|
---|
71 | </target>
|
---|
72 |
|
---|
73 | <target name="tweak-makefiles">
|
---|
74 | <antcall target="wv-add-static" />
|
---|
75 | <antcall target="xlhtml-add-static" />
|
---|
76 | <antcall target="ppthtml-add-static" />
|
---|
77 | <antcall target="rtftohtml-add-static" />
|
---|
78 | <antcall target="gdbm-add-static" />
|
---|
79 | </target>
|
---|
80 |
|
---|
81 | <target name="linux-strip-execs">
|
---|
82 | <exec dir="compiled/gs2build/bin/linux" executable="find">
|
---|
83 | <arg line="! -name . -exec strip {} ;"/>
|
---|
84 | </exec>
|
---|
85 | </target>
|
---|
86 |
|
---|
87 |
|
---|
88 | <!--
|
---|
89 |
|
---|
90 | third level targets
|
---|
91 |
|
---|
92 | -->
|
---|
93 |
|
---|
94 | <target name="mgpp-add-static">
|
---|
95 | <rsr file="compiled/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
|
---|
96 | <exec dir="compiled/gs2build/common-src/indexers/mgpp" executable="autoconf" output="compiled/gs2build/common-src/indexers/mgpp/configure">
|
---|
97 | <arg line="configure.in"/>
|
---|
98 | </exec>
|
---|
99 | </target>
|
---|
100 |
|
---|
101 | <target name="mg-add-static">
|
---|
102 | <rsr file="compiled/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
|
---|
103 | <exec dir="compiled/gs2build/common-src/indexers/mg" executable="autoconf" output="compiled/gs2build/common-src/indexers/mg/configure">
|
---|
104 | <arg line="configure.in"/>
|
---|
105 | </exec>
|
---|
106 | </target>
|
---|
107 |
|
---|
108 | <target name="gs2build-add-static">
|
---|
109 | <rsr file="compiled/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
110 | <rsr file="compiled/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
111 | <rsr file="compiled/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" />
|
---|
112 | </target>
|
---|
113 |
|
---|
114 | <target name="wv-add-static">
|
---|
115 | <rsr file="compiled/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
116 | </target>
|
---|
117 |
|
---|
118 | <target name="xlhtml-add-static">
|
---|
119 | <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
120 | </target>
|
---|
121 |
|
---|
122 | <target name="ppthtml-add-static">
|
---|
123 | <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
124 | </target>
|
---|
125 |
|
---|
126 | <target name="rtftohtml-add-static">
|
---|
127 | <rsr file="compiled/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" />
|
---|
128 | </target>
|
---|
129 |
|
---|
130 | <target name="gdbm-add-static">
|
---|
131 | <rsr file="compiled/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
|
---|
132 | </target>
|
---|
133 |
|
---|
134 |
|
---|
135 | </project>
|
---|