aboutsummaryrefslogtreecommitdiff
path: root/net-im/pidgin-sipe/Makefile
blob: e1373b3a02a0c0df3d4b6c8663267580c329fc7c (plain) (blame)
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
PORTNAME=	pidgin-sipe
PORTVERSION=	1.24.0
PORTREVISION=	3
CATEGORIES=	net-im
MASTER_SITES=	SF/sipe/sipe/${DISTNAME}

MAINTAINER=	john.c.prather@gmail.com
COMMENT=	Plugin for Pidgin to provide LCS/OCS connectivity
WWW=		https://www.sourceforge.net/projects/sipe

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_armv6=		fails to compile: cast from 'struct sipe_core_public *' to 'struct sipe_core_private *' increases required alignment from 4 to 8
BROKEN_armv7=		fails to compile: cast from 'struct sipe_core_public *' to 'struct sipe_core_private *' increases required alignment from 4 to 8

LIB_DEPENDS=	libnss3.so:security/nss \
		libpurple.so:net-im/libpurple \
		libplds4.so:devel/nspr \
		libgstreamer-1.0.so:multimedia/gstreamer1 \
		libnice.so:net-im/libnice \
		libgmime-2.6.so:mail/gmime26 \
		libdbus-1.so:devel/dbus \
		libfarstream-0.2.so:net-im/farstream
RUN_DEPENDS=	pidgin:net-im/pidgin

USES=		compiler:c11 gmake gnome gstreamer libtool localbase pkgconfig tar:bzip2 ssl
USE_GNOME=	gtk20 intltool libxml2

USE_LDCONFIG=	yes

OPTIONS_DEFINE=		OCS2005 KRB5 DOCS NLS
OPTIONS_SUB=		yes

OCS2005_DESC=		Message timeout for OCS2005
OCS2005_CONFIGURE_ENABLE=	ocs2005-message-hack
KRB5_DESC=		With Kerberos5
KRB5_CONFIGURE_WITH=	krb5

NLS_CONFIGURE_ENABLE=	nls
NLS_USES=		gettext

CONFIGURE_ARGS=	--enable-purple \
		--disable-telepathy
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
PORTDOCS=	AUTHORS ChangeLog HACKING NEWS README TODO

CFLAGS+=	-Wno-error

post-patch:
	@${REINPLACE_CMD} 's/LDLAGS/LDFLAGS/' ${WRKSRC}/configure

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docs in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>