Update: chat/finch to 2.6.1 chat/libpurple to 2.6.1 chat/pidgin to 2.6.1 chat/pidgin-sametime to 2.6.1 chat/pidgin-silc to 2.6.1 major changes: o addition of farsight support for voice/video chats (untested, new option on by default) o addition of dependency on devel/libidn o addition of gstreamer option for libpurple (on by default)
78 lines
2.3 KiB
Makefile
78 lines
2.3 KiB
Makefile
# $NetBSD: options.mk,v 1.11 2009/09/06 21:06:44 abs Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.libpurple
|
|
PKG_SUPPORTED_OPTIONS+= gnutls perl tcl debug dbus sasl avahi
|
|
PKG_SUPPORTED_OPTIONS+= farsight gstreamer
|
|
PKG_SUGGESTED_OPTIONS+= gnutls dbus avahi farsight gstreamer
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= avahi dbus gnutls nss perl
|
|
|
|
.if !empty(PKG_OPTIONS:Mavahi)
|
|
PLIST.avahi= yes
|
|
. include "../../net/avahi/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgnutls)
|
|
PLIST.gnutls= yes
|
|
CONFIGURE_ARGS+= --enable-gnutls
|
|
CONFIGURE_ARGS+= --with-gnutls-includes=${BUILDLINK_PREFIX.gnutls}/include
|
|
CONFIGURE_ARGS+= --with-gnutls-libs=${BUILDLINK_PREFIX.gnutls}/lib
|
|
|
|
. include "../../security/gnutls/buildlink3.mk"
|
|
.else
|
|
PLIST.nss= yes
|
|
CONFIGURE_ARGS+= --enable-nss
|
|
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)
|
|
PLIST.perl= yes
|
|
CONFIGURE_ARGS+= --enable-perl
|
|
USE_TOOLS+= perl:run
|
|
. include "../../lang/perl5/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mtcl)
|
|
CONFIGURE_ARGS+= --with-tclconfig=${BUILDLINK_PREFIX.tcl}/lib
|
|
. include "../../lang/tcl/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdbus)
|
|
CONFIGURE_ARGS+= --enable-dbus
|
|
CONFIGURE_ARGS+= --with-python=${PYTHONBIN}
|
|
PLIST.dbus= yes
|
|
REPLACE_SH+= libpurple/purple-send
|
|
REPLACE_SH+= libpurple/purple-send-async
|
|
REPLACE_PYTHON+= libpurple/purple-remote
|
|
REPLACE_PYTHON+= libpurple/purple-url-handler
|
|
. include "../../sysutils/py-dbus/buildlink3.mk"
|
|
. include "../../sysutils/dbus/buildlink3.mk"
|
|
. include "../../sysutils/dbus-glib/buildlink3.mk"
|
|
. include "../../lang/python/application.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msasl)
|
|
CONFIGURE_ARGS+= --enable-cyrus-sasl
|
|
. include "../../security/cyrus-sasl/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mfarsight)
|
|
CONFIGURE_ARGS+= --enable-farsight
|
|
. include "../../multimedia/farsight2/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mgstreamer)
|
|
CONFIGURE_ARGS+= --enable-gstreamer
|
|
. include "../../multimedia/gstreamer0.10/buildlink3.mk"
|
|
.endif
|