aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/kopete-kde4/Makefile
blob: 7970cff1de5b841a9483dff0fc9ecfb99f8f550b (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
# $FreeBSD$

PORTNAME=   kopete
PORTVERSION=    ${KDE4_VERSION}
PORTREVISION=   3
CATEGORIES= net-im kde
MASTER_SITES=   KDE/${KDE4_BRANCH}/${PORTVERSION}/src
DIST_SUBDIR=    KDE/${PORTVERSION}

MAINTAINER= kde@FreeBSD.org
COMMENT=    KDE multi-protocol instant messenger

LIB_DEPENDS=    libidn.so:${PORTSDIR}/dns/libidn \
        libqca.so:${PORTSDIR}/devel/qca \
        libotr.so.5:${PORTSDIR}/security/libotr \
        libgadu.so:${PORTSDIR}/polish/libgadu \
        libortp.so:${PORTSDIR}/net/ortp \
        libmediastreamer_base.so:${PORTSDIR}/net/mediastreamer \
        libspeex.so:${PORTSDIR}/audio/speex \
        libexpat.so:${PORTSDIR}/textproc/expat2 \
        libmeanwhile.so:${PORTSDIR}/net-im/meanwhile \
        libv4l2.so:${PORTSDIR}/multimedia/libv4l \
        libjasper.so:${PORTSDIR}/graphics/jasper \
        libjpeg.so:${PORTSDIR}/graphics/jpeg \
        libjsoncpp.so:${PORTSDIR}/devel/jsoncpp
BUILD_DEPENDS=  ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat \
        ${LOCALBASE}/lib/mediastreamer/plugins/libmsilbc.so:${PORTSDIR}/audio/msilbc
RUN_DEPENDS=    ${LOCALBASE}/lib/mediastreamer/plugins/libmsilbc.so:${PORTSDIR}/audio/msilbc

USES=       cmake:outsource pkgconfig shebangfix tar:xz webplugin:native
USE_GNOME=  libxml2 libxslt
USE_KDE4=   kdelibs kdeprefix pimlibs \
        automoc4 qimageblitz
USE_OPENSSL=    yes
USE_QT4=    corelib gui network qt3support sql xml \
        moc_build qmake_build rcc_build uic_build uic3_build
USE_SQLITE= yes
USE_XORG=   x11 xdamage xext xscrnsaver xtst
USE_LDCONFIG=   yes

SHEBANG_FILES=  ${WRKSRC}/protocols/winpopup/winpopup-install \
        ${WRKSRC}/protocols/winpopup/winpopup-send

WEBPLUGIN_NAME= # empty
WEBPLUGIN_FILES=    skypebuttons.so

# Explicitly disable ALSA, as it's not used (Jabber Jingle support is
# not built).
CMAKE_ARGS+=    -DWITH_Alsa:BOOL=OFF

# Route Mozilla plugin by standard path.
CMAKE_ARGS+=    -DMOZPLUGIN_INSTALL_DIR:PATH="${WEBPLUGIN_DIR}"

# Forcefully disable net-im/libmsn which was deprecated on 2013-07-27.
CMAKE_ARGS+=    -DHAVE_LIBMSN:BOOL=OFF

# Fix build with fresh multimedia/v4l_compat installed.
CFLAGS+=    -DHAVE_LINUX_INTEGER_TYPES=1

OPTIONS_DEFINE= XMMS
XMMS_DESC=  XMMS Kopete nowlistening plugin
XMMS_LIB_DEPENDS=   libxmms.so:${PORTSDIR}/multimedia/xmms
XMMS_CMAKE_ON=  -DWITH_Xmms:BOOL=ON
XMMS_CMAKE_OFF= -DWITH_Xmms:BOOL=OFF

post-patch:
    ${REINPLACE_CMD} 's,-std=gnu90,-std=gnu89,' \
        ${WRKSRC}/protocols/jabber/libiris/CMakeLists.txt

.include <bsd.port.mk>