# -*- 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

name                tevent
version             0.16.1
revision            0
categories          devel
license             LGPL-3+
maintainers         nomaintainer
description         event system
long_description    Tevent is an event system based on the talloc memory \
                    management library. It is the core event system used in \
                    Samba.

homepage            https://tevent.samba.org

master_sites        https://www.samba.org/ftp/${name}

checksums           rmd160  308ed6954a1f5581d1263208a7dd8318b4d24898 \
                    sha256  362971e0f32dc1905f6fe4736319c4b8348c22dc85aa6c3f690a28efe548029e \
                    size    890010

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

depends_build       port:python${py_ver_nodot}

depends_lib         port:talloc

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

patchfiles          patch-samba-install.diff

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

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