# -*- 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
PortGroup           legacysupport 1.1

# std::bad_optional_access
legacysupport.newest_darwin_requires_legacy \
                    16
legacysupport.use_mp_libcxx \
                    yes

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

checksums           rmd160  abbaf2155d182f1f8a7ad2f4d98673cf2a4eb6e3 \
                    sha256  35fccb3d19a61471d47440b699fdfd1adaba33f9544d20841a816f2bd30c714b \
                    size    53916

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
}
