[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[16453] | 2 | <project name="mark2-compile" default="compile">
|
---|
[14982] | 3 |
|
---|
| 4 | <target name="compile">
|
---|
| 5 |
|
---|
| 6 | <!-- checkout -->
|
---|
[16741] | 7 | <antcall target="checkout-gsdl-gli" />
|
---|
[18929] | 8 | <antcall target="drop-in-docs"><param name="gsdl.basedir" value="${basedir}/compiled"/></antcall>
|
---|
[17898] | 9 | <antcall target="gsdl-set-version-numbers"><param name="gsdl.basedir" value="${basedir}/compiled"/></antcall>
|
---|
[18929] | 10 | <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/compiled/gli"/></antcall>
|
---|
[15956] | 11 |
|
---|
[14982] | 12 | <!-- configure -->
|
---|
[16741] | 13 | <antcall target="run-configure"/>
|
---|
| 14 | <antcall target="tweak-makefiles"/>
|
---|
[14982] | 15 |
|
---|
[18929] | 16 | <!-- make common-src and reconfigure -->
|
---|
| 17 | <!-- this is a workaround to a problem with the gsdl build code -->
|
---|
| 18 | <!-- expat needs to be compiled before the perl XML Parser is configured -->
|
---|
| 19 | <antcall target="make-common-src"/>
|
---|
| 20 | <antcall target="run-configure"/>
|
---|
| 21 |
|
---|
[15956] | 22 | <!-- make -->
|
---|
[16741] | 23 | <antcall target="run-make"/>
|
---|
| 24 | <antcall target="run-make-install"/>
|
---|
[18854] | 25 | <antcall target="run-make-apache-for-dist"/>
|
---|
[16741] | 26 | <antcall target="strip-execs"/>
|
---|
[14982] | 27 |
|
---|
[18929] | 28 | <!-- gli -->
|
---|
| 29 | <antcall target="compile-gli">
|
---|
| 30 | <param name="script.format" value="sh"/>
|
---|
| 31 | <param name="glibasedir" value="${basedir}/compiled/gli"/>
|
---|
| 32 | <param name="gsdlbasedir" value="${basedir}/compiled"/>
|
---|
| 33 | </antcall>
|
---|
| 34 |
|
---|
[17257] | 35 | <!-- uninstaller -->
|
---|
[17268] | 36 | <antcall target="compile-uninstaller" /> <!-- from rk2-targets -->
|
---|
[17257] | 37 |
|
---|
[15956] | 38 | <!-- build collections -->
|
---|
[16741] | 39 | <antcall target="build-demo-collection" />
|
---|
[14982] | 40 |
|
---|
| 41 | </target>
|
---|
| 42 |
|
---|
[15956] | 43 | <target name="run-configure">
|
---|
[17898] | 44 | <exec dir="${basedir}/compiled" executable="${basedir}/compiled/configure">
|
---|
[18666] | 45 | <arg value="--with-gdbm=${mark2.home}/mac/${processor}/gdbm"/>
|
---|
| 46 | <arg value="--enable-apache-httpd"/>
|
---|
[16741] | 47 | </exec>
|
---|
[14982] | 48 | </target>
|
---|
| 49 |
|
---|
[16453] | 50 | <target name="tweak-makefiles">
|
---|
[17898] | 51 | <rsr file="${basedir}/compiled/runtime-src/src/recpt/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
|
---|
| 52 | <rsr file="${basedir}/compiled/runtime-src/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
|
---|
| 53 | <rsr file="${basedir}/compiled/common-src/src/gdbmedit/db2txt/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
|
---|
| 54 | <rsr file="${basedir}/compiled/common-src/src/gdbmedit/txt2db/Makefile" pattern="^(LIBS =.*)-L${mark2.home}/mac/${processor}/gdbm/lib -lgdbm(.*)$" replacement="$1${mark2.home}/mac/${processor}/gdbm/lib/libgdbm.a$2" />
|
---|
| 55 | <rsr file="${basedir}/compiled/runtime-src/src/recpt/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" />
|
---|
| 56 | <rsr file="${basedir}/compiled/runtime-src/src/oaiservr/Makefile" pattern="^(LIBS =.*)-L(.)\(PACKAGES_DIR\)/expat/lib -lexpat(.*)$" replacement="$1$2(PACKAGES_DIR)/expat/lib/libexpat.a$3" />
|
---|
[14982] | 57 | </target>
|
---|
| 58 |
|
---|
[15956] | 59 | <target name="run-make">
|
---|
[17898] | 60 | <exec dir="${basedir}/compiled" executable="make"/>
|
---|
[14982] | 61 | </target>
|
---|
| 62 |
|
---|
[15956] | 63 | <target name="run-make-install">
|
---|
[17898] | 64 | <exec dir="${basedir}/compiled" executable="make"><arg value="install"/></exec>
|
---|
[14982] | 65 | </target>
|
---|
| 66 |
|
---|
[18854] | 67 | <target name="run-make-apache-for-dist">
|
---|
| 68 | <exec dir="${basedir}/compiled" executable="make"><arg value="apache-for-dist"/></exec>
|
---|
| 69 | </target>
|
---|
| 70 |
|
---|
[15956] | 71 | <target name="strip-execs">
|
---|
[17898] | 72 | <exec dir="${basedir}/compiled/bin/darwin" executable="find">
|
---|
[16741] | 73 | <arg line=". ! -name . -type f -maxdepth 1 -exec strip {} ;"/>
|
---|
| 74 | </exec>
|
---|
[14982] | 75 | </target>
|
---|
| 76 |
|
---|
[15956] | 77 | <target name="build-demo-collection">
|
---|
[17898] | 78 | <exec dir="${basedir}/compiled" executable="${mark2.home}/resources/build-demo.sh"/>
|
---|
[14982] | 79 | </target>
|
---|
| 80 |
|
---|
| 81 | </project>
|
---|