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

# renameat
legacysupport.newest_darwin_requires_legacy 13

name                talloc
version             2.5.0
checksums           rmd160  196693cf45f747b6d416957a5e1d0b782b48d488 \
                    sha256  912afa237510ae542a7733998eb18a12bcda35ab6729c8e2ddb43e8d0ebab007 \
                    size    690172

conflicts           samba3
categories          devel
license             LGPL-3+
maintainers         nomaintainer
description         Hierarchical memory allocation library
long_description    talloc is a hierarchical, reference counted memory pool \
                    system with destructors. It is the core memory allocator \
                    used in Samba.
homepage            https://talloc.samba.org
master_sites        https://www.samba.org/ftp/talloc/

depends_build       port:python314

depends_test        port:libiconv

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/python3.14

build.env-append    PYTHON=${configure.python}

destroot.env        {*}${build.env}

test.run            yes
test.env            {*}${build.env}
