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