# -*- 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        wren-lang wren 0.4.0
github.tarball_from archive
revision            0

categories          lang
license             MIT
platforms           darwin
supported_archs     x86_64 i386

description         Wren is a small, fast, class-based concurrent scripting \
                    language.

long_description    {*}${description} Think Smalltalk in a Lua-sized package \
                    with a dash of Erlang and wrapped up in a familiar, \
                    modern syntax.  Wren is intended for embedding in \
                    applications. It has no dependencies, a small standard \
                    library, and an easy-to-use C API. It compiles cleanly as \
                    C99, C++98 or anything later.

homepage            https://wren.io

maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  fbcd754e4bba6402e5d59faa17640b88c75c5813 \
                    sha256  23c0ddeb6c67a4ed9285bded49f7c91714922c2e7bb88f42428386bf1cf7b339 \
                    size    1810644

worksrcdir          ${worksrcdir}/projects/make.mac

build.args-append   verbose=1
build.target        wren_shared

if {${build_arch} eq "x86_64"} {
    build.args-append config=release_64bit
} else {
    build.args-append config=release_32bit
}

destroot {
    copy ${worksrcpath}/../../lib/libwren.dylib ${destroot}${prefix}/lib/
    copy {*}[glob ${worksrcpath}/../../src/include/*] ${destroot}${prefix}/include/
}
