Files
pkgsrc-ng/lang/nodejs/options.mk
2016-01-21 23:41:46 +01:00

38 lines
840 B
Makefile

# $NetBSD: options.mk,v 1.5 2015/06/03 18:23:24 fhajny Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.node
PKG_SUPPORTED_OPTIONS= openssl dtrace icu
PKG_SUGGESTED_OPTIONS= openssl
.if (${OPSYS} == "SunOS" || ${OPSYS} == "Darwin") \
&& exists(/usr/sbin/dtrace)
PKG_SUGGESTED_OPTIONS+= dtrace
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= dtrace
.if !empty(PKG_OPTIONS:Mdtrace)
CONFIGURE_ARGS+= --with-dtrace
PLIST.dtrace= yes
.else
CONFIGURE_ARGS+= --without-dtrace
.endif
.if !empty(PKG_OPTIONS:Micu)
CONFIGURE_ARGS+= --with-intl=system-icu
.include "../../textproc/icu/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mopenssl)
.include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --shared-openssl
.else
CONFIGURE_ARGS+= --without-openssl
.endif
.if empty(PKG_OPTIONS:Msnapshot)
CONFIGURE_ARGS+= --without-snapshot
.endif