aboutsummaryrefslogtreecommitdiff
path: root/x11/kdebase3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kdebase3/Makefile')
-rw-r--r--x11/kdebase3/Makefile36
1 files changed, 32 insertions, 4 deletions
diff --git a/x11/kdebase3/Makefile b/x11/kdebase3/Makefile
index 46b98442ee8c..d4de86a32d61 100644
--- a/x11/kdebase3/Makefile
+++ b/x11/kdebase3/Makefile
@@ -8,7 +8,6 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
-PORTREVISION= 4
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
@@ -46,13 +45,14 @@ INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
CONFIGURE_ENV+= RUN_KAPPFINDER=no kde_cv_utmp_file=/var/run/utmp
-CONFIGURE_ARGS+=--without-hal \
- --without-java \
+CONFIGURE_ARGS+=--without-java \
--with-qt-dir=${X11BASE} \
--with-xdmdir=${X11BASE}/lib/X11/xdm \
--with-ssl-dir=${OPENSSLBASE}
-OPTIONS= ARTSWRAPPER "Suid wrapper for aRts, req'd for realtime prio" on
+OPTIONS= ARTSWRAPPER "Suid wrapper for aRts, req'd for realtime prio" on \
+ HAL "Use HAL backend for media:/ (FreeBSD 5 and newer only)" off \
+ HTDIG "Depend on htdig, used to build manual indices" off
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
@@ -65,6 +65,23 @@ RUN_DEPENDS+= kompmgr:${PORTSDIR}/x11-wm/kompmgr
RUN_DEPENDS+= artswrapper:${PORTSDIR}/audio/artswrapper
.endif
+.if defined(WITH_HTDIG)
+RUN_DEPENDS+= htdig:${PORTSDIR}/textproc/htdig
+.endif
+
+.if defined(WITH_HAL) && ${OSVERSION} > 500035
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-kioslave_media_mediamanager-halbackend.cpp
+LIB_DEPENDS+= dbus-qt-1.1:${PORTSDIR}/devel/dbus-qt3 \
+ hal.1:${PORTSDIR}/sysutils/hal
+PLIST_SUB+= MEDIA=""
+.else
+CONFIGURE_ARGS+=--without-hal
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-kio_media \
+ ${FILESDIR}/extrapatch-kioslave_media_mediamanager-fstabbackend.cpp
+PLIST_SUB+= MEDIA="@comment "
+.endif
+
+
post-extract:
@${ECHO} "#!/bin/sh" > ${WRKSRC}/mkpamserv
@${ECHO} "exit 0" >> ${WRKSRC}/mkpamserv
@@ -74,6 +91,17 @@ pre-configure:
${WRKSRC}/kdeprint/descriptions/Makefile.in
${REINPLACE_CMD} -e "s,applications-merged,kde-applications-merged,g" \
${WRKSRC}/applnk/Makefile.in
+ ${REINPLACE_CMD} \
+ -E -e '/XftAntialias/s/false/true/g' \
+ ${WRKSRC}/kcontrol/krdb/krdb.cpp
+ ${REINPLACE_CMD} \
+ -E -e '/htdigbin/s|/usr/bin|${LOCALBASE}/bin|g' \
+ -e '/htdigdata/s|/srv/www/htdig|${LOCALBASE}/share/htdig|g' \
+ -e '/htsearchpath/s|/srv/www|${LOCALBASE}/www|g' \
+ ${WRKSRC}/khelpcenter/searchhandlers/khc_htdig.pl.in \
+ ${WRKSRC}/khelpcenter/searchhandlers/khc_docbookdig.pl.in \
+ ${WRKSRC}/khelpcenter/searchhandlers/khc_htsearch.pl
+
post-configure:
${REINPLACE_CMD} -e "s@^\s*Exec=.*\$$@Exec=ElectricEyes@" \