# -*- 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.8.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  bc8d522271e48df8f353f565815b6ba84e3b4e99 \
                    sha256  d500007e64efb778a72d34f25508db5b8e0f596eb2ec58f4c9211f9b461ef70b \
                    size    4086007

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
}
