pkgsrc/chat/libpurple/options.mk
wiz 0e240eba85 Update to 2.6.2, based on patches provided by Joachim Kuebart in PR 42005.
Additional changes:
Fix farsight handling in libpurple.
Set LICENSE.

2.6.2 (09/05/2009):
	Mark: Woo boy it's been a busy two weeks.  There was a lot of new code
	in 2.6.0, and with new code comes new bugs.  The cadre of relentless
	developers responsible for Pidgin have been hard at work, and I believe
	they have fixed all the major bugs that cropped up.  My thanks to all
	those names listed as Current Developers in Pidgin's 'About' window.

	Elliott: Well now, just as Mark said, there was a lot of new stuff that
	probably came up with tons of bugs.  So I can't say I wrote anything
	super-awesome, but I definitely fixed quite a few of those itty-bitty
	why-didn't-this-work-this-way sort of bugs.
2009-12-08 12:45:42 +00:00

88 lines
2.6 KiB
Makefile

# $NetBSD: options.mk,v 1.12 2009/12/08 12:45:42 wiz 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 tcl
.if !empty(PKG_OPTIONS:Mavahi)
PLIST.avahi= yes
CONFIGURE_ARGS+= --enable-avahi
. 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)
PLIST.tcl= yes
CONFIGURE_ARGS+= --enable-tcl
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
# voice/video support requires both farsight and gstreamer
.if !empty(PKG_OPTIONS:Mfarsight) && !empty(PKG_OPTIONS:Mgstreamer)
CONFIGURE_ARGS+= --enable-vv
PLIST.vv= yes
.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"
. include "../../multimedia/gst-plugins0.10-base/buildlink3.mk"
.endif