# -*- 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        premake premake-core 5.0.0-beta6 v
name                premake5
revision            0

categories          devel
maintainers         {amake @amake} openmaintainer
description         Premake is a build script generator.
long_description    Premake is a build script generator. Describe your \
                    project using the full-featured Lua scripting language \
                    and use premake to create input files for various IDEs \
                    and GnuMake

platforms           darwin
license             BSD
installs_libs       no

homepage            https://premake.github.io/

github.tarball_from releases
use_zip             yes
distname            premake-${version}-src
checksums           sha256  8832890451889c7ca9ab62c507d86fc9bfde45094274e5e4f46f82a258b5789b \
                    rmd160  b7edd9e19f3b617fc87224ed4009818af6e05ba0 \
                    size    10622489
use_configure       no

# Premake statically links a handful of vendored libraries; don't let MacPorts
# installed libraries conflict with these
compiler.library_path
compiler.cpath
configure.cppflags-delete -I${prefix}/include
configure.ldflags-delete  -L${prefix}/lib

build.dir           ${worksrcpath}/build/gmake.macosx
build.args-append   config=release verbose=true

destroot	{
    xinstall -m 0755 ${worksrcpath}/bin/release/premake5 ${destroot}${prefix}/bin/
}
