|
|
| version 1.24, 2017/05/28 21:07:29 | version 1.30, 2020/02/25 09:58:24 |
|---|---|
| Line 12 build_xml="yes" | Line 12 build_xml="yes" |
| build_gmime="" | build_gmime="" |
| build_apache="" | build_apache="" |
| build_stripped="" | build_stripped="" |
| 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" |
| Line 35 for PARAM in "$@"; do | Line 36 for PARAM in "$@"; do |
| options="$options --with-mailreceive=$project_dir/gnome" | options="$options --with-mailreceive=$project_dir/gnome" |
| build_gmime="yes" | build_gmime="yes" |
| ;; | ;; |
| "--with-system-mailreceive") | |
| printf ", with mail receiving" | |
| options="$options --with-mailreceive" | |
| ;; | |
| "--strip") | "--strip") |
| printf ", without debug information" | printf ", without debug information" |
| build_stripped="yes" | build_stripped="yes" |
| ;; | ;; |
| "--direct-download") | |
| printf ", download sources from master" | |
| direct_download="yes" | |
| ;; | |
| "--help") | "--help") |
| echo | echo |
| echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [--strip] [--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 | exit 1 |
| ;; | ;; |
| *) | *) |
| Line 74 fi | Line 83 fi |
| ############################### Support functions ################################ | ############################### Support functions ################################ |
| prepare_gz () { | prepare () { |
| cd $project_dir/src | cd $project_dir/src |
| if test ! -f "$1"; then | if test ! -f "$1"; then |
| echo "Downloading $lib (master at $2)..." | if test "$direct_download" = "yes"; then |
| $download https://www.parser.ru/off-line/download/libs/$1 | echo "Downloading $lib from $2..." |
| $download $2$1 | |
| else | |
| echo "Downloading $lib (master at $2)..." | |
| $download https://www.parser.ru/off-line/download/libs/$1 | |
| fi | |
| fi | fi |
| echo "Unpacking $lib..." | echo "Unpacking $lib..." |
| rm -rf $lib | rm -rf $lib |
| } | |
| prepare_gz () { | |
| prepare $1 $2 | |
| gunzip -c $1 | tar xf - >/dev/null | gunzip -c $1 | tar xf - >/dev/null |
| cd $lib | cd $lib |
| } | } |
| prepare_xz () { | prepare_xz () { |
| cd $project_dir/src | prepare $1 $2 |
| if test ! -f "$1"; then | |
| echo "Downloading $lib (master at $2)..." | |
| $download https://www.parser.ru/off-line/download/libs/$1 | |
| fi | |
| echo "Unpacking $lib..." | |
| rm -rf $lib | |
| xzcat $1 | tar xf - >/dev/null | xzcat $1 | tar xf - >/dev/null |
| cd $lib | cd $lib |
| } | } |
| Line 113 echo | Line 123 echo |
| mkdir src >/dev/null 2>&1 | mkdir src >/dev/null 2>&1 |
| if test ! -f "$project_dir/gc/lib/libgc.a"; then | if test ! -f "$project_dir/gc/lib/libgc.a"; then |
| lib="libatomic_ops-7.4.4" | lib="gc-8.0.4" |
| prepare_gz ${lib}.tar.gz http://www.hboehm.info/gc/gc_source/ | prepare_gz ${lib}.tar.gz http://www.hboehm.info/gc/gc_source/ |
| lib="gc-7.6.0" | |
| prepare_gz ${lib}.tar.gz http://www.hboehm.info/gc/gc_source/ | |
| mv ../libatomic_ops-7.4.4 libatomic_ops | |
| echo "Configuring $lib..." | echo "Configuring $lib..." |
| CPPFLAGS="-DUSE_MMAP -DDONT_ADD_BYTE_AT_END" \ | CPPFLAGS="-DUSE_MMAP -DDONT_ADD_BYTE_AT_END" \ |
| Line 132 if test ! -f "$project_dir/gc/lib/libgc. | Line 138 if test ! -f "$project_dir/gc/lib/libgc. |
| fi | fi |
| if test ! -f "$project_dir/pcre/lib/libpcre.a"; then | if test ! -f "$project_dir/pcre/lib/libpcre.a"; then |
| lib="pcre-8.40" | lib="pcre-8.43" |
| prepare_gz $lib.tar.gz ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ | prepare_gz $lib.tar.gz https://ftp.pcre.org/pub/pcre/ |
| 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 150 if test ! -f "$project_dir/pcre/lib/libp | Line 156 if test ! -f "$project_dir/pcre/lib/libp |
| 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.4" | lib="libxml2-2.9.9" |
| prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxml2/ | prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxml2/ |
| #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..." |
| Line 182 if test "$build_xml" = "yes" -a ! -f "$p | Line 188 if test "$build_xml" = "yes" -a ! -f "$p |
| fi | 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.29" | lib="libxslt-1.1.34" |
| prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxslt/ | prepare_gz $lib.tar.gz ftp://xmlsoft.org/libxslt/ |
| 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" \ |