# -*- 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 libcdatetime 20260601
revision            0
categories          security devel
license             LGPL-3+
maintainers         nomaintainer
description         Library for cross-platform C date and time functions
long_description    ${description}
distname            ${name}-alpha-${version}
checksums           rmd160  a2dbc4bc98a5e0277cfdd64745409a7132a124f7 \
                    sha256  626b2ac1edbcf69c9c1ef2c52947b9340d798c0f73b6310996323b2970565b93 \
                    size    553189
github.tarball_from releases

worksrcdir          ${name}-${version}

# https://github.com/libyal/libcdatetime/pull/2
patchfiles          0001-libcdatetime_extern.h-fix-incorrect-macro-usage.patch

depends_build-append \
                    port:gettext \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:gettext-runtime \
                    port:libcerror \
                    port:libiconv

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