aboutsummaryrefslogtreecommitdiffstats
path: root/security/pidgin-otr/Makefile
blob: d3dede3739e9c529d5dd213a0cb80f6666e2845d (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
# $FreeBSD$

PORTNAME=   otr
PORTVERSION=    4.0.0
PORTREVISION=   3
CATEGORIES= security net-im net
MASTER_SITES=   http://www.cypherpunks.ca/otr/
PKGNAMEPREFIX=  pidgin-
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}

MAINTAINER= jgh@FreeBSD.org
COMMENT=    Allows deniable private conversations using Pidgin

LICENSE=    GPLv2

# explicitly use libotr.so.5 (see ports/186944)
BUILD_DEPENDS=  pidgin:${PORTSDIR}/net-im/pidgin
LIB_DEPENDS=    libotr.so.5:${PORTSDIR}/security/libotr \
        libgcrypt.so:${PORTSDIR}/security/libgcrypt \
        libpurple.so:${PORTSDIR}/net-im/libpurple

USES=       gettext gmake libtool pkgconfig
USE_GNOME=  gtk20
GNU_CONFIGURE=  yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-libotr-prefix=${LOCALBASE}/lib \
        --with-libotr-inc-prefix=${LOCALBASE}/include

.include <bsd.port.options.mk>

.if ${OSVERSION} < 1000036 && ${ARCH} == i386
LDFLAGS+=   -lssp_nonshared
.endif

.include <bsd.port.mk>