summaryrefslogtreecommitdiffhomepage
path: root/pkg/contrib/src/libunit-wasm
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-08-31 09:41:46 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-08-31 09:41:46 -0700
commitc45c8919c7232eb20023484f6d1fc9f1f50395d8 (patch)
treecc12eb307c1611494948645e4b487fa06495c3d2 /pkg/contrib/src/libunit-wasm
parent88c90e1c351ab8c5bd487a5cd4b735014b08e271 (diff)
parent9b22b6957bc87b3df002d0bc691fdae6a20abdac (diff)
downloadunit-c45c8919c7232eb20023484f6d1fc9f1f50395d8.tar.gz
unit-c45c8919c7232eb20023484f6d1fc9f1f50395d8.tar.bz2
Merged with the default branch.1.31.0-1
Diffstat (limited to 'pkg/contrib/src/libunit-wasm')
-rw-r--r--pkg/contrib/src/libunit-wasm/Makefile23
-rw-r--r--pkg/contrib/src/libunit-wasm/version2
2 files changed, 25 insertions, 0 deletions
diff --git a/pkg/contrib/src/libunit-wasm/Makefile b/pkg/contrib/src/libunit-wasm/Makefile
new file mode 100644
index 00000000..51c24456
--- /dev/null
+++ b/pkg/contrib/src/libunit-wasm/Makefile
@@ -0,0 +1,23 @@
+# libunit-wasm
+
+include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version
+LIBUNIT_WASM_URL := https://github.com/nginx/unit-wasm.git
+
+PKGS += libunit-wasm
+
+DEPS_libunit-wasm = wasi-sysroot $(DEPS_wasi-sysroot)
+
+$(TARBALLS)/libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz:
+ $(call download_git,$(LIBUNIT_WASM_URL),,$(LIBUNIT_WASM_GITHASH))
+
+.sum-libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz
+ $(call check_githash,$(LIBUNIT_WASM_GITHASH))
+ touch $@
+
+libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz
+ $(UNPACK)
+ $(MOVE)
+
+.libunit-wasm: libunit-wasm
+ cd $< && CFLAGS= make WASI_SYSROOT=$(TOPSRC)wasi-sysroot V=1 libunit-wasm
+ touch $@
diff --git a/pkg/contrib/src/libunit-wasm/version b/pkg/contrib/src/libunit-wasm/version
new file mode 100644
index 00000000..7ca15f98
--- /dev/null
+++ b/pkg/contrib/src/libunit-wasm/version
@@ -0,0 +1,2 @@
+LIBUNIT_WASM_VERSION := 0.1.0
+LIBUNIT_WASM_GITHASH := d6ed6a219b31a58526721f96195c80061d41ce54