# -*- 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        pine64 blisp 0.0.5 v
github.tarball_from archive
revision            0
categories          sysutils devel
license             MIT
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Bouffalo Labs ISP (in-system-programming)
long_description    {*}${description} tool & library: an open source tool to flash Bouffalo RISC-V MCUs.

checksums           sha256  79f87fbbb66f1d9ddf250cdc15dc16638d95e0905665003b08920a4b1fda9f96 \
                    rmd160  fb5f2c426c7bd6025e7dfd22303b42bac9b6b44e \
                    size    169995

depends_build-append \
                    port:pkgconfig
depends_lib-append  port:argtable3 \
                    port:libserialport

patchfiles-append   0001-blisp_struct.h-use-_Static_assert-for-pre-C23-compat.patch

compiler.c_standard 2011

configure.args-append \
                    -DBLISP_USE_SYSTEM_LIBRARIES=ON \
                    -DBLISP_BUILD_CLI=ON
