summaryrefslogtreecommitdiffstats
path: root/net-im/folks/Makefile
blob: 5de5abba09c2bdb519ed85a2e3d4050b2824300f (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
54
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   folks
PORTVERSION=    0.8.0
CATEGORIES= net-im
MASTER_SITES=   GNOME

MAINTAINER= gnome@FreeBSD.org
COMMENT=    library to aggregates people from multiple sources

BUILD_DEPENDS=  vapigen:${PORTSDIR}/lang/vala-vapigen
LIB_DEPENDS=    gee-0.8:${PORTSDIR}/devel/libgee \
        gcr:${PORTSDIR}/security/gcr \
        zeitgeist-1.0:${PORTSDIR}/sysutils/libzeitgeist \
        telepathy-glib:${PORTSDIR}/net-im/telepathy-glib

CONFLICTS=  folks-0.4.[0-9]*

USE_XZ=     yes
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes
USE_GMAKE=  yes
USES=       gettext pathfix pkgconfig
USE_GNOME=  evolutiondataserver3 gnomehier intlhack \
        introspection:build ltverhack
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-tracker-backend
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GLIB_SCHEMAS=   org.freedesktop.folks.gschema.xml

PLIST_SUB=  LIBVER=25 VERSION=37

OPTIONS_DEFINE= SOCIALWEB
OPTIONS_DEFAULT=SOCIALWEB
SOCIALWEB_DESC= Social web backend

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSOCIALWEB}
LIB_DEPENDS+=   socialweb:${PORTSDIR}/www/libsocialweb
CONFIGURE_ARGS+=--enable-libsocialweb-backend=yes
.else
CONFIGURE_ARGS+=--enable-libsocialweb-backend=no
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|^build_old_libs=yes|build_old_libs=no|g' \
        ${WRKDIR}/gnome-libtool

.include <bsd.port.mk>