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