# -*- 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            sl-make
version         3.81
revision        1
categories      devel
maintainers     nomaintainer
description     Apple make
long_description \
                {*}${description}

homepage        https://www.gnu.org/software/make/make.html
license         GPL-2+

installs_libs       no
universal_variant   no

distname        make-${version}
master_sites    gnu:make

checksums       rmd160  a713a72875cb9a29568677c98022465c6f55cbbf \
                sha256  16b77de9f013bcd536b7bc1efbe314223aedfe250f9063e33cbb4dfd347215a2 \
                size    1564560

# avoid picking up installed ports
compiler.cpath
compiler.library_path
configure.cppflags-delete -I${prefix}/include
configure.ldflags-delete  -L${prefix}/lib
configure.args  --disable-nls

destroot {
    xinstall -d ${destroot}/usr/bin
    move ${worksrcpath}/make ${destroot}/usr/bin/gnumake
    ln -s gnumake ${destroot}/usr/bin/make
}

package.flat            no

destroot.violate_mtree  yes

# Prevent direct installation.
known_fail yes
pre-activate {
    ui_error "Do not install this port directly."
    ui_error "It is used to build the installer."
    error "Installation aborted"
}

livecheck.type  none
