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

name            andatool
version         0.8
revision        1
categories      sysutils
license         GPL-2
maintainers     nomaintainer
platforms       darwin
description     Andatool displays in realtime how often regular expressions match
long_description     Andatool displays in realtime how often one or more regular \
        expressions match with what scrolls-by in a logfile. That way you can see \
        quickly, for example, what firewall-rules get triggered most.

homepage        https://web.archive.org/web/20161011014755/https://www.vanheusden.com/andatool/
master_sites    ${homepage}

checksums       rmd160  451ff667748b3963df0f65f5d1b57e98a356810a \
                sha256  3bc399e1afae6648fa9596a01f5e42888439f7bfa3af319358b4928aed0e8051
extract.suffix  .tgz

depends_lib     port:ncurses

use_configure   no

variant universal {}

build.args      CC="${configure.cc} [get_canonical_archflags cc]"

destroot.args {*}${build.args}

pre-build       {
        reinplace "s|\$(DESTDIR)/usr/|\$(DESTDIR)${prefix}/|g" \
                ${worksrcpath}/Makefile
                }

livecheck.type  none
