boost: Build without libicu
[termux-packages] / packages / boost / build.sh
1 TERMUX_PKG_HOMEPAGE=https://boost.org
2 TERMUX_PKG_DESCRIPTION="Free peer-reviewed portable C++ source libraries"
3 TERMUX_PKG_VERSION=1.64.0
4 TERMUX_PKG_REVISION=1
5 TERMUX_PKG_SRCURL=http://sourceforge.net/projects/boost/files/boost/${TERMUX_PKG_VERSION}/boost_${TERMUX_PKG_VERSION//./_}.tar.bz2
6 TERMUX_PKG_SHA256=7bcc5caace97baa948931d712ea5f37038dbb1c5d89b43ad4def4ed7cb683332
7 TERMUX_PKG_FOLDERNAME="boost_${TERMUX_PKG_VERSION//./_}"
8 TERMUX_PKG_BUILD_IN_SRC=yes
9 TERMUX_PKG_DEPENDS="libbz2"
10
11 termux_step_make_install() {
12 CXXFLAGS+=" -std=c++11"
13
14 rm $TERMUX_PREFIX/lib/libboost* -f
15 rm $TERMUX_PREFIX/include/boost -rf
16
17 ./bootstrap.sh
18
19 echo "using clang : $TERMUX_ARCH : $CXX : <linkflags>-L/data/data/com.termux/files/usr/lib ; " >> project-config.jam
20
21 ./b2 target-os=android -j${TERMUX_MAKE_PROCESSES} \
22 include=/data/data/com.termux/files/usr/include \
23 toolset=clang-$TERMUX_ARCH \
24 --prefix="$TERMUX_PREFIX" \
25 -q \
26 --without-coroutine2 \
27 --without-coroutine \
28 --without-context \
29 --without-log \
30 --without-python \
31 --disable-icu \
32 cxxflags="$CXXFLAGS" \
33 link=shared \
34 threading=multi \
35 install
36 }