# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cmake 1.1
PortGroup           compiler_blacklist_versions 1.0

platforms           darwin macosx
categories          science
license             Boost-1
maintainers         {ra1nb0w @ra1nb0w} {michaelld @michaelld} openmaintainer

description         Pothos data-flow framework
long_description    ${description}

github.setup        pothosware PothosCore 0.7.1 pothos-
checksums           rmd160  1804f1bddf8bccddee029bc508d7a08184895315 \
                    sha256  4316f448bb5c1b6b0fad8c68e8bbcf45016464c00a941e6d79612decbfabbd2f \
                    size    270267
revision            3

compiler.cxx_standard 2011

# Needed due to nlohmann-json:
#   error: field has incomplete type
compiler.blacklist-append \
    {clang < 900}

depends_build-append \
    port:pkgconfig

depends_lib-append \
    port:poco \
    port:muparserx \
    port:nlohmann-json

configure.args-append \
    -DPOTHOS_EXTVER=release \
    -DPOTHOS_ROOT=${prefix} \
    -DENABLE_INTERNAL_POCO=OFF \
    -DENABLE_INTERNAL_SPUCE=OFF \
    -DENABLE_INTERNAL_MUPARSERX=OFF \
    -DENABLE_INTERNAL_SERIALIZATION=OFF \
    -DENABLE_TOOLKITS=OFF

# remove with next release

patchfiles patch-092d9.diff
patch.pre_args -p1

# however keep this one
# ld: unknown option: --no-undefined
# collect2: error: ld returned 1 exit status
patchfiles-append   patch-unbreak-gcc-build.diff
