aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/empathy/Makefile
blob: c3af2dd801df6d0e61c3bfe92a8c6520cf50c570 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$

PORTNAME=   empathy
PORTVERSION=    3.12.11
PORTREVISION=   1
CATEGORIES= net-im gnome
MASTER_SITES=   GNOME

MAINTAINER= gnome@FreeBSD.org
COMMENT=    GNOME IM client based around telepathy

BUILD_DEPENDS=  iso-codes>=0:${PORTSDIR}/misc/iso-codes \
        ca_root_nss>=0:${PORTSDIR}/security/ca_root_nss \
        gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas \
        geoclue>=0:${PORTSDIR}/net/geoclue \
        itstool:${PORTSDIR}/textproc/itstool \
            mc-tool:${PORTSDIR}/net-im/telepathy-mission-control
LIB_DEPENDS=    libenchant.so:${PORTSDIR}/textproc/enchant \
        libgeocode-glib.so:${PORTSDIR}/net/geocode-glib \
        libgoa-1.0.so:${PORTSDIR}/net/gnome-online-accounts \
        libpulse.so:${PORTSDIR}/audio/pulseaudio \
        libtelepathy.so:${PORTSDIR}/net-im/libtelepathy \
        libtelepathy-glib.so:${PORTSDIR}/net-im/telepathy-glib \
        libtelepathy-farstream.so:${PORTSDIR}/net-im/telepathy-farstream \
        libtelepathy-logger.so:${PORTSDIR}/net-im/telepathy-logger \
        libfolks-telepathy.so:${PORTSDIR}/net-im/folks \
        libnotify.so:${PORTSDIR}/devel/libnotify \
        libgcr-3.so:${PORTSDIR}/security/gcr \
        libcanberra-gtk3.so:${PORTSDIR}/audio/libcanberra-gtk3 \
        libclutter-gst-2.0.so:${PORTSDIR}/multimedia/clutter-gst \
        libwebkitgtk-3.0.so:${PORTSDIR}/www/webkit-gtk3 \
        libsoup-2.4.so:${PORTSDIR}/devel/libsoup
RUN_DEPENDS=    iso-codes>=0:${PORTSDIR}/misc/iso-codes \
        ca_root_nss>=0:${PORTSDIR}/security/ca_root_nss \
        gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas \
        geoclue>=0:${PORTSDIR}/net/geoclue \
            mc-tool:${PORTSDIR}/net-im/telepathy-mission-control

USES=       gettext gmake gnome libtool pathfix pkgconfig python tar:xz
USE_GNOME=  evolutiondataserver3 intlhack
USE_GSTREAMER1= yes
USE_LDCONFIG=   yes
INSTALLS_ICONS= yes
MAKE_JOBS_UNSAFE=   YES
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-Werror \
        --enable-goa \
        --enable-gst-1.0=yes \
        --enable-location=yes
INSTALL_TARGET= install-strip

GLIB_SCHEMAS=   org.gnome.Empathy.gschema.xml \
        org.gnome.telepathy-account-widgets.gschema.xml

OPTIONS_SUB=    yes
OPTIONS_DEFINE= JABBER MSN IRC SALUT HAZE MAP CHEESE
OPTIONS_DEFAULT=JABBER MSN IRC SALUT      MAP
JABBER_DESC=    Enable jabber (XMPP) client support
MSN_DESC=   Enable MSN client support
IRC_DESC=   Enable IRC client support
SALUT_DESC= Enable link-local (serverless) XMPP support
HAZE_DESC=  Enable libpurple protocol integration
MAP_DESC=   Enable graphical map support
CHEESE_DESC=    Enable cheese camera support
JABBER_RUN_DEPENDS= ${LOCALBASE}/libexec/telepathy-gabble:${PORTSDIR}/net-im/telepathy-gabble
MSN_RUN_DEPENDS=    ${LOCALBASE}/libexec/telepathy-butterfly:${PORTSDIR}/net-im/telepathy-butterfly
IRC_RUN_DEPENDS=    ${LOCALBASE}/libexec/telepathy-idle:${PORTSDIR}/net-im/telepathy-idle
SALUT_RUN_DEPENDS=  ${LOCALBASE}/libexec/telepathy-salut:${PORTSDIR}/net-im/telepathy-salut
HAZE_RUN_DEPENDS=   ${LOCALBASE}/libexec/telepathy-haze:${PORTSDIR}/net-im/telepathy-haze
MAP_USE=        GL=gl
MAP_LIB_DEPENDS=    libchamplain-0.12.so:${PORTSDIR}/graphics/libchamplain
MAP_CONFIGURE_ENABLE=   map
CHEESE_BUILD_DEPENDS=   cheese>=0:${PORTSDIR}/multimedia/cheese
CHEESE_RUN_DEPENDS= cheese>=0:${PORTSDIR}/multimedia/cheese
CHEESE_CONFIGURE_WITH=  cheese

PLIST_SUB=  PORTVERSION=${PORTVERSION}

post-patch:
    @${REINPLACE_CMD} -e 's|clutter-gst-1.0|clutter-gst-2.0|g ;\
        s|MISSION_CONTROL_PLUGINS_DIR=`pkg-config -|MISSION_CONTROL_PLUGINS_DIR=$${libdir}/`pkg-config -|g' \
            ${WRKSRC}/configure

# workaround wierd bug that happened in 3.12.11.
post-install:
    @${MV} ${STAGEDIR}/mission-control-plugins.0 \
        ${STAGEDIR}${PREFIX}/lib/

.include <bsd.port.mk>