aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/kdepim44/Makefile
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2003-08-05 02:13:31 +0800
committerlofi <lofi@FreeBSD.org>2003-08-05 02:13:31 +0800
commitd377aca41ccc00dd82418b6482d0a3e24fd1e195 (patch)
tree532b5f2b68addd68e47e121cf5ccadb72711846c /deskutils/kdepim44/Makefile
parent467fb562f3de96d2c809cf2ab7dd8d9047329848 (diff)
downloadfreebsd-ports-gnome-d377aca41ccc00dd82418b6482d0a3e24fd1e195.tar.gz
freebsd-ports-gnome-d377aca41ccc00dd82418b6482d0a3e24fd1e195.tar.zst
freebsd-ports-gnome-d377aca41ccc00dd82418b6482d0a3e24fd1e195.zip
Add libmal support and make kpilot optional.
PR: ports/53922 Approved by: arved (Mentor)
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>