# -*- 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           legacysupport 1.1

# memmem
legacysupport.newest_darwin_requires_legacy 10

github.setup        xmake-io xmake 3.0.9 v
revision            0
categories          devel
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
homepage            https://xmake.io

description         Cross-platform build utility based on Lua
long_description    \
    Xmake is a cross-platform build utility based on the Lua \
    scripting language. Xmake is very lightweight and has no dependencies \
    outside of the standard library. Uses the xmake.lua file \
    to maintain project builds with a simple and readable syntax.

installs_libs       no

fetch.type          git

# https://trac.macports.org/ticket/70544
# https://github.com/xmake-io/xmake/issues/6748
patchfiles-append   patch-fix-flags.diff

depends_build-append \
                    path:bin/pkg-config:pkgconfig
depends_lib-append  port:ncurses \
                    port:readline

post-fetch {
    system -W ${worksrcpath} "git submodule update --init --recursive"
}

compiler.cxx_standard   2011

build.args-append   VERBOSE=1
