summaryrefslogtreecommitdiffstats
path: root/net-im/gajim/Makefile
blob: c77c018a41792049406d14b095ac985008724b10 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# $FreeBSD$

PORTNAME=	gajim
PORTVERSION=	0.15.2
CATEGORIES=	net-im
MASTER_SITES=	http://www.gajim.org/downloads/0.15/

MAINTAINER=	rm@FreeBSD.org
COMMENT=	Jabber client based on a plugin system

LICENSE=	GPLv3

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl \
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3 \
		${PYTHON_PKGNAMEPREFIX}asn1>=0:${PORTSDIR}/devel/py-asn1

CONFLICTS=	gajim-devel-[0-9]*

FETCH_ARGS=	-Fpr
GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
USE_BZIP2=	yes
USE_DOS2UNIX=	src/plugins/plugins_i18n.py
USE_GMAKE=	yes
USE_GNOME=	pygtk2
USE_PYTHON=	-2.7
USE_XORG=	x11 xext xscrnsaver
MAN1=		gajim.1 gajim-remote.1 gajim-history-manager.1

CONFIGURE_ENV+=	PYTHON=${PYTHON_CMD}
LDFLAGS+=	-L${LOCALBASE}/lib
CFLAGS+=	-I${LOCALBASE}/include

OPTIONS_DEFINE=	CRYPTO DBUS KEYRING NLS SPELL
OPTIONS_DEFAULT=DBUS NLS SPELL
CRYPTO_DESC=	End to end encryption support
KEYRING_DESC=	Gnome Keyring support
SPELL_DESC=	Spell checking support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

.if ${PORT_OPTIONS:MDBUS}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dbus>=0.82.2:${PORTSDIR}/devel/py-dbus
.endif

.if ${PORT_OPTIONS:MCRYPTO}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
.endif

.if ${PORT_OPTIONS:MKEYRING}
USE_GNOME+=	pygnomedesktop
.endif

.if ${PORT_OPTIONS:MSPELL}
LIB_DEPENDS=	gtkspell:${PORTSDIR}/textproc/gtkspell
.endif

pre-build:
	${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src
	${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src

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