From fa93fdc383c190569821ae224413c848c19d9a7c Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 30 Jan 2023 22:20:38 +0800 Subject: Framework: Rewrite nodejs.mk and reorganize www/{node,npm,yarn} The current USES=nodejs has the following issues: - www/node is not the default version while www/node16 is. - It also means inconsistent naming of node ports. - www/npm duplicates with www/npm-node16. - www/yarn duplicates with www/yarn-node16. The notable changes are introduced to fix the above issues: - Rewrite Mk/Uses/nodejs.mk. - Add new LTS version of nodejs (www/noe18). - Add new current version of nodejs (www/node19). - Change default nodejs version from 16 to 18 (latest LTS). - Use consistent naming for all supported node versions. - Convert www/node, www/npm and www/yarn to meta ports. After this commit: - All supported node versions are named as node{14,16,18,19} - www/node is a meta port which depends on the default version (e.g. www/node18) - www/npm is a meta port which depends on the default version (e.g. www/npm-node18) - www/yarn is a meta port which depends on the default version (e.g. www/yarn-node18) - Bump PORTREVISION of dependent ports for dependency change (from www/node16 to www/node18) Discussed with: jrm, otis, pizzamig --- www/node19/files/patch-node.gypi | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 www/node19/files/patch-node.gypi (limited to 'www/node19/files/patch-node.gypi') diff --git a/www/node19/files/patch-node.gypi b/www/node19/files/patch-node.gypi new file mode 100644 index 000000000000..f48b5b1091cb --- /dev/null +++ b/www/node19/files/patch-node.gypi @@ -0,0 +1,12 @@ +--- node.gypi.orig 2021-10-19 00:48:32 UTC ++++ node.gypi +@@ -319,6 +319,9 @@ + [ 'node_use_openssl=="true"', { + 'defines': [ 'HAVE_OPENSSL=1' ], + 'conditions': [ ++ ['openssl_no_asm==1', { ++ 'defines': [ 'OPENSSL_NO_ASM' ], ++ }], + [ 'node_shared_openssl=="false"', { + 'defines': [ 'OPENSSL_API_COMPAT=0x10100000L', ], + 'dependencies': [ -- cgit v1.2.3