# -*- 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.14
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  8163a6dcc4a590e6843c868db0cc808891635336 \
                    sha256  144f407d42ed7a0ec1470a40ef17ad41133fe910bce865dd9fe084d49c907526 \
                    size    755817

set py_ver          3.13
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}
