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