[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" />
|
---|
[17898] | 8 | <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/compiled"/></antcall>
|
---|
[15956] | 9 |
|
---|
[14982] | 10 | <!-- configure -->
|
---|
[16739] | 11 | <antcall target="add-static-to-configure-in"/>
|
---|
| 12 | <antcall target="set-environment-in-packages-configure"/>
|
---|
| 13 | <antcall target="run-configure"/>
|
---|
| 14 | <antcall target="makefiles-add-static"/>
|
---|
[14982] | 15 |
|
---|
[15956] | 16 | <!-- make -->
|
---|
[16739] | 17 | <antcall target="run-make"/>
|
---|
| 18 | <antcall target="run-make-install"/>
|
---|
| 19 | <antcall target="copy-library-oai"/>
|
---|
| 20 | <antcall target="strip-execs"/>
|
---|
[14982] | 21 |
|
---|
[17257] | 22 | <!-- uninstaller -->
|
---|
[17268] | 23 | <antcall target="compile-uninstaller" /> <!-- from rk2-targets -->
|
---|
[17257] | 24 |
|
---|
[15956] | 25 | <!-- build collections -->
|
---|
[16739] | 26 | <antcall target="build-demo-collection" />
|
---|
[14982] | 27 |
|
---|
| 28 | </target>
|
---|
| 29 |
|
---|
[16459] | 30 | <target name="checkout-gsdl-gli">
|
---|
[16739] | 31 | <svn>
|
---|
[17898] | 32 | <checkout url="${svn.root}/gsdl/${branch.path}" destPath="${basedir}/compiled"/>
|
---|
| 33 | <checkout url="${svn.root}/gli/${branch.path}" destPath="${basedir}/compiled/gli"/>
|
---|
[16739] | 34 | </svn>
|
---|
[14982] | 35 | </target>
|
---|
| 36 |
|
---|
[15956] | 37 | <target name="add-static-to-configure-in">
|
---|
[16739] | 38 | <rsr
|
---|
[17898] | 39 | file="${basedir}/compiled/configure.in"
|
---|
[16739] | 40 | pattern="^LDFLAGS=.*$"
|
---|
| 41 | replacement="LDFLAGS=-static" />
|
---|
[17898] | 42 | <exec dir="${basedir}/compiled" executable="autoconf" output="${basedir}/compiled/configure"><arg value="configure.in"/></exec>
|
---|
[14982] | 43 | </target>
|
---|
| 44 |
|
---|
[15956] | 45 | <target name="set-environment-in-packages-configure">
|
---|
[16739] | 46 | <rsr
|
---|
[17898] | 47 | file="${basedir}/compiled/common-src/packages/configure"
|
---|
[16739] | 48 | pattern="^ENVIRONMENT=.*$"
|
---|
| 49 | replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
| 50 | <rsr
|
---|
[17898] | 51 | file="${basedir}/compiled/build-src/packages/configure"
|
---|
[16739] | 52 | pattern="^ENVIRONMENT=.*$"
|
---|
| 53 | replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
[14982] | 54 | </target>
|
---|
| 55 |
|
---|
[15956] | 56 | <target name="run-configure">
|
---|
[18765] | 57 | <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure" failonerror="true">
|
---|
[18666] | 58 | <arg line="--enable-apache-httpd"/>
|
---|
[16739] | 59 | <env key="LDFLAGS" value="-static"/>
|
---|
| 60 | </exec>
|
---|
[14982] | 61 | </target>
|
---|
| 62 |
|
---|
[15956] | 63 | <target name="makefiles-add-static">
|
---|
[16739] | 64 | <rsr
|
---|
[17898] | 65 | file="${basedir}/compiled/build-src/packages/wv/wv-gs/Makefile"
|
---|
[16739] | 66 | pattern="^LDFLAGS =.*$"
|
---|
| 67 | replacement="LDFLAGS = -static" />
|
---|
| 68 | <rsr
|
---|
[17898] | 69 | file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile"
|
---|
[16739] | 70 | pattern="^LDFLAGS =.*$"
|
---|
| 71 | replacement="LDFLAGS = -static" />
|
---|
| 72 | <rsr
|
---|
[17898] | 73 | file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile"
|
---|
[16739] | 74 | pattern="^LDFLAGS =.*$"
|
---|
| 75 | replacement="LDFLAGS = -static" />
|
---|
| 76 | <rsr
|
---|
[17898] | 77 | file="${basedir}/compiled/build-src/packages/rtftohtml/rtftohtml_src/Makefile"
|
---|
[16739] | 78 | pattern="(-o rtftohtml.{2}EXEEXT.{1})"
|
---|
| 79 | replacement="$1 -static" />
|
---|
[14982] | 80 | </target>
|
---|
| 81 |
|
---|
[15956] | 82 | <target name="run-make">
|
---|
[18765] | 83 | <exec dir="${basedir}/compiled" executable="make" failonerror="true"/>
|
---|
[14982] | 84 | </target>
|
---|
| 85 |
|
---|
| 86 |
|
---|
[15956] | 87 | <target name="run-make-install">
|
---|
[18765] | 88 | <exec dir="${basedir}/compiled" executable="make" failonerror="true"><arg value="install"/></exec>
|
---|
[14982] | 89 | </target>
|
---|
| 90 |
|
---|
[15956] | 91 | <target name="copy-library-oai">
|
---|
[18765] | 92 | <exec executable="mv" failonerror="true"><arg line="${basedir}/compiled/cgi-bin/library.cgi ${basedir}/compiled/bin/linux/library.cgi"/></exec>
|
---|
| 93 | <exec executable="mv" failonerror="true"><arg line="${basedir}/compiled/cgi-bin/oaiserver.cgi ${basedir}/compiled/bin/linux/oaiserver.cgi"/></exec>
|
---|
[14982] | 94 | </target>
|
---|
| 95 |
|
---|
[15956] | 96 | <target name="strip-execs">
|
---|
[18765] | 97 | <exec dir="${basedir}/compiled/bin/linux" executable="find" failonerror="true">
|
---|
[16739] | 98 | <arg line="! -name . -type f -maxdepth 1 -exec strip {} ;"/>
|
---|
| 99 | </exec>
|
---|
[14982] | 100 | </target>
|
---|
| 101 |
|
---|
[15956] | 102 | <target name="build-demo-collection">
|
---|
[18765] | 103 | <exec dir="${basedir}/compiled" executable="${lirk2.home}/resources/build-demo.sh" failonerror="true"/>
|
---|
[14982] | 104 | </target>
|
---|
| 105 |
|
---|
| 106 |
|
---|
| 107 |
|
---|
| 108 | </project>
|
---|