blob: 5ad99ec867b30a49d956bab92184acab9eaa3fcd (
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
|
# New ports collection makefile for: KDE PIM
# Date created: 2 March 2001
# Whom: Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= kdepim
PORTVERSION= ${KDE_VERSION}
CATEGORIES= deskutils mail news kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Personal Information Management tools for KDE
CONFLICTS= kdenetwork-3.1.*
USE_KDELIBS_VER=3
PREFIX= ${KDE_PREFIX}
USE_BZIP2= yes
USE_BISON= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
KDE_BUILD_PLIST=yes
OPTIONS= KPILOT "Build KPilot, hotsync software for KDE" off \
GNOKII "KAdressbook import/export for Nokia phones" off
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/bin/pilot-xfer)
. if !defined(WITH_KPILOT)
KPILOT_OVERRIDE=yes
WITH_KPILOT= yes
. endif
.endif
.if exists(${LOCALBASE}/bin/gnokii)
. if !defined(WITH_GNOKII)
GNOKII_OVERRIDE=yes
WITH_GNOKII= yes
. endif
.endif
.if defined(WITH_GNOKII)
LIB_DEPENDS+= gnokii:${PORTSDIR}/comms/gnokii
.endif # defined ($(WITH_GNOKII))
.if defined(WITH_KPILOT)
LIB_DEPENDS+= mal:${PORTSDIR}/palm/libmal \
pisock:${PORTSDIR}/palm/pilot-link
PLIST_APPEND+= plist.kpilot
.endif # defined ($(WITH_KPILOT))
pre-everything::
.if defined(KPILOT_OVERRIDE)
@${ECHO_MSG}
@${ECHO_MSG} "*******************************************************"
@${ECHO_MSG} "* pilot-link is installed but WITH_KPILOT is not set! *"
@${ECHO_MSG} "* WITH_KPILOT has been enabled automatically. *"
@${ECHO_MSG} "*******************************************************"
@${ECHO_MSG}
.endif
.if defined(GNOKII_OVERRIDE)
@${ECHO_MSG}
@${ECHO_MSG} "*******************************************************"
@${ECHO_MSG} "* gnokii is installed but WITH_GNOKII is not set! *"
@${ECHO_MSG} "* WITH_GNOKII has been enabled automatically. *"
@${ECHO_MSG} "*******************************************************"
@${ECHO_MSG}
.endif
pre-configure:
${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|-lgnokii|-lgnokii -liconv -lintl|' ${WRKSRC}/configure
.include <bsd.port.post.mk>
|