freebsd-ports/devel/wasmer/Makefile
2024-02-19 12:59:23 +01:00

43 lines
879 B
Makefile

PORTNAME= wasmer
DISTVERSIONPREFIX= v
DISTVERSION= 4.2.5
PORTREVISION= 2
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>