pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import binaryen 99 as wip/binaryen.



Module Name:	pkgsrc-wip
Committed By:	Frederic Cambus <fred%statdns.com@localhost>
Pushed By:	fcambus
Date:		Sun Feb 14 16:01:40 2021 +0100
Changeset:	ab3276d9f30245ad15aecd020e34651422c35952

Modified Files:
	Makefile
Added Files:
	binaryen/DESCR
	binaryen/Makefile
	binaryen/PLIST
	binaryen/distinfo

Log Message:
Import binaryen 99 as wip/binaryen.

Binaryen is a compiler and toolchain infrastructure library for WebAssembly,
written in C++. It aims to make compiling to WebAssembly easy, fast, and
effective.

* Easy: Binaryen has a simple C API in a single header, and can also be used
  from JavaScript. It accepts input in WebAssembly-like form but also accepts
  a general control flow graph for compilers that prefer that.

* Fast: Binaryen's internal IR uses compact data structures and is designed
  for completely parallel codegen and optimization, using all available CPU
  cores. Binaryen's IR also compiles down to WebAssembly extremely easily and
  quickly because it is essentially a subset of WebAssembly.

* Effective: Binaryen's optimizer has many passes (see an overview later
  down) that can improve code size and speed. These optimizations aim to
  make Binaryen powerful enough to be used as a compiler backend by itself.
  One specific area of focus is on WebAssembly-specific optimizations (that
  general-purpose compilers might not do), which you can think of as wasm
  minification, similar to minification for JavaScript, CSS, etc., all of
  which are language-specific.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ab3276d9f30245ad15aecd020e34651422c35952

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile          |  1 +
 binaryen/DESCR    | 20 ++++++++++++++++++++
 binaryen/Makefile | 21 +++++++++++++++++++++
 binaryen/PLIST    | 13 +++++++++++++
 binaryen/distinfo |  6 ++++++
 5 files changed, 61 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index e58cb460c6..e325239577 100644
--- a/Makefile
+++ b/Makefile
@@ -263,6 +263,7 @@ SUBDIR+=	bfgminer
 SUBDIR+=	bicon
 SUBDIR+=	bigdft
 SUBDIR+=	bijiben
+SUBDIR+=	binaryen
 SUBDIR+=	bind916
 SUBDIR+=	bindgraph
 SUBDIR+=	binutils-gold-git
diff --git a/binaryen/DESCR b/binaryen/DESCR
new file mode 100644
index 0000000000..1513e8a151
--- /dev/null
+++ b/binaryen/DESCR
@@ -0,0 +1,20 @@
+Binaryen is a compiler and toolchain infrastructure library for WebAssembly,
+written in C++. It aims to make compiling to WebAssembly easy, fast, and
+effective.
+
+* Easy: Binaryen has a simple C API in a single header, and can also be used
+  from JavaScript. It accepts input in WebAssembly-like form but also accepts
+  a general control flow graph for compilers that prefer that.
+
+* Fast: Binaryen's internal IR uses compact data structures and is designed
+  for completely parallel codegen and optimization, using all available CPU
+  cores. Binaryen's IR also compiles down to WebAssembly extremely easily and
+  quickly because it is essentially a subset of WebAssembly.
+
+* Effective: Binaryen's optimizer has many passes (see an overview later
+  down) that can improve code size and speed. These optimizations aim to
+  make Binaryen powerful enough to be used as a compiler backend by itself.
+  One specific area of focus is on WebAssembly-specific optimizations (that
+  general-purpose compilers might not do), which you can think of as wasm
+  minification, similar to minification for JavaScript, CSS, etc., all of
+  which are language-specific.
diff --git a/binaryen/Makefile b/binaryen/Makefile
new file mode 100644
index 0000000000..582cc5f58e
--- /dev/null
+++ b/binaryen/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+VERSION=	99
+DISTNAME=	binaryen-${VERSION}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=WebAssembly/}
+GITHUB_TAG=	version_${VERSION}
+
+MAINTAINER=	fcambus%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/WebAssembly/binaryen/
+COMMENT=	Compiler and toolchain infrastructure library for WebAssembly
+LICENSE=	apache-2.0
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++14
+
+WRKSRC=		${WRKDIR}/binaryen-${GITHUB_TAG}
+
+CMAKE_ARGS+=	-DENABLE_WERROR=OFF
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/binaryen/PLIST b/binaryen/PLIST
new file mode 100644
index 0000000000..34cf1304bd
--- /dev/null
+++ b/binaryen/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+bin/wasm-as
+bin/wasm-ctor-eval
+bin/wasm-dis
+bin/wasm-emscripten-finalize
+bin/wasm-metadce
+bin/wasm-opt
+bin/wasm-reduce
+bin/wasm-shell
+bin/wasm-split
+bin/wasm2js
+include/binaryen-c.h
+lib/libbinaryen.so
diff --git a/binaryen/distinfo b/binaryen/distinfo
new file mode 100644
index 0000000000..3a7f9ab968
--- /dev/null
+++ b/binaryen/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (binaryen-99.tar.gz) = 9ee91e4a25ea11765b19a77613f51f30181daefb
+RMD160 (binaryen-99.tar.gz) = a94eeae092a3732f5d44bdcc43b5fe2c5512f5bd
+SHA512 (binaryen-99.tar.gz) = 58c21d7f99a0e0b04243893ffef479662d6cda7386bfdf03cabe9896d8da04bf9e5560b75f2262e43cca8943e6e2d4594c69eeb36160b072e6d48fe6eb5f56f5
+Size (binaryen-99.tar.gz) = 3642692 bytes


Home | Main Index | Thread Index | Old Index