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

# Need openat(), unlinkat(), fdopendir(), clock_gettime()
legacysupport.newest_darwin_requires_legacy 15

github.setup        tavianator bfs 4.1.2
github.tarball_from archive

categories          sysutils
platforms           darwin freebsd linux
license             BSD
maintainers         {@ylluminarious orbitalimpact.com:georgedp} \
                    {@judaew judaew} openmaintainer
description         A breadth-first version of the UNIX find command.
homepage            https://tavianator.com/projects/bfs.html

long_description    bfs is a variant of the UNIX find command that operates breadth-first rather \
    than depth-first. It is otherwise intended to be compatible with many \
    versions of find, including: POSIX find, GNU find, BSD find and macOS find. \
    If you're not familiar with find, the GNU find manual provides a good introduction.

checksums           rmd160  ef164b377f84d87e323c4b71029aea474ba473f1 \
                    sha256  4dc9846bbd23acdad4bafb279416b4a60aee98829ab6c5a1380006ab28894f3d \
                    size    299771

# since version 4.1 requires a C23 compiler
compiler.c_standard 2023
# C23 compiler selection is missing in the old versions of
# MacPorts client, which causes build failure on Big Sur
compiler.blacklist-append \
                    {clang < 1400}

use_configure       yes
configure.cppflags  -DNDEBUG

depends_lib         port:oniguruma6

build.target        bfs

test.run            yes
test.target         check
