1+ #! /bin/bash
2+
3+ # Compile dependencies that cannot be acquired via the official repositories
4+
5+ mkdir -p ${INSTALL_PATH}
6+
7+ # # Compile Thrift
8+
9+ tar -xvf ${DOWNLOAD_PATH} /thrift-0.16.0.tar.gz
10+ cd thrift-0.16.0
11+ ./configure --prefix=${INSTALL_PATH} /thrift --silent --without-python \
12+ --enable-libtool-lock --enable-tutorial=no --enable-tests=no \
13+ --with-libevent --with-zlib --without-nodejs --without-lua \
14+ --without-ruby --without-csharp --without-erlang --without-perl \
15+ --without-php --without-php_extension --without-dart \
16+ --without-haskell --without-go --without-rs --without-haxe \
17+ --without-dotnetcore --without-d --without-qt4 --without-qt5 \
18+ --without-java --without-swift
19+
20+ make install -j $( nproc)
21+
22+ # # Compile build2
23+
24+ sh " ${DOWNLOAD_PATH} /install_latest_build2.sh" ${INSTALL_PATH} /build2
25+
26+ # # Compile odb, libodb, and its connectors
27+
28+ mkdir -p ${DOWNLOAD_PATH} /odb
29+ cd ${DOWNLOAD_PATH} /odb
30+ ${INSTALL_PATH} /build2/bin/bpkg create --quiet --jobs $( nproc) cc \
31+ config.cxx=g++ \
32+ config.cc.coptions=-O3 \
33+ config.bin.rpath=${INSTALL_PATH} /odb/lib \
34+ config.install.root=${INSTALL_PATH} /odb
35+
36+ # ## Getting the source
37+ ${INSTALL_PATH} /build2/bin/bpkg add https://pkg.cppget.org/1/beta --trust-yes
38+ ${INSTALL_PATH} /build2/bin/bpkg fetch --trust-yes
39+
40+ # ## Building odb
41+ ${INSTALL_PATH} /build2/bin/bpkg build odb --yes
42+ ${INSTALL_PATH} /build2/bin/bpkg build libodb --yes
43+ ${INSTALL_PATH} /build2/bin/bpkg build libodb-sqlite --yes
44+ ${INSTALL_PATH} /build2/bin/bpkg build libodb-pgsql --yes
45+ ${INSTALL_PATH} /build2/bin/bpkg install --all --recursive
0 commit comments