[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">
|
---|
[17898] | 57 | <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure">
|
---|
[16739] | 58 | <env key="LDFLAGS" value="-static"/>
|
---|
| 59 | </exec>
|
---|
[14982] | 60 | </target>
|
---|
| 61 |
|
---|
[15956] | 62 | <target name="makefiles-add-static">
|
---|
[16739] | 63 | <rsr
|
---|
[17898] | 64 | file="${basedir}/compiled/build-src/packages/wv/wv-gs/Makefile"
|
---|
[16739] | 65 | pattern="^LDFLAGS =.*$"
|
---|
| 66 | replacement="LDFLAGS = -static" />
|
---|
| 67 | <rsr
|
---|
[17898] | 68 | file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile"
|
---|
[16739] | 69 | pattern="^LDFLAGS =.*$"
|
---|
| 70 | replacement="LDFLAGS = -static" />
|
---|
| 71 | <rsr
|
---|
[17898] | 72 | file="${basedir}/compiled/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile"
|
---|
[16739] | 73 | pattern="^LDFLAGS =.*$"
|
---|
| 74 | replacement="LDFLAGS = -static" />
|
---|
| 75 | <rsr
|
---|
[17898] | 76 | file="${basedir}/compiled/build-src/packages/rtftohtml/rtftohtml_src/Makefile"
|
---|
[16739] | 77 | pattern="(-o rtftohtml.{2}EXEEXT.{1})"
|
---|
| 78 | replacement="$1 -static" />
|
---|
[14982] | 79 | </target>
|
---|
| 80 |
|
---|
[15956] | 81 | <target name="run-make">
|
---|
[17898] | 82 | <exec dir="${basedir}/compiled" executable="make"/>
|
---|
[14982] | 83 | </target>
|
---|
| 84 |
|
---|
| 85 |
|
---|
[15956] | 86 | <target name="run-make-install">
|
---|
[17898] | 87 | <exec dir="${basedir}/compiled" executable="make"><arg value="install"/></exec>
|
---|
[14982] | 88 | </target>
|
---|
| 89 |
|
---|
[15956] | 90 | <target name="copy-library-oai">
|
---|
[17898] | 91 | <exec executable="mv"><arg line="${basedir}/compiled/cgi-bin/library ${basedir}/compiled/bin/linux/library"/></exec>
|
---|
| 92 | <exec executable="mv"><arg line="${basedir}/compiled/cgi-bin/oaiserver ${basedir}/compiled/bin/linux/oaiserver"/></exec>
|
---|
[14982] | 93 | </target>
|
---|
| 94 |
|
---|
[15956] | 95 | <target name="strip-execs">
|
---|
[17898] | 96 | <exec dir="${basedir}/compiled/bin/linux" executable="find">
|
---|
[16739] | 97 | <arg line="! -name . -type f -maxdepth 1 -exec strip {} ;"/>
|
---|
| 98 | </exec>
|
---|
[14982] | 99 | </target>
|
---|
| 100 |
|
---|
[15956] | 101 | <target name="build-demo-collection">
|
---|
[17898] | 102 | <exec dir="${basedir}/compiled" executable="${lirk2.home}/resources/build-demo.sh"/>
|
---|
[14982] | 103 | </target>
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 |
|
---|
| 107 | </project>
|
---|