diff options
author | Sam James <sam@gentoo.org> | 2023-07-26 05:06:22 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-07-26 05:06:22 +0100 |
commit | 1fa629b6b60da2207364d0d995dd89f748753f84 (patch) | |
tree | 115ef7b13005a847af9396fc3b40b96b83859e5b /dev-cpp/tbb/tbb-2021.10.0.ebuild | |
parent | media-video/ffmpeg: fix building against libplacebo-6 (diff) | |
download | gentoo-1fa629b6b60da2207364d0d995dd89f748753f84.tar.gz gentoo-1fa629b6b60da2207364d0d995dd89f748753f84.tar.bz2 gentoo-1fa629b6b60da2207364d0d995dd89f748753f84.zip |
dev-cpp/tbb: add 2021.10.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/tbb/tbb-2021.10.0.ebuild')
-rw-r--r-- | dev-cpp/tbb/tbb-2021.10.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-cpp/tbb/tbb-2021.10.0.ebuild b/dev-cpp/tbb/tbb-2021.10.0.ebuild new file mode 100644 index 000000000000..2e11233b7583 --- /dev/null +++ b/dev-cpp/tbb/tbb-2021.10.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="High level abstract threading library" +HOMEPAGE="https://github.com/oneapi-src/oneTBB" +SRC_URI="https://github.com/oneapi-src/oneTBB/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/oneTBB-${PV}" + +LICENSE="Apache-2.0" +# https://github.com/oneapi-src/oneTBB/blob/master/CMakeLists.txt#L53 +# libtbb<SONAME>-libtbbmalloc<SONAME>-libtbbbind<SONAME> +SLOT="0/12.5-2.5-3.5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="!kernel_Darwin? ( sys-apps/hwloc:= )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2021.8.0-gcc-13.patch +) + +src_prepare() { + # Has an #error to force compilation as C but links with C++ library, dies + # with GLIBCXX_ASSERTIONS as a result. + sed -i -e '/tbb_add_c_test(SUBDIR tbbmalloc NAME test_malloc_pure_c DEPENDENCIES TBB::tbbmalloc)/d' test/CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DTBB_TEST=$(usex test) + -DTBB_ENABLE_IPO=OFF + -DTBB_STRICT=OFF + ) + + cmake-multilib_src_configure +} |