aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-09-18 02:00:04 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-09-18 02:00:04 +0800
commitba7bf500324b31bef4a016903e982ad992b2dab5 (patch)
tree4aad34ccdb9c11ca595fa1991d783c2c138da0e3 /www
parente4f08ef8ae4802c1a719d5d47a8a37b1b46155c7 (diff)
downloadfreebsd-ports-gnome-ba7bf500324b31bef4a016903e982ad992b2dab5.tar.gz
freebsd-ports-gnome-ba7bf500324b31bef4a016903e982ad992b2dab5.tar.zst
freebsd-ports-gnome-ba7bf500324b31bef4a016903e982ad992b2dab5.zip
Add NODE4, NODE6 and NODE8 options
Diffstat (limited to 'www')
-rw-r--r--www/npm/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/www/npm/Makefile b/www/npm/Makefile
index 9cc535df0774..b90b070e4827 100644
--- a/www/npm/Makefile
+++ b/www/npm/Makefile
@@ -12,10 +12,16 @@ COMMENT= Node package manager
LICENSE= MIT
-RUN_DEPENDS= gmake:devel/gmake \
- node>=0.8.0:www/node
+RUN_DEPENDS= gmake:devel/gmake
-CONFLICTS_INSTALL= npm2 npm3 npm4
+CONFLICTS_INSTALL?= npm-node4 npm-node6 npm2 npm3 npm4
+
+OPTIONS_SINGLE= BACKEND
+OPTIONS_SINGLE_BACKEND= NODE4 NODE6 NODE8
+OPTIONS_DEFAULT=NODE8
+NODE4_DESC= Use Node.js 4.x (www/node4) as backend
+NODE6_DESC= Use Node.js 6.x (www/node6) as backend
+NODE8_DESC= Use Node.js 8.x (www/node) as backend
NO_ARCH= yes
NO_BUILD= yes
@@ -28,6 +34,10 @@ CPE_PRODUCT= node_packaged_modules
SHEBANG_GLOB= *.py
SHEBANG_FILES= lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples
+NODE4_RUN_DEPENDS= node4>=0.8.0:www/node4
+NODE6_RUN_DEPENDS= node6>=0.8.0:www/node6
+NODE8_RUN_DEPENDS= node>=0.8.0:www/node
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"