# -*- 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 libclocale 20260601
revision            0
categories          security devel
license             LGPL-3+
maintainers         nomaintainer
description         Library for cross-platform C locale functions
long_description    ${description}
distname            ${name}-alpha-${version}
checksums           rmd160  5169d606c6a90cb4b51a3743f83f9ce1bf2ace9a \
                    sha256  c1b7ad44ab4fd8f65526a20cad2e03dc72b8a0006631d6fac0a6e24113664cc4 \
                    size    537337
github.tarball_from releases

worksrcdir          ${name}-${version}

# https://github.com/libyal/libclocale/pull/10
patchfiles          0001-libclocale_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}
