2019-10-01 15:49:58 +02:00
|
|
|
# $NetBSD: options.mk,v 1.3 2019/10/01 13:49:58 nia Exp $
|
2018-12-16 03:05:23 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.znc
|
2019-10-01 15:49:58 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= inet6 nls perl python sasl-cyrus tcl
|
|
|
|
PKG_SUGGESTED_OPTIONS= inet6 nls
|
2018-12-16 03:05:23 +01:00
|
|
|
|
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"
|
|
|
|
|
2019-10-01 15:49:58 +02:00
|
|
|
# IPv6 support
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CMAKE_ARGS+= -DWANT_IPV6=ON
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_IPV6=OFF
|
2018-12-16 03:05:23 +01:00
|
|
|
.endif
|
|
|
|
|
2019-10-01 15:49:58 +02:00
|
|
|
# Native Language support
|
|
|
|
.if !empty(PKG_OPTIONS:Mnls)
|
|
|
|
USE_TOOLS+= msgfmt
|
|
|
|
PLIST_SRC+= PLIST.nls
|
|
|
|
CMAKE_ARGS+= -DWANT_I18N=ON
|
|
|
|
CMAKE_ARGS+= -DWANT_ICU=ON
|
|
|
|
. include "../../devel/boost-libs/buildlink3.mk"
|
|
|
|
. include "../../textproc/icu/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_I18N=OFF
|
|
|
|
CMAKE_ARGS+= -DWANT_ICU=OFF
|
2018-12-16 03:05:23 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Perl support
|
|
|
|
.if !empty(PKG_OPTIONS:Mperl)
|
2019-10-01 15:49:58 +02:00
|
|
|
. include "../../lang/perl5/buildlink3.mk"
|
|
|
|
CMAKE_ARGS+= -DWANT_PERL=ON
|
|
|
|
USE_TOOLS+= perl
|
|
|
|
PLIST_SRC+= PLIST.perl
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_PERL=OFF
|
2018-12-16 03:05:23 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# TCL option
|
|
|
|
.if !empty(PKG_OPTIONS:Mtcl)
|
2019-10-01 15:49:58 +02:00
|
|
|
. include "../../lang/tcl/buildlink3.mk"
|
|
|
|
CMAKE_ARGS+= -DWANT_TCL=ON
|
|
|
|
PLIST_SRC+= PLIST.tcl
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_TCL=OFF
|
2018-12-16 03:05:23 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Python support
|
|
|
|
.if !empty(PKG_OPTIONS:Mpython)
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
2019-10-01 15:49:58 +02:00
|
|
|
. include "../../lang/python/extension.mk"
|
|
|
|
CMAKE_ARGS+= -DWANT_PYTHON=ON
|
|
|
|
CMAKE_ARGS+= -DWANT_PYTHON_VERSION=python-${PYVERSSUFFIX}
|
|
|
|
PLIST_SRC+= PLIST.python
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_PYTHON=OFF
|
2018-12-16 03:05:23 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Cyrus SASL support
|
2019-06-18 17:19:20 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msasl-cyrus)
|
2019-10-01 15:49:58 +02:00
|
|
|
.include "../../security/cyrus-sasl/buildlink3.mk"
|
|
|
|
CMAKE_ARGS+= -DWANT_CYRUS=ON
|
|
|
|
PLIST_SRC+= PLIST.cyrus
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DWANT_CYRUS=OFF
|
2018-12-16 03:05:23 +01:00
|
|
|
.endif
|