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

# getline
legacysupport.newest_darwin_requires_legacy 10

github.setup            cleverca22 toxvpn 0a2ab5acdf96975e128e6bbe1fd8c9fac33625d2
version                 2025.10.24
revision                0
categories              net security
maintainers             {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license                 GPL-3
description             Client/server for a Tox-based VPN
long_description        {*}${description}
checksums               rmd160  7d82ee8fb12d2c2cfe95dd31fb19c70d5a65b5e9 \
                        sha256  22b2ec58189916c6b31abb0fc8a7683819766d0ed60b1d30f6404c3a1c38c47e \
                        size    37871
github.tarball_from     archive

# https://github.com/cleverca22/toxvpn/issues/54
# https://github.com/cleverca22/toxvpn/issues/55
patchfiles              macos-build-fix.patch

depends_build-append    port:nlohmann-json \
                        path:bin/pkg-config:pkgconfig
depends_lib-append      path:lib/libzmq.dylib:zmq \
                        port:toxcore
depends_run-append      port:tuntaposx

compiler.cxx_standard   2014

configure.args-append   -DZMQ=YES

notes "
Make sure tuntaposx is loaded, not just installed:
`sudo port load tuntaposx`
"
