# $FreeBSD: tags/RELEASE_10_2_0/net-im/profanity/Makefile 380850 2015-03-09 14:27:57Z arved $

PORTNAME=	profanity
PORTVERSION=	0.4.6
CATEGORIES=	net-im
MASTER_SITES=	http://www.profanity.im/

MAINTAINER=	arved@FreeBSD.org
COMMENT=	Console based XMPP client

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

LIB_DEPENDS=	libstrophe.so:${PORTSDIR}/net-im/libstrophe \
		libglib-2.0.so:${PORTSDIR}/devel/glib20 \
		libcurl.so:${PORTSDIR}/ftp/curl \
		libotr.so:${PORTSDIR}/security/libotr3

OPTIONS_DEFINE=NOTIFY
USES=		ncurses pkgconfig autoreconf
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-otr
CONFIGURE_ENV=	LIBS="${CFLAGS} -lcrypto"

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNOTIFY}
LIB_DEPENDS+=	libnotify.so:${PORTSDIR}/devel/libnotify
CONFIGURE_ARGS+=	--enable-notifications
.endif

.include <bsd.port.mk>
