diff options
Diffstat (limited to 'www/npm/Makefile')
-rw-r--r-- | www/npm/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/www/npm/Makefile b/www/npm/Makefile index efe8617e4443..3d6b58264a6b 100644 --- a/www/npm/Makefile +++ b/www/npm/Makefile @@ -13,7 +13,7 @@ MASTER_SITES= LOCAL/sunpoet MAINTAINER= sunpoet@FreeBSD.org COMMENT= Node package manager -RUN_DEPENDS= node>=0.6:${PORTSDIR}/www/node +OPTIONS= NODE_DEVEL "Use www/node-devel instead of www/node" off NO_BUILD= yes USE_XZ= yes @@ -42,4 +42,12 @@ MAN3= npm.3 npm-bin.3 npm-bugs.3 npm-commands.3 npm-config.3 \ npm-tag.3 npm-test.3 npm-uninstall.3 npm-unpublish.3 \ npm-update.3 npm-version.3 npm-view.3 npm-whoami.3 +.include <bsd.port.options.mk> + +.if !defined(WITH_NODE_DEVEL) +RUN_DEPENDS= ${LOCALBASE}/bin/node:${PORTSDIR}/www/node +.else +RUN_DEPENDS= ${LOCALBASE}/bin/node:${PORTSDIR}/www/node-devel +.endif + .include <bsd.port.mk> |