# -*- 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                   cmake  1.1
PortGroup                   github 1.0

github.setup                WebAssembly binaryen 131 version_
revision                    0

categories                  lang devel
license                     Apache-2
maintainers                 {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description                 compiler and toolchain infrastructure library for WebAssembly
long_description            Binaryen is a compiler and toolchain infrastructure library for WebAssembly.

checksums                   rmd160  b21726e3d7a2f62cc578b8b51afbc9ef14a6fa9d \
                            sha256  3274719775038062b62d2bf2b37dcde69f3f79804aeb7420b78926722c0d0065 \
                            size    6986171
github.tarball_from         archive

set py_ver                  3.14
set py_ver_nodot            [string map {. {}} ${py_ver}]

depends_build-append        port:python${py_ver_nodot}
configure.args-append       -DPYTHON_EXECUTABLE=${prefix}/bin/python${py_ver} \
                            -DBUILD_TESTS=OFF \
                            -DENABLE_WERROR=OFF

compiler.cxx_standard       2017
