# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.1

github.setup        oneapi-src oneDPL 2022.9.0 oneDPL- -release
name                onedpl
revision            0

categories          devel parallel
platforms           any
license             Apache-2
supported_archs     noarch

maintainers         {makr @mohd-akram} openmaintainer

description         oneAPI DPC++ Library
long_description    oneAPI DPC++ Library (oneDPL) provides high-productivity \
                    APIs to developers, which can minimize Data Parallel C++ \
                    (DPC++) programming efforts across devices for high \
                    performance parallel applications.

github.tarball_from archive

checksums           rmd160  cc61ca45bf75985ad862adb21df22f1577e97679 \
                    sha256  b38844878af9ecee07ca719426b90fec77f79a35c7bc55154422cb0d7f654343 \
                    size    4247528

depends_lib-append  port:onetbb

# The compiler feature "cxx_std_17" is not known to CXX compiler
compiler.cxx_standard   2017

post-patch {
    reinplace "s|\${OUTPUT_DIR}|\$ENV{DESTDIR}\${OUTPUT_DIR}|g" \
        ${worksrcpath}/cmake/scripts/generate_config.cmake
}
