freebsd-ports/devel/onetbb/Makefile
Ganael LAPLANCHE e02e127016 devel/onetbb: Update to 2021.7.0
and bump dependent ports' revisions.

Release notes: https://github.com/oneapi-src/oneTBB/blob/v2021.7.0/RELEASE_NOTES.md
2022-11-03 12:32:41 +01:00

46 lines
953 B
Makefile

PORTNAME= onetbb
PORTVERSION= 2021.7.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= martymac@FreeBSD.org
COMMENT= Library that provides thread building blocks
WWW= https://software.intel.com/oneapi/onetbb
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_LIBRARY_PATH:PATH="${LOCALBASE}/lib/libhwloc.so" \
-DCMAKE_HWLOC_2_INCLUDE_PATH:PATH="${LOCALBASE}/include"
CONFLICTS= tbb
USE_GITHUB= yes
GH_ACCOUNT= oneapi-src
GH_PROJECT= oneTBB
USE_LDCONFIG= yes
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
# Pkgconfig: tbb.pc (on 64bit arch) vs tbb32.pc
PLIST_SUB= PCSUFX="${PCSUFX}"
.include <bsd.port.pre.mk>
.if ${ARCH} == i386 || ${ARCH} == powerpc || ${ARCH:Marmv?}
PCSUFX= 32
.endif
.if ${ARCH} == powerpc64
CMAKE_ARGS+= -DTBB_ENABLE_IPO:BOOL=OFF
.endif
.include <bsd.port.post.mk>