# $NetBSD: options.mk,v 1.4 2007/08/13 22:18:58 tnn Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.libpurple PKG_SUPPORTED_OPTIONS+= gnutls perl tcl debug dbus PKG_SUGGESTED_OPTIONS+= gnutls .include "../../mk/bsd.options.mk" .if !empty(PKG_OPTIONS:Mgnutls) CONFIGURE_ARGS+= --disable-nss CONFIGURE_ARGS+= --with-gnutls-includes=${BUILDLINK_PREFIX.gnutls}/include CONFIGURE_ARGS+= --with-gnutls-libs=${BUILDLINK_PREFIX.gnutls}/lib . include "../../security/gnutls/buildlink3.mk" .else CONFIGURE_ARGS+= --disable-gnutls CONFIGURE_ARGS+= --with-nspr-includes=${BUILDLINK_PREFIX.nspr}/include/nspr CONFIGURE_ARGS+= --with-nspr-libs=${BUILDLINK_PREFIX.nspr}/lib/nspr CONFIGURE_ARGS+= --with-nss-includes=${BUILDLINK_PREFIX.nss}/include/nss/nss CONFIGURE_ARGS+= --with-nss-libs=${BUILDLINK_PREFIX.nss}/lib/nss . include "../../devel/nss/buildlink3.mk" .endif .if !empty(PKG_OPTIONS:Mperl) USE_TOOLS+= perl:run . include "../../lang/perl5/buildlink3.mk" .else CONFIGURE_ARGS+= --disable-perl .endif .if !empty(PKG_OPTIONS:Mtcl) CONFIGURE_ARGS+= --with-tclconfig=${BUILDLINK_PREFIX.tcl}/lib . include "../../lang/tcl/buildlink3.mk" .else CONFIGURE_ARGS+= --disable-tcl .endif .if !empty(PKG_OPTIONS:Mdbus) CONFIGURE_ARGS+= --enable-dbus CONFIGURE_ARGS+= --with-python=${PYTHONBIN} PLIST_SUBST+= DBUS= REPLACE_PYTHON+= libpurple/purple-remote REPLACE_PYTHON+= libpurple/purple-url-handler . include "../../sysutils/dbus/buildlink3.mk" . include "../../sysutils/dbus-glib/buildlink3.mk" . include "../../lang/python/application.mk" .else CONFIGURE_ARGS+= --disable-dbus PLIST_SUBST+= DBUS="@comment " .endif .if !empty(PKG_OPTIONS:Mdebug) CONFIGURE_ARGS+= --enable-debug .else CONFIGURE_ARGS+= --disable-debug .endif