Annotation of parser3/buildall-with-xml, revision 1.14
1.2 paf 1: #!/bin/sh
2:
1.14 ! misha 3: # $Id: buildall-with-xml,v 1.13 2007/08/06 16:52:00 misha Exp $
1.2 paf 4:
5: install_directory=$HOME/parser3install
6: sendmail_command="/usr/sbin/sendmail -i -t -f postmaster"
7:
8: echo "buildall-with-xml"
9: echo "Script author: Alexander Petrosian <paf@design.ru> (http://paf.design.ru)"
10: echo
11: echo "Building..."
12:
13: parser3_directory=`pwd`
14: cd ..
15: project_directory=`pwd`
16: mkdir src >/dev/null 2>&1
17:
18: if test ! -f "$project_directory/gc/lib/libgc.a"; then
19: cd $project_directory/src
1.7 misha 20: libgc="gc6.8"
21: if test ! -f "$libgc.tar.gz"; then
22: echo "Downloading libgc [1 lib of 3]..."
23: wget -c http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$libgc.tar.gz
24: fi
25: echo "Unpacking gc..."
1.9 misha 26: rm -rf $libgc
1.7 misha 27: gunzip -c $libgc.tar.gz | tar vxf - >/dev/null
28: cd $libgc
1.2 paf 29: echo "Configuring libgc..."
1.3 paf 30: CPPFLAGS="-DUSE_LIBC_PRIVATES -DUSE_MMAP -DUSE_MUNMAP" \
1.14 ! misha 31: ./configure --prefix=$project_directory/gc \
! 32: --disable-threads \
! 33: --disable-shared \
! 34: --silent
1.2 paf 35: echo "Building libgc..."
36: make
37: make install
1.12 misha 38: # rm -rf $libgc
1.2 paf 39: fi
40:
41:
42: if test ! -f "$project_directory/gnome/lib/libxml2.a"; then
43: cd $project_directory/src
1.13 misha 44: libxml2="libxml2-2.6.29"
1.7 misha 45: if test ! -f "$libxml2.tar.gz"; then
46: echo "Downloading libxml [2 lib of 3]..."
47: wget -c --passive-ftp ftp://xmlsoft.org/libxml2/$libxml2.tar.gz
48: fi
49: echo "Unpacking libxml2... (be patient)"
1.8 misha 50: rm -rf $libxml2
1.7 misha 51: gunzip -c $libxml2.tar.gz | tar vxf - >/dev/null
52: cd $libxml2
1.14 ! misha 53: #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?], xptr[xinclude], pattern -- needed!
1.2 paf 54: echo "Configuring libxml..."
55: ./configure --prefix=$project_directory/gnome \
1.14 ! misha 56: --without-iconv \
! 57: --without-threads \
! 58: --without-debug \
! 59: --without-iso8859x \
! 60: --without-legacy \
! 61: --without-push \
! 62: --without-python \
! 63: --without-reader \
! 64: --without-writer \
! 65: --without-readline \
! 66: --without-regexps \
! 67: --without-schemas \
! 68: --without-schematron \
! 69: --without-modules \
! 70: --without-ftp \
! 71: --without-http \
! 72: --without-docbook \
1.2 paf 73: --without-zlib \
1.14 ! misha 74: --disable-shared \
! 75: --silent
1.2 paf 76: echo "int main(){return 0;}">testapi.c
77: echo "int main(){return 0;}">runtest.c
78: echo "Building libxml..."
79: make
80: make install
1.12 misha 81: # rm -rf $libxml2
1.2 paf 82: fi
83:
84: if test ! -f "$project_directory/gnome/lib/libxslt.a"; then
85: cd $project_directory/src
1.13 misha 86: libxslt="libxslt-1.1.21"
1.7 misha 87: if test ! -f "$libxslt.tar.gz"; then
88: echo "Downloading libxslt [3 lib of 3]..."
89: wget -c --passive-ftp ftp://xmlsoft.org/libxslt/$libxslt.tar.gz
90: fi
91: echo "Unpacking libxslt... (be patient)"
1.8 misha 92: rm -rf $libxslt
1.7 misha 93: gunzip -c $libxslt.tar.gz | tar vxf - >/dev/null
94: cd $libxslt
1.2 paf 95: echo "Configuring libxslt..."
96: ./configure --prefix=$project_directory/gnome \
97: --with-libxml-prefix=$project_directory/gnome \
1.14 ! misha 98: --without-debug \
! 99: --without-debugger \
! 100: --without-crypto \
! 101: --without-plugins \
! 102: --disable-shared \
! 103: --silent
1.2 paf 104: echo "Building libxslt..."
105: make
106: make install
1.12 misha 107: # rm -rf $libxslt
1.2 paf 108: fi
109:
110: cd $parser3_directory
111:
112: if test ! -f "Makefile"; then
113: echo "Configuring parser3..."
114: ./configure --prefix=$install_directory \
115: "--with-sendmail=$sendmail_command" \
116: --with-static-gc=$project_directory/gc/lib \
117: --with-static-xml=$project_directory/gnome \
1.10 misha 118: # --disable-safe-mode \
1.12 misha 119: # --with-dynamic-stdcpp \
1.2 paf 120: --silent
121: fi
122: echo "Building parser3..."
123: make install
124: echo "DONE"
125:
126: echo
127: echo
128: echo "********************************************************************************************************"
129: echo "Now you can copy $install_directory with subdirectories"
130: echo " -Parser3 with XML support-"
131: echo "to your cgi-bin directory"
132: echo "Read more about installing Parser here:"
133: echo " http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
134: echo " http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
135: echo "********************************************************************************************************"
E-mail: