2022-11-01 10:04:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="tbb"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_VERSION="2021.8.0"
|
|
|
|
PKG_SHA256="eee380323bb7ce864355ed9431f85c43955faaae9e9bce35c62b372d7ffd9f8b"
|
2022-11-01 10:04:06 +00:00
|
|
|
PKG_LICENSE="Apache-2.0"
|
|
|
|
PKG_SITE="https://github.com/oneapi-src/oneTBB"
|
|
|
|
PKG_URL="https://github.com/oneapi-src/oneTBB/archive/refs/tags/v${PKG_VERSION}.tar.gz"
|
|
|
|
PKG_DEPENDS_HOST="cmake:host ninja:host"
|
|
|
|
PKG_LONGDESC="oneTBB is a flexible C++ library that simplifies the work of adding parallelism to complex applications"
|
|
|
|
|
|
|
|
PKG_CMAKE_OPTS_HOST="-DTBB_TEST=OFF \
|
|
|
|
-DTBB_EXAMPLES=OFF \
|
|
|
|
-DTBB_STRICT=OFF \
|
|
|
|
-DTBB4PY_BUILD=OFF \
|
|
|
|
-DTBB_BUILD=ON \
|
|
|
|
-DTBBMALLOC_BUILD=ON \
|
|
|
|
-DTBBMALLOC_PROXY_BUILD=ON \
|
|
|
|
-DTBB_CPF=OFF \
|
|
|
|
-DTBB_FIND_PACKAGE=OFF \
|
|
|
|
-DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=OFF \
|
|
|
|
-DTBB_ENABLE_IPO=ON"
|
|
|
|
|
|
|
|
pre_configure_host() {
|
|
|
|
export CXXFLAGS+=" -D__TBB_DYNAMIC_LOAD_ENABLED=0"
|
|
|
|
}
|