summaryrefslogtreecommitdiff
path: root/www/node20/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/node20/Makefile')
-rw-r--r--www/node20/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/node20/Makefile b/www/node20/Makefile
index 936f569f6f91..a80e7531f69c 100644
--- a/www/node20/Makefile
+++ b/www/node20/Makefile
@@ -1,6 +1,7 @@
PORTNAME= node
PORTVERSION= ${NODEJS_PORTVERSION}
DISTVERSIONPREFIX= v
+PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= https://nodejs.org/dist/v${PORTVERSION}/
PKGNAMESUFFIX= ${PORTVERSION:R:R}
@@ -21,23 +22,28 @@ BUILD_DEPENDS= objdump:devel/binutils
LIB_DEPENDS= libbrotlidec.so:archivers/brotli \
libcares.so:dns/c-ares \
libicui18n.so:devel/icu \
+ libllhttp.so:www/llhttp \
libnghttp2.so:www/libnghttp2 \
libnghttp3.so:www/libnghttp3 \
libngtcp2.so:net/libngtcp2 \
libsimdjson.so:devel/simdjson \
libuv.so:devel/libuv
+RUN_DEPENDS= corepack>=0:www/corepack
USES= compiler:c++11-lang gmake localbase pkgconfig python:build shebangfix tar:xz
CONFIGURE_ARGS= --prefix=${PREFIX:S|^${DESTDIR}||} \
--shared-brotli \
--shared-cares \
+ --shared-http-parser \
+ --shared-http-parser-libname=llhttp \
--shared-libuv \
--shared-nghttp2 \
--shared-nghttp3 \
--shared-ngtcp2 \
--shared-simdjson \
--shared-zlib \
+ --without-corepack \
--with-intl=system-icu \
--without-npm
CXXFLAGS_powerpc64= -mpower8-vector
@@ -80,6 +86,9 @@ post-patch:
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/deps/brotli/
@${RM} -r ${WRKSRC}/deps/cares/
+ @${RM} -r ${WRKSRC}/deps/corepack/
+ @${RM} -r ${WRKSRC}/deps/icu-small/
+ @${RM} -r ${WRKSRC}/deps/llhttp/
@${RM} -r ${WRKSRC}/deps/nghttp2/
@${RM} -r ${WRKSRC}/deps/ngtcp2/
@${RM} -r ${WRKSRC}/deps/npm/