2019-06-18 17:19:20 +02:00
|
|
|
# $NetBSD: options.mk,v 1.2 2019/06/18 15:19:20 nia Exp $
|
2018-12-16 03:05:23 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.znc
|
2019-06-18 17:19:20 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= debug inet6 perl python sasl-cyrus tcl
|
2018-12-16 03:05:23 +01:00
|
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
|
|
|
|
2019-06-18 17:19:20 +02:00
|
|
|
PKG_OPTIONS_LEGACY_OPTS+= sasl:sasl-cyrus
|
|
|
|
|
2018-12-16 03:05:23 +01:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
# Debug build
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# IPv6 support
|
|
|
|
.if empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Perl support
|
|
|
|
.if !empty(PKG_OPTIONS:Mperl)
|
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-perl
|
|
|
|
USE_TOOLS+= perl
|
|
|
|
PLIST_SRC+= PLIST.perl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# TCL option
|
|
|
|
.if !empty(PKG_OPTIONS:Mtcl)
|
|
|
|
.include "../../lang/tcl/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-tcl
|
|
|
|
CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}/lib
|
|
|
|
PLIST_SRC+= PLIST.tcl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Python support
|
|
|
|
.if !empty(PKG_OPTIONS:Mpython)
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-python=python-${PYVERSSUFFIX}
|
|
|
|
PLIST_SRC+= PLIST.python
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Cyrus SASL support
|
2019-06-18 17:19:20 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msasl-cyrus)
|
2018-12-16 03:05:23 +01:00
|
|
|
.include "../../security/cyrus-sasl/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-cyrus
|
|
|
|
PLIST_SRC+= PLIST.cyrus
|
|
|
|
.endif
|