w2c2: new package: WebAssembly to C transpiler (#7608)

it's a WebAssembly to C transpiler
This commit is contained in:
Samuel Crow
2022-12-21 23:16:29 -06:00
committed by GitHub
parent 8d3e0a3dbd
commit 390ae9277d

View File

@@ -0,0 +1,50 @@
SUMMARY="A WebAssembly bytecode to C89 transpiler"
DESCRIPTION="w2c2 is a WebAssembly bytecode to ANSI/ISO C 1989 transpiler \
that is written in ANSI/ISO C 1989 itself.
Among its features are:
* Streamed compilation in a single pass
* parallel compilation on multithreaded operating systems
* Big-endian architecture support
* Code sanitizers
* Implements the WebAssembly Core Specification 1.0
* Implements WASI standard
* Supports multiple modules and instances"
HOMEPAGE="https://github.com/turbolent/w2c2"
COPYRIGHT="2021 Bastian Mueller"
LICENSE="MIT"
REVISION="1"
srcGitRev="cd90cd995501d83ce41f57bfb11b1a52de092d20"
SOURCE_URI="https://github.com/turbolent/w2c2/archive/$srcGitRev.zip"
CHECKSUM_SHA256="8bc9699771b03f92237980e24805f74e4b866d57130089e968c038d364b0de2a"
SOURCE_FILENAME="w2c2-$srcGitRev.zip"
SOURCE_DIR="w2c2-$srcGitRev"
ARCHITECTURES="all"
PROVIDES="
w2c2
cmd:w2c2
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
"
BUILD()
{
make $jobArgs FEATURES="threads getopt"
}
INSTALL()
{
mkdir $binDir
cp w2c2 $binDir
}