git: d9fea2b9cb23 - 2023Q4 - www/node: Use the user's default nodejs version

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 16 Oct 2023 21:36:43 UTC
The branch 2023Q4 has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d9fea2b9cb23533dd4de6189625a3972b10ec67b

commit d9fea2b9cb23533dd4de6189625a3972b10ec67b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-10-16 15:18:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-10-16 21:36:19 +0000

    www/node: Use the user's default nodejs version
    
    (cherry picked from commit e4bae576a4cda2650e3e416fab271a82afe959a9)
---
 www/node/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/node/Makefile b/www/node/Makefile
index 9a5e27f0b247..40a17ab27b0d 100644
--- a/www/node/Makefile
+++ b/www/node/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	node
-PORTVERSION=	18.16.0
+PORTVERSION=	${NODEJS_PORTVERSION}
 CATEGORIES=	www
 
 MAINTAINER=	sunpoet@FreeBSD.org
@@ -9,4 +9,6 @@ WWW=		https://nodejs.org/ \
 
 USES=		metaport nodejs:run
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../node${NODEJS_VERSION}/Makefile.version"
+.include <bsd.port.post.mk>