# -*- 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
revision            0
categories          devel
platforms           any
maintainers         nomaintainer
license             BSD
supported_archs     noarch

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 \
                    bin:bmake:bmake \
                    port:gawk

# mkdep
if {${os.platform} eq "darwin" && ${os.major} > 10} {
    depends_build-append \
                    port:developer_cmds
}

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

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