# -*- 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.4.3
revision            0
checksums           rmd160  f9ae1014ddcac3956a4eb149e262897358b0b005 \
                    sha256  dc46c40b9f46bb34dd97fe41f548b0e8b247b77a918576733c528e83abd854dd \
                    size    684092

conflicts           samba3
set major           [lindex [split ${version} .] 0]
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-append    port:python313

depends_test-append     port:libiconv

patchfiles          patch-samba-install.diff

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

configure.args-append   --disable-python \
                        --with-libiconv=${prefix}

configure.python        ${prefix}/bin/python3.13

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

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

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