termux-packages/packages/boost/build.sh

34 lines
1.1 KiB
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://boost.org
TERMUX_PKG_DESCRIPTION="Free peer-reviewed portable C++ source libraries"
2017-09-24 21:39:34 +02:00
TERMUX_PKG_VERSION=1.65.1
2018-01-06 20:14:46 +01:00
TERMUX_PKG_REVISION=1
2017-09-24 21:39:34 +02:00
TERMUX_PKG_SHA256=9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81
2017-10-27 22:56:18 +02:00
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/boost/files/boost/${TERMUX_PKG_VERSION}/boost_${TERMUX_PKG_VERSION//./_}.tar.bz2
TERMUX_PKG_BUILD_IN_SRC=yes
2017-09-24 23:14:59 +02:00
TERMUX_PKG_DEPENDS="libbz2, liblzma"
2018-01-06 20:14:46 +01:00
termux_step_make_install() {
rm $TERMUX_PREFIX/lib/libboost* -f
rm $TERMUX_PREFIX/include/boost -rf
./bootstrap.sh
echo "using clang : $TERMUX_ARCH : $CXX : <linkflags>-L/data/data/com.termux/files/usr/lib ; " >> project-config.jam
./b2 target-os=android -j${TERMUX_MAKE_PROCESSES} \
include=/data/data/com.termux/files/usr/include \
2018-01-05 02:16:58 +01:00
include=/data/data/com.termux/files/usr/include/python3.6m \
toolset=clang-$TERMUX_ARCH \
--prefix="$TERMUX_PREFIX" \
-q \
2017-09-24 21:39:34 +02:00
--without-stacktrace \
--without-coroutine \
--without-context \
--without-log \
--disable-icu \
cxxflags="$CXXFLAGS" \
link=shared \
threading=multi \
install
}