Annotation of parser3/buildall-with-xml, revision 1.7
1.2 paf 1: #!/bin/sh
2:
1.7 ! misha 3: # $Id: buildall-with-xml,v 1.6 2007/02/17 11:14:57 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..."
! 26: gunzip -c $libgc.tar.gz | tar vxf - >/dev/null
! 27: cd $libgc
1.2 paf 28: echo "Configuring libgc..."
1.3 paf 29: CPPFLAGS="-DUSE_LIBC_PRIVATES -DUSE_MMAP -DUSE_MUNMAP" \
1.2 paf 30: ./configure --prefix=$project_directory/gc --disable-threads --disable-shared --silent
31: echo "Building libgc..."
32: make
33: make install
34: fi
35:
36:
37: if test ! -f "$project_directory/gnome/lib/libxml2.a"; then
38: cd $project_directory/src
1.7 ! misha 39: libxml2="libxml2-2.6.27"
! 40: if test ! -f "$libxml2.tar.gz"; then
! 41: echo "Downloading libxml [2 lib of 3]..."
! 42: wget -c --passive-ftp ftp://xmlsoft.org/libxml2/$libxml2.tar.gz
! 43: fi
! 44: echo "Unpacking libxml2... (be patient)"
! 45: gunzip -c $libxml2.tar.gz | tar vxf - >/dev/null
! 46: cd $libxml2
1.2 paf 47: #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?] xptr[xinclude]-- needed!
48: echo "Configuring libxml..."
49: ./configure --prefix=$project_directory/gnome \
50: --without-iconv --without-threads --without-debug \
51: --without-iso8859x --without-legacy \
52: --without-pattern --without-push --without-python \
53: --without-reader --without-writer --without-readline --without-regexps \
54: --without-schemas --without-schematron \
55: --without-modules \
56: --without-zlib \
57: --disable-shared --silent
58: echo "int main(){return 0;}">testapi.c
59: echo "int main(){return 0;}">runtest.c
60: echo "Building libxml..."
61: make
62: make install
63: fi
64:
65: if test ! -f "$project_directory/gnome/lib/libxslt.a"; then
66: cd $project_directory/src
1.7 ! misha 67: libxslt="libxslt-1.1.20"
! 68: if test ! -f "$libxslt.tar.gz"; then
! 69: echo "Downloading libxslt [3 lib of 3]..."
! 70: wget -c --passive-ftp ftp://xmlsoft.org/libxslt/$libxslt.tar.gz
! 71: fi
! 72: echo "Unpacking libxslt... (be patient)"
! 73: gunzip -c $libxslt.tar.gz | tar vxf - >/dev/null
! 74: cd $libxslt
1.2 paf 75: echo "Configuring libxslt..."
76: ./configure --prefix=$project_directory/gnome \
77: --with-libxml-prefix=$project_directory/gnome \
78: --without-debug --without-debugger --without-crypto --without-plugins --disable-shared --silent
79: echo "Building libxslt..."
80: make
81: make install
82: fi
83:
84: cd $parser3_directory
85:
86: if test ! -f "Makefile"; then
87: echo "Configuring parser3..."
88: ./configure --prefix=$install_directory \
89: "--with-sendmail=$sendmail_command" \
90: --with-static-gc=$project_directory/gc/lib \
91: --with-static-xml=$project_directory/gnome \
92: --silent
93: fi
94: echo "Building parser3..."
95: make install
96: echo "DONE"
97:
98: echo
99: echo
100: echo "********************************************************************************************************"
101: echo "Now you can copy $install_directory with subdirectories"
102: echo " -Parser3 with XML support-"
103: echo "to your cgi-bin directory"
104: echo "Read more about installing Parser here:"
105: echo " http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
106: echo " http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
107: echo "********************************************************************************************************"
E-mail: