|
|
| version 1.36, 2021/01/28 16:24:43 | version 1.40, 2024/12/18 19:20:55 |
|---|---|
| Line 9 cd .. | Line 9 cd .. |
| project_dir=`pwd` | project_dir=`pwd` |
| build_xml="yes" | build_xml="yes" |
| build_pcre2="yes" | |
| build_gmime="" | build_gmime="" |
| build_apache="" | build_apache="" |
| build_stripped="" | build_stripped="" |
| Line 16 direct_download="" | Line 17 direct_download="" |
| options="--with-included-ltdl" | options="--with-included-ltdl" |
| options="$options --with-gc=$project_dir/gc/lib" | options="$options --with-gc=$project_dir/gc/lib" |
| options="$options --with-pcre=$project_dir/pcre" | |
| #options="$options --disable-stringstream" | #options="$options --disable-stringstream" |
| printf "Building statically linked parser3" | printf "Building statically linked parser3" |
| Line 26 for PARAM in "$@"; do | Line 26 for PARAM in "$@"; do |
| printf ", without xml" | printf ", without xml" |
| build_xml="" | build_xml="" |
| ;; | ;; |
| "--without-pcre2") | |
| printf ", without pcre2 library" | |
| build_pcre2="" | |
| ;; | |
| "--with-apache") | "--with-apache") |
| printf ", with apache module" | printf ", with apache module" |
| options="$options --with-apache" | options="$options --with-apache" |
| Line 50 for PARAM in "$@"; do | Line 54 for PARAM in "$@"; do |
| ;; | ;; |
| "--help") | "--help") |
| echo | echo |
| echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [--with-system-mailreceive] [--strip] [--direct-download] [--disable-safe-mode] [other configure options ...]" | echo "Usage: buildall [--without-xml] [--without-pcre2] [--with-apache] [--with-mailreceive] [--with-system-mailreceive] [--strip] [--direct-download] [--disable-safe-mode] [other configure options ...]" |
| exit 1 | exit 1 |
| ;; | ;; |
| *) | *) |
| Line 142 if test ! -f "$project_dir/gc/lib/libgc. | Line 146 if test ! -f "$project_dir/gc/lib/libgc. |
| cleanup | cleanup |
| fi | fi |
| if test "$build_pcre2" = "yes"; then | |
| options="$options --with-pcre=$project_dir/pcre2" | |
| if test ! -f "$project_dir/pcre2/lib/libpcre2-8.a"; then | |
| lib="pcre2-10.44" | |
| prepare_gz $lib.tar.gz https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.44/ | |
| echo "Configuring $lib..." | |
| ./configure --prefix="$project_dir/pcre2" \ | |
| --enable-jit \ | |
| --with-match-limit-depth=10000 \ | |
| --disable-shared \ | |
| --silent $cflags | |
| echo "Building $lib..." | |
| make install | |
| cleanup | |
| fi | |
| else | |
| options="$options --with-pcre=$project_dir/pcre" | |
| if test ! -f "$project_dir/pcre/lib/libpcre.a"; then | if test ! -f "$project_dir/pcre/lib/libpcre.a"; then |
| lib="pcre-8.43" | lib="pcre-8.45" |
| prepare_gz $lib.tar.gz https://ftp.pcre.org/pub/pcre/ | prepare_gz $lib.tar.gz https://sourceforge.net/projects/pcre/files/pcre/8.45/ |
| echo "Configuring $lib..." | echo "Configuring $lib..." |
| ./configure --prefix="$project_dir/pcre" \ | ./configure --prefix="$project_dir/pcre" \ |
| --with-match-limit-recursion=10000 \ | --with-match-limit-recursion=10000 \ |
| Line 160 if test ! -f "$project_dir/pcre/lib/libp | Line 186 if test ! -f "$project_dir/pcre/lib/libp |
| cleanup | cleanup |
| fi | fi |
| fi | |
| if test "$build_xml" = "yes" -a ! -f "$project_dir/gnome/lib/libxml2.a"; then | if test "$build_xml" = "yes" -a ! -f "$project_dir/gnome/lib/libxml2.a"; then |
| lib="libxml2-2.9.9" | lib="libxml2-2.9.9" |
| prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxml2/ | prepare_gz $lib.tar.gz http://xmlsoft.org/download/ |
| #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?], xptr[xinclude], pattern -- needed! | #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?], xptr[xinclude], pattern -- needed! |
| echo "Configuring $lib..." | echo "Configuring $lib..." |
| ./configure --prefix=$project_dir/gnome \ | ./configure --prefix=$project_dir/gnome \ |
| Line 193 fi | Line 221 fi |
| if test "$build_xml" = "yes" -a ! -f "$project_dir/gnome/lib/libxslt.a"; then | if test "$build_xml" = "yes" -a ! -f "$project_dir/gnome/lib/libxslt.a"; then |
| lib="libxslt-1.1.34" | lib="libxslt-1.1.34" |
| prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxslt/ | prepare_gz $lib.tar.gz http://xmlsoft.org/download/ |
| echo "Configuring $lib..." | echo "Configuring $lib..." |
| CFLAGS="$CFLAGS -D__stub_clock_gettime -Dclock_gettime=choke_me" \ | CFLAGS="$CFLAGS -D__stub_clock_gettime -Dclock_gettime=choke_me" \ |
| ./configure --prefix=$project_dir/gnome \ | ./configure --prefix=$project_dir/gnome \ |
| Line 213 if test "$build_gmime" = "yes"; then | Line 241 if test "$build_gmime" = "yes"; then |
| glib_ldflags="" | glib_ldflags="" |
| gmime_cflags="" | gmime_cflags="" |
| gmime_ldflags="-L$project_dir/gnome/lib/" | gmime_ldflags="-L$project_dir/gmime/lib/" |
| os=`uname` | os=`uname` |
| if test "$os" = "FreeBSD"; then | if test "$os" = "FreeBSD"; then |
| Line 222 if test "$os" = "FreeBSD"; then | Line 250 if test "$os" = "FreeBSD"; then |
| gmime_ldflags="$gmime_ldflags -L/usr/local/lib" | gmime_ldflags="$gmime_ldflags -L/usr/local/lib" |
| fi | fi |
| if test ! -f "$project_dir/gnome/lib/libglib-2.0.a"; then | if test ! -f "$project_dir/gmime/lib/libglib-2.0.a"; then |
| lib="glib-2.28.8" | lib="glib-2.28.8" |
| prepare_xz $lib.tar.xz ftp://ftp.gnome.org/pub/GNOME/sources/glib/2.28/ | prepare_xz $lib.tar.xz ftp://ftp.gnome.org/pub/GNOME/sources/glib/2.28/ |
| echo "Configuring $lib..." | echo "Configuring $lib..." |
| ./configure --prefix=$project_dir/gnome \ | ./configure --prefix=$project_dir/gmime \ |
| --enable-dtrace=no \ | --enable-dtrace=no \ |
| --enable-debug=no \ | --enable-debug=no \ |
| --enable-iconv-cache=no \ | --enable-iconv-cache=no \ |
| Line 241 if test ! -f "$project_dir/gnome/lib/lib | Line 269 if test ! -f "$project_dir/gnome/lib/lib |
| cleanup | cleanup |
| fi | fi |
| if test ! -f "$project_dir/gnome/lib/libgmime-2.4.a"; then | if test ! -f "$project_dir/gmime/lib/libgmime-2.4.a"; then |
| lib="gmime-2.4.32" | lib="gmime-2.4.32" |
| prepare_xz $lib.tar.xz ftp://ftp.gnome.org/pub/GNOME/sources/gmime/2.4/ | prepare_xz $lib.tar.xz ftp://ftp.gnome.org/pub/GNOME/sources/gmime/2.4/ |
| echo "Configuring $lib..." | echo "Configuring $lib..." |
| ./configure --prefix=$project_dir/gnome \ | ./configure --prefix=$project_dir/gmime \ |
| --disable-glibtest \ | --disable-glibtest \ |
| --disable-mono \ | --disable-mono \ |
| --disable-shared \ | --disable-shared \ |
| --enable-static \ | --enable-static \ |
| --silent $cflags $gmime_cflags LDFLAGS="$gmime_ldflags" PKG_CONFIG_PATH="$project_dir/gnome/lib/pkgconfig" | --silent $cflags $gmime_cflags LDFLAGS="$gmime_ldflags" PKG_CONFIG_PATH="$project_dir/gmime/lib/pkgconfig" |
| echo "Building $lib..." | echo "Building $lib..." |
| make install | make install |
| cleanup | cleanup |