diff options
Diffstat (limited to 'lang/nodejs/options.mk')
-rw-r--r-- | lang/nodejs/options.mk | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lang/nodejs/options.mk b/lang/nodejs/options.mk index ec6225b9b89..17821956680 100644 --- a/lang/nodejs/options.mk +++ b/lang/nodejs/options.mk @@ -1,9 +1,11 @@ -# $NetBSD: options.mk,v 1.10 2016/06/02 09:57:32 fhajny Exp $ +# $NetBSD: options.mk,v 1.11 2018/05/03 21:19:16 fhajny Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.node PKG_SUPPORTED_OPTIONS= openssl dtrace PKG_SUGGESTED_OPTIONS= openssl +.include "../../mk/bsd.prefs.mk" + .if (${OPSYS} == "SunOS" || ${OPSYS} == "Darwin") \ && exists(/usr/sbin/dtrace) PKG_SUGGESTED_OPTIONS+= dtrace @@ -11,7 +13,7 @@ PKG_SUGGESTED_OPTIONS+= dtrace .include "../../mk/bsd.options.mk" -PLIST_VARS+= dtrace +PLIST_VARS+= dtrace openssl .if !empty(PKG_OPTIONS:Mdtrace) CONFIGURE_ARGS+= --with-dtrace @@ -22,13 +24,11 @@ CONFIGURE_ARGS+= --without-dtrace # print-PLIST helper PRINT_PLIST_AWK+= {if ($$0 ~ /lib\/dtrace/) {$$0 = "$${PLIST.dtrace}" $$0;}} +PRINT_PLIST_AWK+= {if ($$0 ~ /include\/node\/openssl/) {$$0 = "$${PLIST.openssl}" $$0;}} .if !empty(PKG_OPTIONS:Mopenssl) -BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0.2 -.include "../../security/openssl/buildlink3.mk" -CONFIGURE_ARGS+= --shared-openssl -_WRAP_EXTRA_ARGS.CXX+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib -CWRAPPERS_APPEND.cxx+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib +# nodejs 10.x requires OpenSSL 1.1.x. Use embedded source until we have such. +PLIST.openssl= yes .else CONFIGURE_ARGS+= --without-ssl .endif |