Changeset View
Changeset View
Standalone View
Standalone View
www/deno/Makefile
Show All 14 Lines | |||||
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> | .include <bsd.port.options.mk> | ||||
# clang10+ is required, this conditional can be dropped when | # clang10+ is required, this conditional can be dropped when | ||||
# 11.3 and 12.1 are EOL | # 12.1 is EOL | ||||
.if (${OSVERSION} >= 1100000 && ${OSVERSION} < 1103511) || \ | .if (${OSVERSION} >= 1200000 && ${OSVERSION} < 1201515) | ||||
(${OSVERSION} >= 1200000 && ${OSVERSION} < 1201515) | |||||
BUILD_DEPENDS+= llvm10>0:devel/llvm10 | BUILD_DEPENDS+= llvm10>0:devel/llvm10 | ||||
.endif | .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 | ||||
▲ Show 20 Lines • Show All 311 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 | ||||
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 | # clang10+ is required, this conditional can be dropped when | ||||
# 11.3 and 12.1 are EOL | # 12.1 is EOL | ||||
.if (${OSVERSION} >= 1100000 && ${OSVERSION} < 1103511) || \ | .if (${OSVERSION} >= 1200000 && ${OSVERSION} < 1201515) | ||||
(${OSVERSION} >= 1200000 && ${OSVERSION} < 1201515) | |||||
@${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} < ${FILESDIR}/extrapatch-clang10 | @${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} < ${FILESDIR}/extrapatch-clang10 | ||||
.endif | .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> |