summaryrefslogtreecommitdiffstats
path: root/net-im/qutim-plugin-jabber/Makefile
blob: 8107f4d9bc0f6f7045ae6b0a0dbd417e6e8c54b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:	qutim-plugin-jabber
# Date created:		Sun Aug  2 23:37:39 MSD 2009
# Whom:			webmaster@kibab.com
#
# $FreeBSD$
#

PORTNAME=	jabber
PORTVERSION=	0.2
PORTREVISION=	5
PORTEPOCH=	1
CATEGORIES=	net-im
MASTER_SITES=	http://qutim.org/download/ \
		http://dl.kibab.com/distfiles/qutim/ \
		ftp://ftp.inferra.ru/pub/qutim/
PKGNAMEPREFIX=	qutim-plugin-
DISTNAME=	qutim-jabber_${PORTVERSION}_svn431

MAINTAINER=	webmaster@kibab.com
COMMENT=	Jabber protocol plugin for qutIM

LIB_DEPENDS=	idn.17:${PORTSDIR}/dns/libidn
BUILD_DEPENDS=	${LOCALBASE}/bin/qutim:${PORTSDIR}/net-im/qutim
RUN_DEPENDS=	${LOCALBASE}/bin/qutim:${PORTSDIR}/net-im/qutim

USE_QT_VER=	4
QT_COMPONENTS=	gui		\
		moc_build	\
		network		\
		qmake_build	\
		rcc_build	\
		uic_build	\
		xml

CXXFLAGS+=	-L${LOCALBASE}/lib

USE_CMAKE=	yes
CMAKE_USE_PTHREAD=	yes

WRKSRC=		${WRKDIR}/jabber

OPTIONS=	GNUTLS "Use GNUTLS (required for GMail)" on

.include <bsd.port.options.mk>

.if !defined(WITHOUT_GNUTLS)
CMAKE_ARGS+=	-DGNUTLS=1
LIB_DEPENDS+=	gnutls.47:${PORTSDIR}/security/gnutls
.endif

do-install:
	@${MKDIR} ${PREFIX}/lib/qutim
	@${INSTALL_PROGRAM} ${WRKSRC}/libjabber.so ${PREFIX}/lib/qutim

.include <bsd.port.mk>
OpenPOWER on IntegriCloud