# -*- 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.15
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  b7906686a03b3fe832b57d559254ff3de571f625 \
                    sha256  fba09d8df1f1b9072aeae8e78b2bd43c5afef20b2f6deefa633aa14a377a8dd2 \
                    size    753485

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

depends_build       port:python${py_ver_nodot}

patchfiles          patch-samba-install.diff

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

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

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