pkgsrc-wip/znc/options.mk
Thomas Klausner d715e44e37 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:38:08 +00:00

89 lines
1.6 KiB
Makefile

# $NetBSD: options.mk,v 1.8 2014/01/25 10:38:27 thomasklausner Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.znc
PKG_SUPPORTED_OPTIONS= debug poll inet6 openssl perl python tcl tdns sasl
PKG_SUGGESTED_OPTIONS= poll inet6 openssl tdns
.include "../../mk/bsd.options.mk"
#
# Debug build
#
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
.endif
#
# Use select() instead of poll()
#
.if empty(PKG_OPTIONS:Mpoll)
CONFIGURE_ARGS+= --disable-poll
.endif
#
# IPv6 support
#
.if empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --disable-ipv6
.endif
#
# OpenSSL support
#
.if empty(PKG_OPTIONS:Mopenssl)
CONFIGURE_ARGS+= --disable-openssl
.else
.include "../../security/openssl/buildlink3.mk"
PLIST_SRC+= PLIST.openssl
.endif
#
# Threaded DNS
#
.if empty(PKG_OPTIONS:Mtdns)
CONFIGURE_ARGS+= --disable-tdns
.else
.include "../../mk/pthread.buildlink3.mk"
.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= 26 27
PY_PEP3147= no
.include "../../lang/python/extension.mk"
CONFIGURE_ARGS+= --enable-python=python-${PYVERSSUFFIX}
USE_TOOLS+= perl
PLIST_SRC+= PLIST.python
.endif
#
# Cyrus SASL support
#
.if !empty(PKG_OPTIONS:Msasl)
.include "../../security/cyrus-sasl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-cyrus
PLIST_SRC+= PLIST.cyrus
.endif