1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk2-compile" default="compile">
|
---|
3 |
|
---|
4 | <target name="compile">
|
---|
5 |
|
---|
6 | <!-- checkout -->
|
---|
7 | <antcall target="checkout-gsdl-gli" />
|
---|
8 | <antcall target="drop-in-docs"><param name="gsdl.basedir" value="${basedir}/compiled"/></antcall>
|
---|
9 | <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/compiled"/></antcall>
|
---|
10 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/compiled/gli"/></antcall>
|
---|
11 |
|
---|
12 | <!-- configure -->
|
---|
13 | <antcall target="add-static-to-configure-in"/>
|
---|
14 | <antcall target="set-environment-in-packages-configure"/>
|
---|
15 | <antcall target="run-configure"/>
|
---|
16 | <antcall target="makefiles-add-static"/>
|
---|
17 |
|
---|
18 | <!-- make common-src and reconfigure -->
|
---|
19 | <!-- this is a workaround to a problem with the gsdl build code -->
|
---|
20 | <!-- expat needs to be compiled before the perl XML Parser is configured -->
|
---|
21 | <antcall target="make-common-src"/>
|
---|
22 | <antcall target="run-configure"/>
|
---|
23 |
|
---|
24 | <!-- make -->
|
---|
25 | <antcall target="run-make"/>
|
---|
26 | <antcall target="run-make-install"/>
|
---|
27 | <antcall target="run-make-apache-for-dist"/>
|
---|
28 | <antcall target="strip-execs"/>
|
---|
29 |
|
---|
30 | <!-- gli -->
|
---|
31 | <antcall target="compile-gli">
|
---|
32 | <param name="glibasedir" value="${basedir}/compiled/gli"/>
|
---|
33 | <param name="gsdlbasedir" value="${basedir}/compiled"/>
|
---|
34 | </antcall>
|
---|
35 |
|
---|
36 | <!-- uninstaller -->
|
---|
37 | <antcall target="compile-uninstaller" /> <!-- from init -->
|
---|
38 |
|
---|
39 | <!-- build collections -->
|
---|
40 | <antcall target="build-demo-collection" />
|
---|
41 |
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | <target name="add-static-to-configure-in">
|
---|
45 | <rsr
|
---|
46 | file="${basedir}/compiled/configure.in"
|
---|
47 | pattern="^LDFLAGS=.*$"
|
---|
48 | replacement="LDFLAGS=-static" />
|
---|
49 | <exec dir="${basedir}/compiled" executable="autoconf" output="${basedir}/compiled/configure"><arg value="configure.in"/></exec>
|
---|
50 | </target>
|
---|
51 |
|
---|
52 | <target name="set-environment-in-packages-configure">
|
---|
53 | <rsr
|
---|
54 | file="${basedir}/compiled/common-src/packages/configure"
|
---|
55 | pattern="^ENVIRONMENT=.*$"
|
---|
56 | replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
57 | <rsr
|
---|
58 | file="${basedir}/compiled/build-src/packages/configure"
|
---|
59 | pattern="^ENVIRONMENT=.*$"
|
---|
60 | replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
61 | </target>
|
---|
62 |
|
---|
63 | <target name="run-configure">
|
---|
64 | <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure" failonerror="true">
|
---|
65 | <arg line="--enable-apache-httpd"/>
|
---|
66 | <env key="LDFLAGS" value="-static"/>
|
---|
67 | </exec>
|
---|
68 | </target>
|
---|
69 |
|
---|
70 | <target name="makefiles-add-static">
|
---|
71 | <rsr
|
---|
72 | file="${basedir}/compiled/build-src/packages/wv/wv-gs/Makefile"
|
---|
73 | pattern="^LDFLAGS =.*$"
|
---|
74 | replacement="LDFLAGS = -static" />
|
---|
75 | <rsr
|
---|
76 | file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile"
|
---|
77 | pattern="^LDFLAGS =.*$"
|
---|
78 | replacement="LDFLAGS = -static" />
|
---|
79 | <rsr
|
---|
80 | file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile"
|
---|
81 | pattern="^LDFLAGS =.*$"
|
---|
82 | replacement="LDFLAGS = -static" />
|
---|
83 | <rsr
|
---|
84 | file="${basedir}/compiled/build-src/packages/rtftohtml/rtftohtml_src/Makefile"
|
---|
85 | pattern="(-o rtftohtml.{2}EXEEXT.{1})"
|
---|
86 | replacement="$1 -static" />
|
---|
87 | </target>
|
---|
88 |
|
---|
89 | <target name="run-make">
|
---|
90 | <exec dir="${basedir}/compiled" executable="make" failonerror="true"/>
|
---|
91 | </target>
|
---|
92 |
|
---|
93 |
|
---|
94 | <target name="run-make-install">
|
---|
95 | <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="install"/></exec>
|
---|
96 | </target>
|
---|
97 |
|
---|
98 | <target name="run-make-apache-for-dist">
|
---|
99 | <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="apache-for-dist"/></exec>
|
---|
100 | </target>
|
---|
101 |
|
---|
102 | <target name="strip-execs">
|
---|
103 | <exec dir="${basedir}/compiled/bin/linux" executable="find" failonerror="true">
|
---|
104 | <arg line="! -name . -type f -maxdepth 1 -exec strip {} ;"/>
|
---|
105 | </exec>
|
---|
106 | </target>
|
---|
107 |
|
---|
108 | <target name="build-demo-collection">
|
---|
109 | <exec dir="${basedir}/compiled" executable="${lirk2.home}/resources/build-demo.sh" failonerror="true"/>
|
---|
110 | </target>
|
---|
111 |
|
---|
112 |
|
---|
113 | </project>
|
---|