# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
github.setup 01org tbb 2019_U1
description Intel Threading Building Blocks offers a rich and complete approach to parallelism in C++
long_description ${description} \
It represents a higher-level, task-based parallelism that abstracts \
platform details and threading mechanisms for scalability and performance
homepage https://www.threadingbuildingblocks.org/
checksums rmd160 b7518ab5e5c31c02f7a46a515c339e5dbb1f1283 \
sha256 24410aeda0d146a462b3ab6b7d8395c16dc74f01ed83f5f2867f14fab9621fa7 \
github.livecheck.regex {(\d+(?:\_U)+(?:\d+)*)}
# Force a compatible compiler
compiler.blacklist-append *gcc* {clang < 602} macports-clang-3.3 macports-clang-3.4 \
compiler.whitelist clang macports-clang-3.9
set tbb_arch(x86_64) intel64
if {![info exists tbb_arch(${configure.build_arch})]} {
set tbb_arch(${configure.build_arch}) ${configure.build_arch}
if {[string match *clang* ${configure.compiler}]} {
set tbb_build_prefix macports
patchfiles patch-tbb-older-malloc.diff
# http://software.intel.com/en-us/forums/topic/505370
reinplace "/ -dynamiclib/s|$| -install_name ${prefix}/lib/\$@|g" ${worksrcpath}/build/macos.${tbb_compiler}.inc
build.target tbb tbbmalloc tbbproxy
build.args-append compiler=${tbb_compiler} \