Ignore:
Timestamp:
2008-07-18T10:01:16+12:00 (16 years ago)
Author:
oranfry
Message:

the bulk of the work on the compile logic for mark2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/mark2/ant-scripts/compile.xml

    r16294 r16453  
    11<?xml version="1.0" encoding="utf-8" ?>
    2 <project name="lirk2-compile" default="compile">
     2<project name="mark2-compile" default="compile">
    33
    44    <target name="compile">
     
    88       
    99        <!-- configure -->
    10         <addressedcall target="add-static-to-configure-in"/>
    11         <addressedcall target="set-environment-in-packages-configure"/>
    1210        <addressedcall target="run-configure"/>
    13         <addressedcall target="makefiles-add-static"/>
     11        <addressedcall target="tweak-makefiles"/>
    1412
    1513        <!-- make -->
    1614        <addressedcall target="run-make"/>
    17         <!-- <addressedcall target="fix-wget"/> upgraded wget, mightn't need to do this now -->
    1815        <addressedcall target="run-make-install"/>
    1916        <addressedcall target="copy-library-oai"/>
     
    3532    </target>
    3633
    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=&quot;LDFLAGS=-static&quot;"/>
    47         </if>
    48     </target>
    49 
    5034    <target name="run-configure">
    5135        <if><bool><istrue value="${execute}"/></bool>
    5236            <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"/>
    5438            </exec>
    5539        </if>
    5640    </target>
    5741
    58     <target name="makefiles-add-static">
     42    <target name="tweak-makefiles">
    5943        <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" />
    6450        </if>
    6551    </target>
     
    7157    </target>
    7258
    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 
    8159    <target name="run-make-install">
    8260        <if><bool><istrue value="${execute}"/></bool>
     
    8765    <target name="copy-library-oai">
    8866        <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>
    9169        </if>
    9270    </target>
     
    9472    <target name="strip-execs">
    9573        <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 {} &#59;"/>
     74            <exec dir="${basedir}/gsdl/bin/darwin" executable="find">
     75                <arg line=". ! -name . -type f -maxdepth 1 -exec strip {} &#59;"/>
    9876            </exec>
    9977        </if>
     
    10280    <target name="build-demo-collection">
    10381        <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"/>
    10583        </if>
    10684    </target>
    10785
    108 
    109 
    11086</project>
Note: See TracChangeset for help on using the changeset viewer.