aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/kdepim44/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/kdepim44/Makefile')
-rw-r--r--deskutils/kdepim44/Makefile24
1 files changed, 21 insertions, 3 deletions
diff --git a/deskutils/kdepim44/Makefile b/deskutils/kdepim44/Makefile
index 3f3f9cf6d6b6..fdaf93bad786 100644
--- a/deskutils/kdepim44/Makefile
+++ b/deskutils/kdepim44/Makefile
@@ -15,8 +15,6 @@ DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Personal Information Management tools for KDE
-LIB_DEPENDS= pisock:${PORTSDIR}/palm/pilot-link
-
USE_KDELIBS_VER=3
PREFIX= ${KDE_PREFIX}
@@ -25,6 +23,7 @@ USE_BISON= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
+KDE_BUILD_PLIST=yes
INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
@@ -33,6 +32,25 @@ LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
.include <bsd.port.pre.mk>
pre-configure::
- ${REINPLACE_CMD} -e 's@-pedantic @@g' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e "s@-pedantic @@g; \
+ s@/usr/local/include/libmal@${LOCALBASE}/include/libmal@g" \
+ ${WRKSRC}/configure
+
+.if exists(${LOCALBASE}/bin/pilot-xfer)
+WITH_KPILOT=YES
+.endif # exists(${LOCALBASE}/bin/pilot-xfer)
+
+.if defined(WITH_KPILOT)
+LIB_DEPENDS+= pisock:${PORTSDIR}/palm/pilot-link \
+ mal:${PORTSDIR}/palm/libmal
+PLIST_APPEND+= plist.kpilot
+.else
+ @${ECHO_MSG}
+ @${ECHO_MSG} "====================================================="
+ @${ECHO_MSG} "If you want to compile with Palm Pilot support, hit"
+ @${ECHO_MSG} "Ctrl-C right now and use \"make WITH_KPILOT=yes\""
+ @${ECHO_MSG} "====================================================="
+ @${ECHO_MSG}
+.endif # defined(WITH_KPILOT)
.include <bsd.port.post.mk>