2017-05-04 00:00:01 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://boost.org
|
2017-05-04 22:05:09 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Free peer-reviewed portable C++ source libraries"
|
2017-05-04 00:00:01 +02:00
|
|
|
TERMUX_PKG_VERSION=1.64.0
|
2017-07-14 00:23:37 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2017-05-07 00:39:50 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://sourceforge.net/projects/boost/files/boost/${TERMUX_PKG_VERSION}/boost_${TERMUX_PKG_VERSION//./_}.tar.bz2
|
2017-05-04 00:00:01 +02:00
|
|
|
TERMUX_PKG_SHA256=7bcc5caace97baa948931d712ea5f37038dbb1c5d89b43ad4def4ed7cb683332
|
2017-05-07 00:39:50 +02:00
|
|
|
TERMUX_PKG_FOLDERNAME="boost_${TERMUX_PKG_VERSION//./_}"
|
2017-05-04 00:00:01 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
2017-05-07 00:39:50 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libbz2"
|
2017-05-04 22:05:09 +02:00
|
|
|
|
2017-05-04 00:00:01 +02:00
|
|
|
termux_step_make_install() {
|
|
|
|
rm $TERMUX_PREFIX/lib/libboost* -f
|
|
|
|
rm $TERMUX_PREFIX/include/boost -rf
|
2017-05-04 22:05:09 +02:00
|
|
|
|
2017-05-04 00:00:01 +02:00
|
|
|
./bootstrap.sh
|
2017-05-04 22:05:09 +02:00
|
|
|
|
2017-05-04 00:00:01 +02:00
|
|
|
echo "using clang : $TERMUX_ARCH : $CXX : <linkflags>-L/data/data/com.termux/files/usr/lib ; " >> project-config.jam
|
2017-05-04 22:05:09 +02:00
|
|
|
|
2017-05-07 00:39:50 +02:00
|
|
|
./b2 target-os=android -j${TERMUX_MAKE_PROCESSES} \
|
2017-05-04 00:00:01 +02:00
|
|
|
include=/data/data/com.termux/files/usr/include \
|
|
|
|
toolset=clang-$TERMUX_ARCH \
|
|
|
|
--prefix="$TERMUX_PREFIX" \
|
|
|
|
-q \
|
|
|
|
--without-coroutine2 \
|
|
|
|
--without-coroutine \
|
|
|
|
--without-context \
|
|
|
|
--without-log \
|
2017-05-04 22:14:23 +02:00
|
|
|
--without-python \
|
2017-05-07 00:39:50 +02:00
|
|
|
--disable-icu \
|
2017-05-04 00:00:01 +02:00
|
|
|
cxxflags="$CXXFLAGS" \
|
|
|
|
link=shared \
|
|
|
|
threading=multi \
|
|
|
|
install
|
|
|
|
}
|