# -*- 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           cmake 1.1
PortGroup           github 1.0

name                thrust
github.setup        NVIDIA cccl 2.4.0 v
revision            0
categories          devel parallel
description         The C++ parallel algorithms library
long_description    {*}${description}
platforms           {darwin any}
license             Apache-2
maintainers         nomaintainer
checksums           rmd160  410ae9eda137d83df0212a2ab07e017a5e971aa3 \
                    sha256  2368db9440fbd302450424c624d7f885529ba0e6c96eb4076aa4412c436b2359 \
                    size    4136281
github.tarball_from archive
installs_libs       no
supported_archs     noarch

cmake.source_dir    ${worksrcpath}/${name}

compiler.c_standard 2011
compiler.openmp_version 2.5

# Install this a header-only library.
# If you add variants that require compilation, do not set them as default.
configure.args-append \
                    -DTHRUST_ENABLE_BENCHMARKS=OFF \
                    -DTHRUST_ENABLE_EXAMPLES=OFF \
                    -DTHRUST_ENABLE_HEADER_TESTING=OFF \
                    -DTHRUST_ENABLE_TESTING=OFF \
                    -DTHRUST_INCLUDE_CUB_CMAKE=OFF \
                    -DTHRUST_INSTALL_CUB_HEADERS=OFF \
                    -DTHRUST_INSTALL_LIBCUDACXX_HEADERS=OFF
