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"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSL-1.0"
|
2019-05-07 23:43:29 +02:00
|
|
|
TERMUX_PKG_VERSION=1.70.0
|
2019-06-19 20:18:20 +02:00
|
|
|
TERMUX_PKG_REVISION=4
|
2018-02-26 00:09:05 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://dl.bintray.com/boostorg/release/$TERMUX_PKG_VERSION/source/boost_${TERMUX_PKG_VERSION//./_}.tar.bz2
|
2019-06-19 20:18:20 +02:00
|
|
|
TERMUX_PKG_SHA256=430ae8354789de4fd19ee52f3b1f739e1fba576f0aded0897c3c2bc00fb38778
|
2017-05-04 00:00:01 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
2019-06-19 20:18:20 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, libbz2, libiconv, liblzma, zlib"
|
2018-05-04 09:21:04 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="python, python2"
|
2018-04-30 16:48:56 +02:00
|
|
|
TERMUX_PKG_BREAKS="libboost-python (<= 1.65.1-2)"
|
|
|
|
TERMUX_PKG_REPLACES="libboost-python (<= 1.65.1-2)"
|
2018-01-06 20:14:46 +01:00
|
|
|
|
2017-05-04 00:00:01 +02:00
|
|
|
termux_step_make_install() {
|
2018-08-14 12:19:31 +02:00
|
|
|
CXXFLAGS+=" -std=c++14"
|
|
|
|
|
2017-05-04 00:00:01 +02:00
|
|
|
rm $TERMUX_PREFIX/lib/libboost* -f
|
|
|
|
rm $TERMUX_PREFIX/include/boost -rf
|
2018-05-14 08:42:34 +02:00
|
|
|
|
2017-05-04 00:00:01 +02:00
|
|
|
./bootstrap.sh
|
2018-12-31 02:41:08 +01:00
|
|
|
echo "using clang : $TERMUX_ARCH : $CXX : <linkflags>-L$TERMUX_PREFIX/lib ; " >> project-config.jam
|
2018-10-21 21:16:53 +02:00
|
|
|
echo "using python : 3.7 : $TERMUX_PREFIX/bin/python3 : $TERMUX_PREFIX/include/python3.7m : $TERMUX_PREFIX/lib ;" >> project-config.jam
|
2018-05-14 08:42:34 +02:00
|
|
|
|
|
|
|
if [ "$TERMUX_ARCH" = arm ] || [ "$TERMUX_ARCH" = aarch64 ]; then
|
2018-05-14 04:23:08 +02:00
|
|
|
BOOSTARCH=arm
|
|
|
|
BOOSTABI=aapcs
|
2018-05-14 08:42:34 +02:00
|
|
|
elif [ "$TERMUX_ARCH" = i686 ] || [ "$TERMUX_ARCH" = x86_64 ]; then
|
2018-05-14 04:23:08 +02:00
|
|
|
BOOSTARCH=x86
|
|
|
|
BOOSTABI=sysv
|
|
|
|
fi
|
2017-05-04 22:05:09 +02:00
|
|
|
|
2018-05-14 08:42:34 +02:00
|
|
|
if [ "$TERMUX_ARCH" = x86_64 ] || [ "$TERMUX_ARCH" = aarch64 ]; then
|
|
|
|
BOOSTAM=64
|
|
|
|
elif [ "$TERMUX_ARCH" = i686 ] || [ "$TERMUX_ARCH" = arm ]; then
|
|
|
|
BOOSTAM=32
|
|
|
|
fi
|
2018-04-30 16:48:56 +02:00
|
|
|
|
2017-05-07 00:39:50 +02:00
|
|
|
./b2 target-os=android -j${TERMUX_MAKE_PROCESSES} \
|
2018-12-31 02:41:08 +01:00
|
|
|
include=$TERMUX_PREFIX/include \
|
2017-05-04 00:00:01 +02:00
|
|
|
toolset=clang-$TERMUX_ARCH \
|
|
|
|
--prefix="$TERMUX_PREFIX" \
|
|
|
|
-q \
|
2017-09-24 21:39:34 +02:00
|
|
|
--without-stacktrace \
|
2017-05-04 00:00:01 +02:00
|
|
|
--without-log \
|
2017-05-07 00:39:50 +02:00
|
|
|
--disable-icu \
|
2019-01-03 00:45:45 +01:00
|
|
|
-sNO_ZSTD=1 \
|
2017-05-04 00:00:01 +02:00
|
|
|
cxxflags="$CXXFLAGS" \
|
2019-03-12 15:48:20 +01:00
|
|
|
linkflags="$LDFLAGS" \
|
2018-05-14 08:42:34 +02:00
|
|
|
architecture="$BOOSTARCH" \
|
|
|
|
abi="$BOOSTABI" \
|
|
|
|
address-model="$BOOSTAM" \
|
2018-10-21 21:16:53 +02:00
|
|
|
boost.locale.icu=off \
|
2018-05-14 04:23:08 +02:00
|
|
|
binary-format=elf \
|
2017-05-04 00:00:01 +02:00
|
|
|
link=shared \
|
|
|
|
threading=multi \
|
|
|
|
install
|
2018-05-04 09:21:04 +02:00
|
|
|
|
|
|
|
./bootstrap.sh --with-libraries=python
|
2018-12-31 02:41:08 +01:00
|
|
|
echo "using clang : $TERMUX_ARCH : $CXX : <linkflags>-L$TERMUX_PREFIX/lib ; " >> project-config.jam
|
2018-05-04 09:21:04 +02:00
|
|
|
echo "using python : 2.7 : $TERMUX_PREFIX/bin/python2 : $TERMUX_PREFIX/include/python2.7 : $TERMUX_PREFIX/lib ;" >> project-config.jam
|
|
|
|
|
|
|
|
./b2 target-os=android -j${TERMUX_MAKE_PROCESSES} \
|
2018-12-31 02:41:08 +01:00
|
|
|
include=$TERMUX_PREFIX/include \
|
2018-05-04 09:21:04 +02:00
|
|
|
toolset=clang-$TERMUX_ARCH \
|
|
|
|
--stagedir="$TERMUX_PREFIX" \
|
|
|
|
-q \
|
|
|
|
-a \
|
|
|
|
--disable-icu \
|
2019-01-03 00:45:45 +01:00
|
|
|
-sNO_ZSTD=1 \
|
2018-05-04 09:21:04 +02:00
|
|
|
cxxflags="$CXXFLAGS" \
|
2019-03-12 15:48:20 +01:00
|
|
|
linkflags="$LDFLAGS" \
|
2018-05-04 09:21:04 +02:00
|
|
|
link=shared \
|
|
|
|
threading=multi \
|
2018-10-21 21:16:53 +02:00
|
|
|
boost.locale.icu=off \
|
2018-05-04 09:21:04 +02:00
|
|
|
stage
|
2017-05-04 00:00:01 +02:00
|
|
|
}
|