# -*- 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.1.3
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  4b2575dd79d955438d4ae0e54d2804f540be70e6 \
                    sha256  5b8a42723176b1872dc3e2777c6f0b2be95fff8ad54ec1356b26b5af5b645965 \
                    size    53659

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
}
