aboutsummaryrefslogtreecommitdiff
path: root/deskutils/kdeplasma-addons/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/kdeplasma-addons/Makefile')
-rw-r--r--deskutils/kdeplasma-addons/Makefile34
1 files changed, 28 insertions, 6 deletions
diff --git a/deskutils/kdeplasma-addons/Makefile b/deskutils/kdeplasma-addons/Makefile
index 9073d43f6ec1..c9977efdf82d 100644
--- a/deskutils/kdeplasma-addons/Makefile
+++ b/deskutils/kdeplasma-addons/Makefile
@@ -7,7 +7,6 @@
PORTNAME= kdeplasma-addons
PORTVERSION= ${KDE4_VERSION}
-PORTREVISION= 1
CATEGORIES= deskutils kde ipv6
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
@@ -17,7 +16,7 @@ MAINTAINER= kde@FreeBSD.org
COMMENT= Extra plasmoids for KDE4
BUILD_DEPENDS= eigen>=2.0.b3:${PORTSDIR}/math/eigen2
-LIB_DEPENDS= kipi.6:${PORTSDIR}/graphics/kdegraphics4
+LIB_DEPENDS= kipi.7:${PORTSDIR}/graphics/kdegraphics4
USE_KDE4= kdelibs pimlibs workspace kdeprefix kdehier automoc4 sharedmime
KDE4_BUILDENV= yes
@@ -29,9 +28,11 @@ QT_COMPONENTS= corelib opengl dbus qt3support webkit \
MAKE_JOBS_SAFE= yes
-OPTIONS= MARBLE "Marble globe wallpaper for Plasma" on
+OPTIONS= MARBLE "Marble globe wallpaper for Plasma" on \
+ OBSERVATORY "KDE Observatory plasmoid" off \
+ SCIM "Enable SCIM method input dialog" off
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if defined(WITHOUT_MARBLE)
PLIST_SUB+= MARBLE="@comment "
@@ -40,15 +41,36 @@ LIB_DEPENDS+= marblewidget.5:${PORTSDIR}/misc/kdeedu4
PLIST_SUB+= MARBLE=""
.endif
+.if defined(WITHOUT_OBSERVATORY)
+PLIST_SUB+= OBSERVATORY="@comment "
+.else
+LIB_DEPENDS+= qwt.5:${PORTSDIR}/x11-toolkits/qwt5
+PLIST_SUB+= OBSERVATORY=""
+.endif
+
+.if defined(WITHOUT_SCIM)
+PLIST_SUB+= SCIM="@comment "
+.else
+LIB_DEPENDS+= scim-1.0.10:${PORTSDIR}/textproc/scim
+PLIST_SUB+= SCIM=""
+.endif
+
post-patch:
${GREP} -H -r "#include <q" ${WRKSRC} | ${CUT} -d: -f1 | uniq | \
${XARGS} ${REINPLACE_CMD} -f ${FILESDIR}/qt3to4headers.txt
-pre-configure:
.if defined(WITHOUT_MARBLE)
${REINPLACE_CMD} -e '/add_subdirectory(marble)/d' \
${WRKSRC}/wallpapers/CMakeLists.txt
.endif
+.if defined(WITHOUT_OBSERVATORY)
+ ${REINPLACE_CMD} -e '/add_subdirectory(kdeobservatory)/d' \
+ ${WRKSRC}/applets/CMakeLists.txt
+.endif
+.if defined(WITHOUT_SCIM)
+ ${REINPLACE_CMD} -e '/add_subdirectory(kimpanel)/d' \
+ ${WRKSRC}/applets/CMakeLists.txt
+.endif
#respect prefix, don't update mime when installing
${REINPLACE_CMD} -e '/^update_xdg_mimetypes/d; /SharedMimeInfo/d' \
-e '/^set/s,DBUS_INTERFACES_INSTALL_DIR,KDE4_DBUS_INTERFACES_DIR,g' \
@@ -57,4 +79,4 @@ pre-configure:
post-install:
@-update-mime-database ${PREFIX}/share/mime
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>