blob: 052c845c0f610677a33f7c8a084c17bf4dadf7f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
PORTNAME= wasmer
DISTVERSIONPREFIX= v
DISTVERSION= 4.2.2
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= kjozic@gmail.com
COMMENT= WebAssembly Runtime supporting WASIX, WASI and Emscripten
WWW= https://wasmer.io/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= only aarch64 and amd64 are supported so far
BUILD_DEPENDS= bash>0:shells/bash \
libffi>0:devel/libffi \
zstd>0:archivers/zstd
USES= cargo gmake llvm pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= wasmerio
CARGO_BUILD= no
CARGO_INSTALL= no
MAKE_ENV+= ENABLE_CRANELIFT=1 \
ENABLE_LLVM=1 \
ENABLE_SINGLEPASS=1
ALL_TARGET= build-wasmer
PLIST_FILES= bin/wasmer
pre-configure:
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/wasmer ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
|