aboutsummaryrefslogtreecommitdiff
path: root/net/kdenetwork3/Makefile
blob: 98dd7a8cdd124d0e2bd32f21b679dded505ca5db (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
# -*-mode: makefile-*-
# New ports collection makefile for:	kdenetwork2
# Date created:				2 November 2001
# Whom:					will@cvs.kde.org
#
# $FreeBSD$
#

PORTNAME=	kdenetwork
PORTVERSION=	${KDE_VERSION}
PORTREVISION=	3
CATEGORIES?=	net kde
MASTER_SITES=	${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR=	stable/${PORTVERSION:S/.0//}/src
DIST_SUBDIR=	KDE

MAINTAINER?=	kde@FreeBSD.org
COMMENT=	Network-related programs and modules for KDE

LIB_DEPENDS=	slp:${PORTSDIR}/net/openslp

OPTIONS=	KOPETE	"Install kopete multi-protocol instant messenger" OFF

USE_KDELIBS_VER=3
USE_PERL5=	yes
USE_BZIP2=	yes
USE_GMAKE=	yes
USE_OPENSSL=	yes
USE_XORG=	xtst

USE_AUTOTOOLS=	libtool:22
USE_LDCONFIG=	yes
DO_NOT_COMPILE+=kopete lanbrowsing filesharing

CONFIGURE_ARGS+=--with-ssl-dir=${OPENSSLBASE}

.if defined(DO_NOT_COMPILE)
CONFIGURE_ENV+=DO_NOT_COMPILE="${DO_NOT_COMPILE}"
.endif # defined(DO_NOT_COMPILE)

.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 800074
DO_NOT_COMPILE+=	kppp
PLIST_SUB+=	KPPP="@comment "
KPPP=
.else
KPPP=		kppp
PLIST_SUB+=	KPPP=""
.endif

.if ${OSVERSION} >= 900004
EXTRA_PATCHES+=	${FILESDIR}/extrapatch-find_user.cpp
.endif

pre-configure:
	@${REINPLACE_CMD} \
	-E -e '/^SUBDIRS/s/lisa//g' \
	 -e '/^SUBDIRS/s/kppp/${KPPP}/g' \
		${WRKSRC}/doc/Makefile.in
	@${REINPLACE_CMD} \
	-e 's|/etc/security/|${LOCALBASE}/etc/|g' \
		${WRKSRC}/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp \
		${WRKSRC}/filesharing/simple/fileshare.cpp

##
# OPTIONS handling
##
#
.if defined(WITH_KOPETE)
RUN_DEPENDS+=	kopete:${PORTSDIR}/net-im/kopete
.endif

.include <bsd.port.post.mk>