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

github.setup        libyal libfwnt 20260522
revision            0
categories          devel
license             LGPL-3+
maintainers         nomaintainer
description         Library for Windows NT data types
long_description    ${description}
distname            ${name}-alpha-${version}
checksums           rmd160  36107727f8caf673ddfb602e7517f47acd8483a2 \
                    sha256  5ad101966879109f19a791af7e856f23e263482cbee3d2e11d392fb572344df3 \
                    size    1130278
github.tarball_from releases

worksrcdir          ${name}-${version}

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

depends_build-append \
                    port:gettext \
                    path:bin/pkg-config:pkgconfig \
                    port:py${py_ver_nodot}-setuptools

depends_lib-append  port:gettext-runtime \
                    port:libcdata \
                    port:libcerror \
                    port:libcnotify \
                    port:libcthreads \
                    port:libiconv \
                    port:python${py_ver_nodot}

configure.python    ${prefix}/bin/python${py_ver}
set python_root     ${frameworks_dir}/Python.framework/Versions/${py_ver}

configure.env-append \
                    PYTHON_CONFIG=${configure.python}-config

configure.args-append \
                    --enable-python \
                    --with-libiconv-prefix=${prefix} \
                    --with-libintl-prefix=${prefix} \
                    --with-pyprefix=${python_root}
