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

# futimens
legacysupport.newest_darwin_requires_legacy 16

name                tdb
version             1.4.12
revision            0
categories          databases
license             LGPL-3+
maintainers         nomaintainer
description         trivial database
long_description    TDB is a Trivial Database. In concept, it is very much \
                    like GDBM, and BSD's DB except that it allows multiple \
                    simultaneous writers and uses locking internally to keep \
                    writers from trampling on each other. TDB is also \
                    extremely small.

homepage            https://tdb.samba.org

master_sites        https://www.samba.org/ftp/${name}

checksums           rmd160  d05eca1439b4e37b41825894b7398c6b06940f83 \
                    sha256  6ce4b27498812d09237ece65a0d6dfac0941610e709848ecb822aa241084cd7a \
                    size    748827

set py_ver          3.12
set py_ver_nodot    [string map {. {}} ${py_ver}]

depends_build       port:python${py_ver_nodot}

# Missing required TLS support in pthread library
compiler.thread_local_storage   yes

patchfiles          patch-samba-install.diff

configure.args      --disable-python
configure.python    ${prefix}/bin/python${py_ver}

build.env           PYTHON=${configure.python}
destroot.env        PYTHON=${configure.python}
