# -*- 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.0
# This is NOT platform-any noarch port
revision            1
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  c277051aba64ef6a137b7bdaa294f7c44ba94383 \
                    sha256  5a7f679b7dddb455e3a7da57c74f1b39023ff1e3e9e98c58d9c699aa679537ce \
                    size    242034
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
}
