# $NetBSD: Makefile.common,v 1.44 2014/12/27 02:21:26 dholland Exp $
#
# used by chat/finch/Makefile
# used by chat/libpurple/Makefile
# used by chat/pidgin/Makefile
# used by chat/pidgin-sametime/Makefile
# used by chat/pidgin-silc/Makefile

PIDGIN_VERSION=	2.10.11
DISTNAME=	pidgin-${PIDGIN_VERSION}
CATEGORIES=	chat
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pidgin/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.pidgin.im/
LICENSE=	gnu-gpl-v2

USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		pkg-config gmake
GNU_CONFIGURE=		yes

PATCHDIR=		${.CURDIR}/../../chat/libpurple/patches
DISTINFO_FILE?=		${.CURDIR}/../../chat/libpurple/distinfo

CONFIGURE_ARGS+=	--disable-gevolution
CONFIGURE_ARGS+=	--disable-gtkui
CONFIGURE_ARGS+=	--disable-consoleui
CONFIGURE_ARGS+=	--disable-meanwhile
CONFIGURE_ARGS+=	--disable-farstream
CONFIGURE_ARGS+=	--disable-gstreamer
CONFIGURE_ARGS+=	--disable-avahi
CONFIGURE_ARGS+=	--disable-perl
CONFIGURE_ARGS+=	--disable-tcl
CONFIGURE_ARGS+=	--disable-tk
CONFIGURE_ARGS+=	--disable-gnutls
CONFIGURE_ARGS+=	--disable-nss
CONFIGURE_ARGS+=	--disable-dbus
CONFIGURE_ARGS+=	--disable-cyrus-sasl
CONFIGURE_ARGS+=	--disable-debug
CONFIGURE_ARGS+=	--disable-nm
CONFIGURE_ARGS+=	--disable-vv

CPPFLAGS.SunOS+=       -D__EXTENSIONS__
CFLAGS.SunOS+=	       -Wno-error=implicit-function-declaration

PKGCONFIG_OVERRIDE+=	finch/finch.pc.in
PKGCONFIG_OVERRIDE+=	finch/libgnt/gnt.pc.in
PKGCONFIG_OVERRIDE+=	gaim.pc.in
PKGCONFIG_OVERRIDE+=	libpurple/data/purple.pc.in
PKGCONFIG_OVERRIDE+=	libpurple/data/purple-2.pc.in
PKGCONFIG_OVERRIDE+=	pidgin/data/pidgin.pc.in
PKGCONFIG_OVERRIDE+=	pidgin/data/pidgin-2.pc.in
