# -*- 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
PortGroup           makefile 1.0

github.setup        cheusov mk-configure 0.40.3
# This is NOT platform-any noarch port
revision            0
categories          devel
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             BSD

description         Lightweight, easy to use replacement for GNU autotools
long_description    {*}${description}

checksums           rmd160  e24900ed35f9ceeb596841150e38575343c2fd68 \
                    sha256  99bd28089373ef0097180b1dcae5537c9db266ebe1c635bd1428fe5a5d131300 \
                    size    242952
github.tarball_from archive

depends_build-append \
                    path:bin/bmake:bmake \
                    port:gawk \
                    port:makedepend

build.cmd           ${prefix}/bin/bmake
build.env-append    USE_AWK=${prefix}/bin/gawk

destroot.cmd        ${build.cmd}

post-destroot {
    # Place these into a sane location:
    move ${destroot}${prefix}/man ${destroot}${prefix}/share/doc/${name}/man
}
