2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="boost"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="1.83.0"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="OSS"
|
2023-02-25 18:53:14 +00:00
|
|
|
PKG_SITE="http://www.boost.org/"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_URL="https://boostorg.jfrog.io/artifactory/main/release/${PKG_VERSION}/source/${PKG_NAME}_${PKG_VERSION//./_}.tar.bz2"
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain boost:host Python3 zlib bzip2"
|
|
|
|
PKG_LONGDESC="boost: Peer-reviewed STL style libraries for C++"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
|
|
|
make_host() {
|
|
|
|
cd tools/build/src/engine
|
|
|
|
sh build.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_host() {
|
|
|
|
mkdir -p ${TOOLCHAIN}/bin
|
2022-11-01 10:04:06 +00:00
|
|
|
cp b2 ${TOOLCHAIN}/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2022-02-27 23:34:12 +00:00
|
|
|
export CFLAGS="${CFLAGS} -I${SYSROOT_PREFIX}/usr/include/${PKG_PYTHON_VERSION}"
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -I${SYSROOT_PREFIX}/usr/include/${PKG_PYTHON_VERSION}"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
configure_target() {
|
|
|
|
sh bootstrap.sh --prefix=/usr \
|
2022-11-01 10:04:06 +00:00
|
|
|
--with-bjam=${TOOLCHAIN}/bin/b2 \
|
2022-02-05 14:23:32 +00:00
|
|
|
--with-python=${TOOLCHAIN}/bin/python \
|
|
|
|
--with-python-root=${SYSROOT_PREFIX}/usr
|
|
|
|
|
|
|
|
echo "using gcc : $(${CC} -v 2>&1 | tail -n 1 |awk '{print $3}') : ${CC} : <compileflags>\"${CFLAGS}\" <linkflags>\"${LDFLAGS}\" ;" \
|
|
|
|
> tools/build/src/user-config.jam
|
|
|
|
echo "using python : ${PKG_PYTHON_VERSION/#python} : ${TOOLCHAIN} : ${SYSROOT_PREFIX}/usr/include : ${SYSROOT_PREFIX}/usr/lib ;" \
|
|
|
|
>> tools/build/src/user-config.jam
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-25 18:53:14 +00:00
|
|
|
ln -sf ${TOOLCHAIN}/bin/b2 ${TOOLCHAIN}/bin/bjam
|
|
|
|
${TOOLCHAIN}/bin/bjam -d2 --ignore-site-config \
|
|
|
|
--layout=system \
|
|
|
|
--prefix=${SYSROOT_PREFIX}/usr \
|
|
|
|
--toolset=gcc link=static \
|
|
|
|
--with-chrono \
|
|
|
|
--with-date_time \
|
|
|
|
--with-filesystem \
|
|
|
|
--with-iostreams \
|
|
|
|
--with-program_options \
|
|
|
|
--with-python \
|
|
|
|
--with-locale \
|
|
|
|
--with-random \
|
|
|
|
--with-regex -sICU_PATH="${SYSROOT_PREFIX}/usr" \
|
|
|
|
--with-serialization \
|
|
|
|
--with-system \
|
|
|
|
--with-thread \
|
|
|
|
--with-nowide \
|
|
|
|
--with-context \
|
|
|
|
install
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|