aboutsummaryrefslogtreecommitdiff
path: root/security/pidgin-otr/Makefile
blob: 92039aed35db2a7a765feb2788841d3b36ef684e (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
PORTNAME=	otr
PORTVERSION=	4.0.2
PORTREVISION=	2
CATEGORIES=	security net-im net
MASTER_SITES=	http://www.cypherpunks.ca/otr/
PKGNAMEPREFIX=	pidgin-
DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Allows deniable private conversations using Pidgin
WWW=		https://www.cypherpunks.ca/otr/

LICENSE=	GPLv2 # only
LICENSE_FILE=	${WRKSRC}/COPYING

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

USES=		cpe gmake gnome libtool pkgconfig
CPE_VENDOR=	cypherpunks
CPE_PRODUCT=	${PKGNAMEPREFIX}${PORTNAME}
USE_GNOME=	gtk20 intltool
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

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

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext
NLS_USES_OFF=	gettext-tools

.include <bsd.port.mk>