# -*- 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           legacysupport 1.1
PortGroup           openssl 1.0

name                goaccess
version             1.12
revision            0

categories          www
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         GoAccess was designed to be a fast, terminal-based log analyzer.
long_description    {*}${description} Its core idea is to quickly analyze and view web \
                    server statistics in real time without needing to use your browser.
homepage            https://goaccess.io/
master_sites        https://tar.goaccess.io/

checksums           rmd160  00801be895879deff79deeda4cce2e4092ebae4b \
                    sha256  3aef5f6d5061decc6fc4946339b3a61b170bd256f80b4e861194b095df83ec86 \
                    size    1198446

# strndup
legacysupport.newest_darwin_requires_legacy 10

# src/parser.h:56:10: fatal error: 'stdatomic.h' file not found
compiler.blacklist-append {clang < 700}

compiler.cxx_standard   2011

openssl.branch      3

configure.args      --enable-geoip=mmdb \
                    --enable-utf8 \
                    --with-openssl

depends_build       port:gettext

depends_lib         port:gettext-runtime \
                    port:libmaxminddb \
                    port:ncurses \
                    port:tokyocabinet

patchfiles          patch-host_name_max.diff \
                    patch-src-util.c.diff

livecheck.type      regex
livecheck.url       ${homepage}download
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
