aboutsummaryrefslogtreecommitdiffstats
path: root/security/pidgin-encryption/Makefile
blob: 75e485e166d25b82168b435fcf0f05532cc4a243 (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
# Created by: ports@c0decafe.net
# $FreeBSD$

PORTNAME=   pidgin
PORTVERSION=    3.1
PORTREVISION=   4
CATEGORIES= security
MASTER_SITES=   SF/${PORTNAME}-encrypt/Releases/${PORTVERSION}
PKGNAMESUFFIX=  -encryption
DISTNAME=   ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}

MAINTAINER= perlfu@gmail.com
COMMENT=    Encryption Plugin for the Pidgin instant messenger client

BUILD_DEPENDS=  ${LOCALBASE}/bin/pidgin:net-im/pidgin
RUN_DEPENDS=    ${LOCALBASE}/bin/pidgin:net-im/pidgin
LIB_DEPENDS=    libpurple.so:net-im/libpurple \
        libnss3.so:security/nss

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-static \
        --with-nspr-includes=${LOCALBASE}/include/nspr  \
        --with-nspr-libs=${LOCALBASE}/lib   \
        --with-nss-includes=${LOCALBASE}/include/nss/nss \
        --with-nss-libs=${LOCALBASE}/lib/nss
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
USES=       gettext gmake libtool pkgconfig
USE_GNOME=  gtk20

OPTIONS_DEFINE= NLS
OPTIONS_SUB=    yes
NLS_CONFIGURE_ENABLE=   nls
NLS_USES=   gettext

post-extract:
    @${REINPLACE_CMD} -e 's|glib/.*\.h"|glib.h"|g' ${WRKSRC}/rsa_nss.c

.include <bsd.port.mk>