summaryrefslogtreecommitdiffstats
path: root/net-im/telepathy-idle/Makefile
blob: 9b27aea4e73090ce1bbbcc811570703d5f894f19 (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
# New ports collection makefile for:    telepathy-idle
# Date created:             Apr 19 2007
# Whom:                 Florent Thoumie <flz@FreeBSD.org>
#
# $FreeBSD$
#    $MCom: ports/net-im/telepathy-idle/Makefile,v 1.3 2011/02/12 09:34:24 kwm Exp $
#

PORTNAME=   telepathy-idle
PORTVERSION=    0.1.10
CATEGORIES= net-im
MASTER_SITES=   http://telepathy.freedesktop.org/releases/${PORTNAME}/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    IRC Connection Manager for Telepathy Framework

LIB_PC_DEPENDS= gobject-2.0.pc:${PORTSDIR}/devel/glib20 \
        dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib \
        telepathy-glib.pc:${PORTSDIR}/net-im/telepathy-glib

BUILD_DEPENDS=  ${LIB_PC_DEPENDS:C|^|${LOCALBASE}/libdata/pkgconfig/|g} \
            xsltproc:${PORTSDIR}/textproc/libxslt
RUN_DEPENDS=    ${LIB_PC_DEPENDS:C|^|${LOCALBASE}/libdata/pkgconfig/|g}

LIB_DEPENDS=    execinfo.1:${PORTSDIR}/devel/libexecinfo

GNU_CONFIGURE=  yes
USE_OPENSSL=    yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack pkgconfig glib20

MAN8=       telepathy-idle.8

CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if defined(WITH_OPENSSL_BASE)
CONFIGURE_ENV+= OPENSSL_LIBS="-L/usr/lib -lssl -lcrypto" OPENSSL_CFLAGS="-I/usr/include"
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|strnlen(\([^,]*\), [^)]*)|strlen(\1)|' \
        ${WRKSRC}/src/idle-connection.c \
        ${WRKSRC}/src/idle-parser.c

.include <bsd.port.post.mk>