aboutsummaryrefslogtreecommitdiff
path: root/x11/kde4-runtime
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-05-26 07:34:15 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-05-26 07:34:15 +0000
commitb7ad93aca8a6e6b5de3af36165d3c865bf4ba0f0 (patch)
tree7c0f0df61cf17ed925594023c604f2a0be8b0671 /x11/kde4-runtime
parentff8bb6f579e01cc3eac2c2178af25c841ae1bc05 (diff)
downloadports-b7ad93aca8a6e6b5de3af36165d3c865bf4ba0f0.tar.gz
ports-b7ad93aca8a6e6b5de3af36165d3c865bf4ba0f0.zip
Make setup for Nepomuk slightly more user-friendly:
add optional run dependency on databases/virtuoso add tiny script, that adjusts environment for KDE session
Notes
Notes: svn path=/head/; revision=255107
Diffstat (limited to 'x11/kde4-runtime')
-rw-r--r--x11/kde4-runtime/Makefile15
-rw-r--r--x11/kde4-runtime/files/nepomuk-env.sh.in6
-rw-r--r--x11/kde4-runtime/pkg-plist2
3 files changed, 22 insertions, 1 deletions
diff --git a/x11/kde4-runtime/Makefile b/x11/kde4-runtime/Makefile
index d04900015bc4..8efd24d07e74 100644
--- a/x11/kde4-runtime/Makefile
+++ b/x11/kde4-runtime/Makefile
@@ -8,6 +8,7 @@
PORTNAME= kdebase-runtime
PORTVERSION= ${KDE4_VERSION}
+PORTREVISION= 1
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
@@ -33,7 +34,11 @@ USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
MAN1= kdesu.1
-OPTIONS= PULSEAUDIO "Enable playback via PulseAudio soundserver" off
+
+SUB_FILES= nepomuk-env.sh
+
+OPTIONS= PULSEAUDIO "Enable playback via PulseAudio soundserver" off \
+ VIRTUOSO "Install Virtuoso SQL server (required for Nepomuk)" off
# Explicitly disable alsa, see for details:
# http://mail.kde.org/pipermail/kde-freebsd/2010-March/008015.html
@@ -52,6 +57,10 @@ LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
CMAKE_ARGS+= -DWITH_PulseAudio:BOOL=OFF
.endif
+.if defined(WITH_VIRTUOSO)
+RUN_DEPENDS+= ${LOCALBASE}/bin/virtuoso-t:${PORTSDIR}/databases/virtuoso
+.endif
+
.if exists(${LOCALBASE}/lib/soprano/libsoprano_virtuosobackend.so)
CMAKE_ARGS+= -DWITH_Nepomuk:BOOL=ON
MAN8= nepomukserver.8 nepomukservicestub.8
@@ -69,4 +78,8 @@ post-patch:
${PATCH_WRKSRC}/kioslave/man/man2html.cpp \
${PATCH_WRKSRC}/cmake/modules/FindCLucene.cmake
+post-install:
+ ${MKDIR} ${PREFIX}/env
+ ${INSTALL_SCRIPT} ${WRKDIR}/nepomuk-env.sh ${PREFIX}/env
+
.include <bsd.port.mk>
diff --git a/x11/kde4-runtime/files/nepomuk-env.sh.in b/x11/kde4-runtime/files/nepomuk-env.sh.in
new file mode 100644
index 000000000000..472cbb2580dc
--- /dev/null
+++ b/x11/kde4-runtime/files/nepomuk-env.sh.in
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ %%PREFIX%% != %%LOCALBASE%% ]; then
+STRIGI_PLUGIN_PATH=${STRIGI_PLUGIN_PATH}:%%PREFIX%%/lib/strigi:%%LOCALBASE%%/lib/strigi
+export STRIGI_PLUGIN_PATH
+fi
diff --git a/x11/kde4-runtime/pkg-plist b/x11/kde4-runtime/pkg-plist
index 5dc744d58437..1db3aa271f1d 100644
--- a/x11/kde4-runtime/pkg-plist
+++ b/x11/kde4-runtime/pkg-plist
@@ -28,6 +28,7 @@ bin/kwriteconfig
%%NEPOMUK%%bin/nepomukservicestub
bin/plasmapkg
bin/solid-hardware
+env/nepomuk-env.sh
etc/xdg/menus/kde-information.menu
lib/attica_kde.so
lib/kconf_update_bin/phonon_devicepreference_update
@@ -2077,3 +2078,4 @@ share/sounds/KDE-Window-Shade-Up.ogg
@dirrm lib/kde4/plugins/phonon_platform
@dirrmtry etc/xdg/menus
@dirrmtry etc/xdg
+@dirrmtry env