summaryrefslogtreecommitdiff
path: root/lang/nodejs/options.mk
diff options
context:
space:
mode:
authormspo <mspo@pkgsrc.org>2013-05-22 15:17:07 +0000
committermspo <mspo@pkgsrc.org>2013-05-22 15:17:07 +0000
commit817060156cef37e2ea373c729c62c0469c2056a7 (patch)
treee3607bf9171f1f76ad4764d97a00267bc3fcb63d /lang/nodejs/options.mk
parente7d6391d6459d3e04290befca564b7fc7cde5162 (diff)
downloadpkgsrc-817060156cef37e2ea373c729c62c0469c2056a7.tar.gz
add nodejs package, previously in wip/node
Diffstat (limited to 'lang/nodejs/options.mk')
-rw-r--r--lang/nodejs/options.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/nodejs/options.mk b/lang/nodejs/options.mk
new file mode 100644
index 00000000000..cb64fc4a942
--- /dev/null
+++ b/lang/nodejs/options.mk
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.1 2013/05/22 15:17:07 mspo Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.node
+PKG_SUPPORTED_OPTIONS= openssl dtrace
+PKG_SUGGESTED_OPTIONS= openssl
+
+.if ${OPSYS} == "SunOS" && exists(/usr/sbin/dtrace)
+PKG_SUGGESTED_OPTIONS+= dtrace
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdtrace)
+CONFIGURE_ARGS+= --with-dtrace
+.else
+CONFIGURE_ARGS+= --without-dtrace
+.endif
+
+.if !empty(PKG_OPTIONS:Mopenssl)
+.include "../../security/openssl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-openssl
+.endif
+
+.if empty(PKG_OPTIONS:Msnapshot)
+CONFIGURE_ARGS+= --without-snapshot
+.endif