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

github.setup        QuantStack xvega 0.1.2
revision            0
categories          graphics
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         A C++ API for Vega-Lite
long_description    {*}${description}

github.tarball_from archive

checksums           rmd160  f812980b8a2a26bd399a01bcace82c0ca82aad4e \
                    sha256  10bb8af29a5bd204800dead728058cdb664267f89b555106feb2e1ae3e442a16 \
                    size    53656

depends_lib-append  port:nlohmann-json \
                    port:xproperty

# title.hpp:10:10: fatal error: 'optional' file not found
compiler.cxx_standard \
                    2017

configure.args      -DXVEGA_DISABLE_OPT_NATIVE=ON

if {${configure.build_arch} in [list ppc ppc64]} {
    # g++-mp-13: error: unrecognized argument in option '-mtune=generic'
    configure.args-append \
                    -DXVEGA_DISABLE_TUNE_GENERIC=ON
}
