Changeset 16453 for release-kits/mark2/ant-scripts/compile.xml
- Timestamp:
- 2008-07-18T10:01:16+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/mark2/ant-scripts/compile.xml
r16294 r16453 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 <project name=" lirk2-compile" default="compile">2 <project name="mark2-compile" default="compile"> 3 3 4 4 <target name="compile"> … … 8 8 9 9 <!-- configure --> 10 <addressedcall target="add-static-to-configure-in"/>11 <addressedcall target="set-environment-in-packages-configure"/>12 10 <addressedcall target="run-configure"/> 13 <addressedcall target=" makefiles-add-static"/>11 <addressedcall target="tweak-makefiles"/> 14 12 15 13 <!-- make --> 16 14 <addressedcall target="run-make"/> 17 <!-- <addressedcall target="fix-wget"/> upgraded wget, mightn't need to do this now -->18 15 <addressedcall target="run-make-install"/> 19 16 <addressedcall target="copy-library-oai"/> … … 35 32 </target> 36 33 37 <target name="add-static-to-configure-in">38 <if><bool><istrue value="${execute}"/></bool>39 <rsr file="${basedir}/gsdl/configure.in" pattern="^LDFLAGS=.*$" replacement="LDFLAGS=-static"/>40 <exec dir="${basedir}/gsdl" executable="autoconf" output="${basedir}/gsdl/configure"><arg value="configure.in"/></exec>41 </if>42 </target>43 44 <target name="set-environment-in-packages-configure">45 <if><bool><istrue value="${execute}"/></bool>46 <rsr file="${basedir}/gsdl/packages/configure" pattern="^ENVIRONMENT=.*$" replacement="ENVIRONMENT="LDFLAGS=-static""/>47 </if>48 </target>49 50 34 <target name="run-configure"> 51 35 <if><bool><istrue value="${execute}"/></bool> 52 36 <exec dir="${basedir}/gsdl" executable="${basedir}/gsdl/configure"> 53 < env key="LDFLAGS" value="-static"/>37 <arg line="--with-gdbm=${mark2.home}/linux/gdbm-1.8.3"/> 54 38 </exec> 55 39 </if> 56 40 </target> 57 41 58 <target name=" makefiles-add-static">42 <target name="tweak-makefiles"> 59 43 <if><bool><istrue value="${execute}"/></bool> 60 <rsr file="${basedir}/gsdl/packages/wv/wv-gs/Makefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static" /> 61 <rsr file="${basedir}/gsdl/packages/xlhtml/xlhtml-0.4.9.0/xlhtml/Makefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static" /> 62 <rsr file="${basedir}/gsdl/packages/xlhtml/xlhtml-0.4.9.0/ppthtml/Makefile" pattern="^LDFLAGS =.*$" replacement="LDFLAGS = -static" /> 63 <rsr file="${basedir}/gsdl/packages/rtftohtml/rtftohtml_src/Makefile" pattern="(-o rtftohtml.{2}EXEEXT.{1})" replacement="$1 -static" /> 44 <rsr file="${basedir}/gsdl/src/recpt/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/linux/gdbm-1.8.3/lib -lgdbm(.*)$" replacement="$1${mark2.home}/linux/gdbm-1.8.3/lib/libgdbm.a$2" /> 45 <rsr file="${basedir}/gsdl/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/linux/gdbm-1.8.3/lib -lgdbm(.*)$" replacement="$1${mark2.home}/linux/gdbm-1.8.3/lib/libgdbm.a$2" /> 46 <rsr file="${basedir}/gsdl/src/gdbmedit/db2txt/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/linux/gdbm-1.8.3/lib -lgdbm(.*)$" replacement="$1${mark2.home}/linux/gdbm-1.8.3/lib/libgdbm.a$2" /> 47 <rsr file="${basedir}/gsdl/src/gdbmedit/txt2db/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/linux/gdbm-1.8.3/lib -lgdbm(.*)$" replacement="$1${mark2.home}/linux/gdbm-1.8.3/lib/libgdbm.a$2" /> 48 <rsr file="${basedir}/gsdl/src/recpt/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" /> 49 <rsr file="${basedir}/gsdl/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" /> 64 50 </if> 65 51 </target> … … 71 57 </target> 72 58 73 <target name="fix-wget">74 <if><bool><istrue value="${execute}"/></bool>75 <delete file="${basedir}/gsdl/packages/wget/wget-1.9/src/wget"/>76 <exec dir="${basedir}/gsdl/packages/wget/wget-1.9/src" executable="gcc"><arg line="-O2 -Wall -Wno-implicit -o wget cmpt.o connect.o convert.o cookies.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o gen-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o gen_sslfunc.o url.o utils.o version.o -lssl -lcrypto -ldl -static"/></exec>77 </if>78 </target>79 80 81 59 <target name="run-make-install"> 82 60 <if><bool><istrue value="${execute}"/></bool> … … 87 65 <target name="copy-library-oai"> 88 66 <if><bool><istrue value="${execute}"/></bool> 89 <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/library ${basedir}/gsdl/bin/ linux/library"/></exec>90 <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/oaiserver ${basedir}/gsdl/bin/ linux/oaiserver"/></exec>67 <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/library ${basedir}/gsdl/bin/darwin/library"/></exec> 68 <exec executable="cp"><arg line="${basedir}/gsdl/cgi-bin/oaiserver ${basedir}/gsdl/bin/darwin/oaiserver"/></exec> 91 69 </if> 92 70 </target> … … 94 72 <target name="strip-execs"> 95 73 <if><bool><istrue value="${execute}"/></bool> 96 <exec dir="${basedir}/gsdl/bin/ linux" executable="find">97 <arg line=" ! -name . -type f -maxdepth 1 -exec strip {} ;"/>74 <exec dir="${basedir}/gsdl/bin/darwin" executable="find"> 75 <arg line=". ! -name . -type f -maxdepth 1 -exec strip {} ;"/> 98 76 </exec> 99 77 </if> … … 102 80 <target name="build-demo-collection"> 103 81 <if><bool><istrue value="${execute}"/></bool> 104 <exec dir="${basedir}/gsdl" executable="${ lirk2.home}/resources/build-demo.sh"/>82 <exec dir="${basedir}/gsdl" executable="${mark2.home}/resources/build-demo.sh"/> 105 83 </if> 106 84 </target> 107 85 108 109 110 86 </project>
Note:
See TracChangeset
for help on using the changeset viewer.