blob: b042217c3e72c5ae137219a4b6535061f4f16df0 (
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
|
# New ports collection makefile for: kopete
# Date created: Wed Apr 12 17:51:07 UTC 2006
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= kopete
PORTVERSION= 0.12.8
PORTREVISION= 5
CATEGORIES?= net-im kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/3.5.10/src
PKGNAMEPREFIX= kdenetwork-
DISTNAME= kdenetwork-3.5.10
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= KDE multi-protocol instant messenger (IM)
RUN_DEPENDS= ${QT_PREFIX}/lib/plugins/crypto/libqca-tls.so:${PORTSDIR}/security/qca-tls
LIB_DEPENDS= speex:${PORTSDIR}/audio/speex \
ilbc:${PORTSDIR}/net/ilbc \
ortp:${PORTSDIR}/net/ortp
CONFLICTS= kvirc-[0-9]*
USE_KDELIBS_VER=3
PREFIX= ${KDE_PREFIX}
USE_BZIP2= yes
USE_GNOME= glib20
USE_OPENSSL= yes
USE_XORG= xtst
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-ilbc=${LOCALBASE} \
--with-speex=${LOCALBASE} \
--with-ssl-dir=${OPENSSLBASE} \
--without-external-libgadu \
--enable-jingle
CONFIGURE_ENV= PKG_CONFIG="${PKG_CONFIG}" \
EXPAT_CFLAGS="-I${LOCALBASE}/include" \
EXPAT_LIBS="-L${LOCALBASE}/lib -lexpat" \
ILBC_CFLAGS="-I${LOCALBASE}/include/ilbc" \
ILBC_LIBS="-L${LOCALBASE}/lib -lilbc" \
SPEEX_CFLAGS="$$(${PKG_CONFIG} --cflags speex)" \
SPEEX_LIBS="$$(${PKG_CONFIG} --libs speex)"
USE_LDCONFIG= yes
_NO_KDE_FINAL= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
BUILD_WRKSRC= ${WRKSRC}/kopete
INSTALL_WRKSRC= ${WRKSRC}/kopete
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config
OPTIONS= WEBCAM "Enable webcamera support" off
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
.if defined(WITH_WEBCAM)
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat
EXTRA_PATCHES= ${FILESDIR}/extrapatch-kopete_libkopete_avdevice-videodevice.cpp \
${FILESDIR}/extrapatch-kopete_libkopete_avdevice-videodevice.h \
${FILESDIR}/extrapatch-kopete_libkopete_avdevice-videodevicepool.cpp
.endif
post-patch:
# force usage of gthread for libjingle's benefit
@${REINPLACE_CMD} -E \
-e 's|(glib-2.0)|gthread-2.0 \1|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
post-configure:
# configure does not handle OSS support
.for feature in \
FEATURE_ENABLE_CHAT_ARCHIVING \
FEATURE_ENABLE_SSL \
HAVE_SYS_SOUNDCARD_H
@${ECHO_CMD} \
'#define ${feature} 1' >> \
${CONFIGURE_WRKSRC}/config.h
.endfor
.include <bsd.port.post.mk>
|