--- parser3/buildall 2019/11/27 23:23:49 1.26 +++ parser3/buildall 2021/01/28 16:24:43 1.36 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: buildall,v 1.26 2019/11/27 23:23:49 moko Exp $ +# $Id: buildall,v 1.36 2021/01/28 16:24:43 moko Exp $ install_directory=$HOME/parser3install sendmail_command="/usr/sbin/sendmail -i -t -f postmaster" @@ -36,6 +36,10 @@ for PARAM in "$@"; do options="$options --with-mailreceive=$project_dir/gnome" build_gmime="yes" ;; + "--with-system-mailreceive") + printf ", with mail receiving" + options="$options --with-mailreceive" + ;; "--strip") printf ", without debug information" build_stripped="yes" @@ -46,7 +50,7 @@ for PARAM in "$@"; do ;; "--help") echo - echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [--strip] [--direct-download] [--disable-safe-mode] [other configure options ...]" + echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [--with-system-mailreceive] [--strip] [--direct-download] [--disable-safe-mode] [other configure options ...]" exit 1 ;; *) @@ -110,7 +114,7 @@ prepare_xz () { cleanup () { cd .. -# rm -rf $lib + rm -rf $lib } #################################### Building #################################### @@ -119,14 +123,19 @@ echo mkdir src >/dev/null 2>&1 if test ! -f "$project_dir/gc/lib/libgc.a"; then + lib="libatomic_ops-7.6.2" + prepare_gz ${lib}.tar.gz http://www.hboehm.info/gc/gc_source/ + lib="gc-8.0.4" prepare_gz ${lib}.tar.gz http://www.hboehm.info/gc/gc_source/ + mv ../libatomic_ops-7.6.2 libatomic_ops + echo "Configuring $lib..." CPPFLAGS="-DUSE_MMAP -DDONT_ADD_BYTE_AT_END" \ ./configure --prefix=$project_dir/gc \ - --disable-threads \ --disable-shared \ + --disable-parallel-mark \ --silent $cflags echo "Building $lib..." make install @@ -152,14 +161,13 @@ if test ! -f "$project_dir/pcre/lib/libp fi if test "$build_xml" = "yes" -a ! -f "$project_dir/gnome/lib/libxml2.a"; then - lib="libxml2-2.9.4" + lib="libxml2-2.9.9" prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxml2/ #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?], xptr[xinclude], pattern -- needed! echo "Configuring $lib..." ./configure --prefix=$project_dir/gnome \ --without-catalog \ --without-iconv \ - --without-threads \ --without-debug \ --without-iso8859x \ --without-legacy \ @@ -184,7 +192,7 @@ if test "$build_xml" = "yes" -a ! -f "$p fi if test "$build_xml" = "yes" -a ! -f "$project_dir/gnome/lib/libxslt.a"; then - lib="libxslt-1.1.29" + lib="libxslt-1.1.34" prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxslt/ echo "Configuring $lib..." CFLAGS="$CFLAGS -D__stub_clock_gettime -Dclock_gettime=choke_me" \ @@ -253,7 +261,13 @@ fi cd $parser3_dir if test ! -f "Makefile"; then echo "Configuring parser3..." - ./configure --prefix=$install_directory "--with-sendmail=$sendmail_command" $options --silent $cflags $gmime_cflags + ./configure --prefix=$install_directory \ + --sysconfdir=$install_directory/bin \ + --datadir=$install_directory/bin \ + --datarootdir="\$confdir" \ + --libdir="\$confdir/lib" \ + --with-sendmail="$sendmail_command" \ + $options $cflags $gmime_cflags fi echo "Building parser3..."