aboutsummaryrefslogtreecommitdiff
path: root/devel/onetbb/Makefile
blob: 00a0c49cb4e997655c97ab6d891189ba6efc816e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Arun Sharma <arun@sharma-home.net>

PORTNAME=	onetbb
PORTVERSION=	2021.3.0
DISTVERSIONPREFIX=	v
CATEGORIES=	devel

PATCH_SITES=	https://github.com/oneapi-src/oneTBB/commit/
PATCHFILES=	fa944e19600500863507ed8e9b1f5a30037d9df6.patch:-p1

MAINTAINER=	martymac@FreeBSD.org
COMMENT=	Library that provides thread building blocks

LICENSE=	APACHE20

LIB_DEPENDS=	libhwloc.so.15:devel/hwloc2

USES=		cmake compiler:c++11-lang tar:tgz

CMAKE_ARGS+=	-DTBB_STRICT:BOOL=FALSE \
		-DCMAKE_INSTALL_DOCDIR:PATH="${DOCSDIR}" \
		-DCMAKE_HWLOC_2_4_LIBRARY_PATH:PATH="${LOCALBASE}/lib/libhwloc.so" \
		-DCMAKE_HWLOC_2_4_INCLUDE_PATH:PATH="${LOCALBASE}/include"

CONFLICTS=	tbb-[0-9]*

USE_GITHUB=	yes
GH_ACCOUNT=	oneapi-src
GH_PROJECT=	oneTBB

USE_LDCONFIG=	yes

PORTDOCS=	README.md

OPTIONS_DEFINE=	DOCS

.include <bsd.port.pre.mk>

.if ${ARCH} == powerpc || ${ARCH} == riscv64
EXTRA_PATCHES=	${FILESDIR}/extra-patch-src_tbb_tools__api_ittnotify__config.h
.endif

.include <bsd.port.post.mk>