Changeset View
Changeset View
Standalone View
Standalone View
head/www/deno/Makefile
Show All 11 Lines | |||||
LICENSE_FILE= ${WRKSRC}/LICENSE.md | LICENSE_FILE= ${WRKSRC}/LICENSE.md | ||||
BROKEN_i386= cargo:warning=c/freebsd.c:31:10: error: conflicting types for 'get_cpu_speed' | BROKEN_i386= cargo:warning=c/freebsd.c:31:10: error: conflicting types for 'get_cpu_speed' | ||||
BUILD_DEPENDS= binutils>0:devel/binutils \ | BUILD_DEPENDS= binutils>0:devel/binutils \ | ||||
gn:devel/gn \ | gn:devel/gn \ | ||||
libunwind>0:devel/libunwind | libunwind>0:devel/libunwind | ||||
.include <bsd.port.options.mk> | |||||
# clang10+ is required, this conditional can be dropped when 12.1 is EOL | |||||
.if (${OSVERSION} >= 1200000 && ${OSVERSION} < 1201515) | |||||
BUILD_DEPENDS+= llvm10>0:devel/llvm10 | |||||
.endif | |||||
USES= cargo ninja pkgconfig:build python:3.5+,build | USES= cargo ninja pkgconfig:build python:3.5+,build | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= denoland | GH_ACCOUNT= denoland | ||||
USE_GNOME= glib20 | USE_GNOME= glib20 | ||||
MAKE_JOBS_UNSAFE= yes | MAKE_JOBS_UNSAFE= yes | ||||
▲ Show 20 Lines • Show All 347 Lines • ▼ Show 20 Lines | CARGO_CRATES= Inflector-0.11.4 \ | ||||
winres-0.1.11 \ | winres-0.1.11 \ | ||||
ws2_32-sys-0.2.1 \ | ws2_32-sys-0.2.1 \ | ||||
wyz-0.2.0 | wyz-0.2.0 | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" \ | ${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" \ | ||||
${WRKSRC}/cargo-crates/rusty_v8-${RUSTY_VERS}/build/toolchain/gcc_toolchain.gni \ | ${WRKSRC}/cargo-crates/rusty_v8-${RUSTY_VERS}/build/toolchain/gcc_toolchain.gni \ | ||||
${WRKSRC}/cargo-crates/rusty_v8-${RUSTY_VERS}/buildtools/third_party/libc++/BUILD.gn | ${WRKSRC}/cargo-crates/rusty_v8-${RUSTY_VERS}/buildtools/third_party/libc++/BUILD.gn | ||||
# clang10+ is required, this conditional can be dropped when 12.1 is EOL | |||||
.if (${OSVERSION} >= 1200000 && ${OSVERSION} < 1201515) | |||||
@${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} < ${FILESDIR}/extrapatch-clang10 | |||||
.endif | |||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKDIR}/target/release/deno ${STAGEDIR}${LOCALBASE}/bin | ${INSTALL_PROGRAM} ${WRKDIR}/target/release/deno ${STAGEDIR}${LOCALBASE}/bin | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |