# -*- 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.13
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  aad15661191b2281ffec7442d78735898d7b7131 \
                    sha256  5ee276e7644d713e19e4b6adc00b440afb5851ff21e65821ffaed89e15a5e167 \
                    size    751677

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}
