summaryrefslogtreecommitdiffstats
path: root/net-im/loudmouth/Makefile
blob: 541ccdda4667763984d316e73ed6727eb9909bd9 (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
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   loudmouth
PORTVERSION=    1.4.3
PORTREVISION=   7
CATEGORIES= net-im gnome
MASTER_SITES=   GNOME

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Lightweight Jabber client library

LIB_DEPENDS=    libidn.so:${PORTSDIR}/dns/libidn

USES=       gettext gmake libtool:keepla pathfix pkgconfig
USE_GNOME=  glib20
USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --disable-gtk-doc
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -Wl,-Bsymbolic -L${LOCALBASE}/lib

OPTIONS_DEFAULT=GNUTLS
OPTIONS_RADIO=  SSL
OPTIONS_RADIO_SSL=  GNUTLS OPENSSL

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+=   libgnutls.so:${PORTSDIR}/security/gnutls
RUN_DEPENDS+=   ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
.endif

.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL=    yes
CONFIGURE_ARGS+=--with-ssl=openssl
RUN_DEPENDS+=   ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
.endif

.if !${PORT_OPTIONS:MGNUTLS} && !${PORT_OPTIONS:MOPENSSL}
CONFIGURE_ARGS+=--without-ssl
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
            ${WRKSRC}/loudmouth/lm-ssl-gnutls.c

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so*

.include <bsd.port.mk>