# -*- 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            fragglet lhasa 0.6.0 v
github.tarball_from     archive
revision                0
categories              archivers
license                 ISC
maintainers             {@commitmaniac} openmaintainer

description             Parse and extract LHA archives
long_description        {*}${description}. ${name} is a library for parsing LHA archives \
                        (.lzh) and a free replacement for the Unix LHA tool.

checksums               rmd160  a5adef4dc7609876e23388a3775adfb8f2e9332f \
                        sha256  427c47527f11d157380d90e33c86535a3a0e8eb5c7e2cf0278bd6dbfe733fcee \
                        size    2919820

depends_build-append    path:bin/pkg-config:pkgconfig \
                        port:autoconf \
                        port:automake \
                        port:libtool

configure.cmd           ./autogen.sh

# C23 is optional; intentional error if not C23
configure.checks.implicit_int   no
configure.checks.implicit_function_declaration.whitelist-append alignof

test.run                yes
test.target             check
