chiark / gitweb /
boost: Disable python for now
[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_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"
9
10 termux_step_configure(){
11         return 0;
12 }
13
14 termux_step_make() {
15         return 0;
16 }
17
18 termux_step_make_install() {
19         CXXFLAGS+="  -std=c++11"
20
21         rm $TERMUX_PREFIX/lib/libboost* -f
22         rm $TERMUX_PREFIX/include/boost -rf
23
24         ./bootstrap.sh
25
26         echo "using clang : $TERMUX_ARCH : $CXX : <linkflags>-L/data/data/com.termux/files/usr/lib ; " >> project-config.jam
27
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                 --without-python \
39                 cxxflags="$CXXFLAGS" \
40                 link=shared \
41                 threading=multi \
42                 install
43 }