[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="lirk3-compile" default="compile">
|
---|
| 3 |
|
---|
| 4 | <target name="compile">
|
---|
| 5 |
|
---|
[16684] | 6 | <antcall target="checkout-greenstone3" />
|
---|
[19935] | 7 | <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="compiled"/></antcall>
|
---|
| 8 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="compiled/gli" /></antcall>
|
---|
| 9 | <ant dir="compiled" inheritAll="false">
|
---|
| 10 | <target name="prepare"/>
|
---|
| 11 | <target name="install"/>
|
---|
| 12 | <target name="dist-tidy"/>
|
---|
| 13 | <propertyset refid="forward.properties"/>
|
---|
| 14 | </ant>
|
---|
| 15 | <antcall target="insert-xml-parser"/>
|
---|
| 16 | <antcall target="insert-ant"/>
|
---|
| 17 | <antcall target="insert-documented-examples"/>
|
---|
| 18 | <antcall target="insert-imagemagick-linux-binaries"/>
|
---|
| 19 | <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
|
---|
| 20 | <antcall target="prepare-documentation"/> <!-- from rk3-targets -->
|
---|
[14982] | 21 |
|
---|
[19935] | 22 | <!-- tweakers -->
|
---|
| 23 | <!--<antcall target="tweak-configure-scripts" />
|
---|
[16736] | 24 | <antcall target="regenerate-configure"/>
|
---|
[16684] | 25 | <antcall target="tweak-makefiles" />
|
---|
| 26 | <antcall target="linux-strip-execs" />
|
---|
[19935] | 27 | -->
|
---|
[14982] | 28 |
|
---|
[17243] | 29 |
|
---|
[14982] | 30 | </target>
|
---|
| 31 |
|
---|
[19935] | 32 | <target name="insert-imagemagick-linux-binaries">
|
---|
| 33 | <delete dir="compiled/bin/linux/imagemagick"/>
|
---|
[16736] | 34 | <svn>
|
---|
[19935] | 35 | <export srcurl="${svn.root}/other-projects/trunk/linux-binaries/imagemagick" destPath="compiled/gs2build/bin/linux/imagemagick"/>
|
---|
[16736] | 36 | </svn>
|
---|
[14982] | 37 | </target>
|
---|
| 38 |
|
---|
[19935] | 39 |
|
---|
| 40 | <!--
|
---|
| 41 | <target name="ant-prepare">
|
---|
| 42 | <ant target="prepare" dir="compiled" inheritAll="false">
|
---|
| 43 | <propertyset refid="forward.properties"/>
|
---|
| 44 | </ant>
|
---|
| 45 | </target>
|
---|
| 46 |
|
---|
| 47 | <target name="ant-install">
|
---|
| 48 | <ant target="install" dir="compiled" inheritAll="false">
|
---|
| 49 | <propertyset refid="forward.properties"/>
|
---|
| 50 | </ant>
|
---|
| 51 | </target>
|
---|
| 52 |
|
---|
| 53 | <target name="ant-dist-tidy">
|
---|
| 54 | <ant target="dist-tidy" dir="compiled" inheritAll="false">
|
---|
| 55 | <propertyset refid="forward.properties"/>
|
---|
| 56 | </ant>
|
---|
| 57 | </target>
|
---|
| 58 | -->
|
---|
| 59 |
|
---|
[14982] | 60 | <target name="tweak-configure-scripts">
|
---|
[16684] | 61 | <antcall target="mgpp-add-static" />
|
---|
| 62 | <antcall target="mg-add-static" />
|
---|
| 63 | <antcall target="gs2build-add-static" />
|
---|
[14982] | 64 | </target>
|
---|
| 65 |
|
---|
[16736] | 66 | <target name="regenerate-configure">
|
---|
[17898] | 67 | <exec dir="compiled/gs2build" executable="autoconf" output="compiled/gs2build/configure">
|
---|
[16684] | 68 | <arg line="configure.in"/>
|
---|
| 69 | </exec>
|
---|
[17898] | 70 | <chmod file="compiled/gs2build/configure" perm="+x"/>
|
---|
[14982] | 71 | </target>
|
---|
| 72 |
|
---|
| 73 | <target name="tweak-makefiles">
|
---|
[16684] | 74 | <antcall target="wv-add-static" />
|
---|
| 75 | <antcall target="xlhtml-add-static" />
|
---|
| 76 | <antcall target="ppthtml-add-static" />
|
---|
| 77 | <antcall target="rtftohtml-add-static" />
|
---|
| 78 | <antcall target="gdbm-add-static" />
|
---|
[14982] | 79 | </target>
|
---|
| 80 |
|
---|
| 81 | <target name="linux-strip-execs">
|
---|
[17898] | 82 | <exec dir="compiled/gs2build/bin/linux" executable="find">
|
---|
[16684] | 83 | <arg line="! -name . -exec strip {} ;"/>
|
---|
| 84 | </exec>
|
---|
[14982] | 85 | </target>
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 | <!--
|
---|
| 89 |
|
---|
| 90 | third level targets
|
---|
| 91 |
|
---|
| 92 | -->
|
---|
| 93 |
|
---|
| 94 | <target name="mgpp-add-static">
|
---|
[17898] | 95 | <rsr file="compiled/gs2build/common-src/indexers/mgpp/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
|
---|
| 96 | <exec dir="compiled/gs2build/common-src/indexers/mgpp" executable="autoconf" output="compiled/gs2build/common-src/indexers/mgpp/configure">
|
---|
[16684] | 97 | <arg line="configure.in"/>
|
---|
| 98 | </exec>
|
---|
[14982] | 99 | </target>
|
---|
[16684] | 100 |
|
---|
[14982] | 101 | <target name="mg-add-static">
|
---|
[17898] | 102 | <rsr file="compiled/gs2build/common-src/indexers/mg/configure.in" pattern="^LDFLAGS=$" replacement="LDFLAGS=-static" />
|
---|
| 103 | <exec dir="compiled/gs2build/common-src/indexers/mg" executable="autoconf" output="compiled/gs2build/common-src/indexers/mg/configure">
|
---|
[16684] | 104 | <arg line="configure.in"/>
|
---|
| 105 | </exec>
|
---|
[14982] | 106 | </target>
|
---|
[16684] | 107 |
|
---|
[16622] | 108 | <target name="gs2build-add-static">
|
---|
[17898] | 109 | <rsr file="compiled/gs2build/common-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
[19935] | 110 | <rsr file="compiled/gs2build/build-src/packages/configure" pattern="^ENVIRONMENT=""$" replacement="ENVIRONMENT="LDFLAGS=-static"" />
|
---|
[17898] | 111 | <rsr file="compiled/gs2build/configure.in" pattern="^LDFLAGS=.*" replacement="LDFLAGS=-static" />
|
---|
[14982] | 112 | </target>
|
---|
| 113 |
|
---|
| 114 | <target name="wv-add-static">
|
---|
[17898] | 115 | <rsr file="compiled/gs2build/build-src/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
[14982] | 116 | </target>
|
---|
[16684] | 117 |
|
---|
[14982] | 118 | <target name="xlhtml-add-static">
|
---|
[17898] | 119 | <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
[14982] | 120 | </target>
|
---|
[16684] | 121 |
|
---|
[14982] | 122 | <target name="ppthtml-add-static">
|
---|
[17898] | 123 | <rsr file="compiled/gs2build/build-src/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =\s*$" replacement="LDFLAGS = -static" />
|
---|
[14982] | 124 | </target>
|
---|
[16684] | 125 |
|
---|
[14982] | 126 | <target name="rtftohtml-add-static">
|
---|
[17898] | 127 | <rsr file="compiled/gs2build/build-src/packages/rtftohtml/rtftohtml_src/Makefile" pattern="-o rtftohtml(.{2})EXEEXT(.{1})" replacement="-o rtftohtml$1EXEEXT$2 -static" />
|
---|
[14982] | 128 | </target>
|
---|
[16684] | 129 |
|
---|
[14982] | 130 | <target name="gdbm-add-static">
|
---|
[17898] | 131 | <rsr file="compiled/src/packages/javagdbm/jni/Makefile" pattern="^(GDBM_LIBS)\s*=\s*(.*)-lgdbm(.*)$" replacement="$1=$2/usr/lib/libgdbm.a$3" />
|
---|
[14982] | 132 | </target>
|
---|
| 133 |
|
---|
| 134 |
|
---|
| 135 | </project>
|
---|