diff options
| author | Daniel Engberg <diizzy@FreeBSD.org> | 2026-01-09 11:42:06 +0000 |
|---|---|---|
| committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2026-01-09 11:45:02 +0000 |
| commit | 21ced109339993e4ca894fa5cc0f92a3f252cfb6 (patch) | |
| tree | e6a203ec39e374434250fef39d462e67c34c3a67 | |
| parent | 3b606b6708ac89cfaa0b0f39f0a07c0343f1ae4c (diff) | |
devel/onetbb: Improve port
- Only build unit tests when requested to make overall build faster
- Adjust port Makefile to more closely follow Porters Handbook
- Remove USES= tar:tgz (incorrect)
- Replace USES= localbase with localbase:ldflags
- Use a separate section for USE_GITHUB
PR: 292088
| -rw-r--r-- | devel/onetbb/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/devel/onetbb/Makefile b/devel/onetbb/Makefile index 4338f53134f1..03bd6142e1aa 100644 --- a/devel/onetbb/Makefile +++ b/devel/onetbb/Makefile @@ -1,6 +1,6 @@ PORTNAME= onetbb -PORTVERSION= 2022.3.0 DISTVERSIONPREFIX= v +DISTVERSION= 2022.3.0 CATEGORIES= devel MAINTAINER= martymac@FreeBSD.org @@ -11,28 +11,32 @@ LICENSE= APACHE20 LIB_DEPENDS= libhwloc.so:devel/hwloc2 -USES= cmake compiler:c++11-lang localbase pathfix pkgconfig tar:tgz +USES= cmake:testing compiler:c++11-lang localbase:ldflags pathfix pkgconfig +USE_LDCONFIG= yes + USE_GITHUB= yes GH_ACCOUNT= uxlfoundation GH_PROJECT= oneTBB -USE_LDCONFIG= yes -CMAKE_ARGS+= -DCMAKE_INSTALL_DOCDIR:PATH="${DOCSDIR}" \ - -DTBB_STRICT:BOOL=FALSE +CONFLICTS= tbb # Many symbols in the linker version scripts are undefined because link time # optimization (-flto=thin) removes them. Suppress errors with lld >= 17 due to # these undefined symbols. LDFLAGS+= -Wl,--undefined-version -CONFLICTS= tbb - # Pkgconfig: tbb.pc (on 64bit arch) vs tbb32.pc PLIST_SUB= DBGSUFX="${DBGSUFX}" \ PCSUFX="${PCSUFX}" PORTDOCS= README.md +CMAKE_TESTING_ON= TBB_TEST + +CMAKE_OFF= TBB_STRICT \ + TBB_TEST +CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR:PATH="${DOCSDIR}" + OPTIONS_DEFINE= DOCS .include <bsd.port.pre.mk> |
