mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
0f583d8700
Plasma5 ports At the moment KDE ports use bsd.kde4.mk to handle their dependencies. When working on the ports for KDE Frameworks and Plasma5 it seemed to be more reasonable to create a new kde.mk instead of adding an bsd.kde5.mk. The kde.mk in this review is a stripped down version of the one we are using in the KDE Test repositories plasma5 branch [1] to only contain the parts relevant to the current KDE4 ports in the portstree [2]. Changes to the KDE Ports needed by this: Replace USE_KDE4 by USE_KDE [3] Add USES=kde:4 [4] [1] http://src.mouf.net/area51/view/branches/plasma5/KDE/Mk/Uses/kde.mk [2] The version in the plasma5 branch also handles frameworks/plasma5 and handles MASTER_SITES via a KDE_DIST variable similar to bsd.qt.mk for Qt Ports -- I chose to leave this out for now, as the diff is already large enough. [3] I chose USE_KDE instead of USE_KDE4, USE_KDE5, USE_KDEX as the version we want is already specified as argument to kde:<arg> [4] For KDE Frameworks and Plasma5 ports this would be kde:5 PR: 210667 Approved by: portmgr, mat (mentor), rakuco (mentor) Reviewed by: mat, rakuco Differential Revision: https://reviews.freebsd.org/D6961
72 lines
2.3 KiB
Makefile
72 lines
2.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= kde-runtime
|
|
PORTVERSION= ${KDE4_VERSION}
|
|
PORTREVISION= 3
|
|
CATEGORIES= x11 kde
|
|
MASTER_SITES= KDE/${KDE4_BRANCH}/${PORTVERSION}/src
|
|
DIST_SUBDIR= KDE/${PORTVERSION}
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= Runtime components for KDE Plasma Desktop
|
|
|
|
LIB_DEPENDS= libIlmImf.so:graphics/OpenEXR \
|
|
libexiv2.so:graphics/exiv2 \
|
|
libwebp.so:graphics/webp \
|
|
libslp.so:net/openslp \
|
|
libsmbclient.so:net/samba-libsmbclient \
|
|
libssh.so:security/libssh \
|
|
libqzeitgeist.so:sysutils/qzeitgeist
|
|
# Explicitly depend on libssh to avoid interference with ssh.4 from
|
|
# compat7x.
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libssh.so:security/libssh
|
|
RUN_DEPENDS= cagibid:net/cagibi
|
|
|
|
USES= cmake:outsource gettext gmake jpeg kde:4 shared-mime-info \
|
|
shebangfix tar:xz
|
|
USE_KDE= kactivities kdelibs oxygen-icons4 \
|
|
attica automoc4 pimlibs strigi nepomuk-core
|
|
USE_QT4= corelib dbus declarative designer_build gui phonon \
|
|
network qtestlib script svg webkit xml \
|
|
moc_build qmake_build rcc_build uic_build
|
|
USE_XORG= x11 xcursor
|
|
USE_LDCONFIG= yes
|
|
MAKE_ENV= XDG_CONFIG_HOME=/dev/null
|
|
SHEBANG_FILES= khelpcenter/searchhandlers/*.pl \
|
|
khelpcenter/searchhandlers/*.pl.cmake \
|
|
kioslave/info/kde-info2html
|
|
|
|
OPTIONS_DEFINE= PULSEAUDIO ZEITGEIST
|
|
|
|
PULSEAUDIO_DESC=Audio configuration via PulseAudio
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio \
|
|
libcanberra.so:audio/libcanberra
|
|
PULSEAUDIO_USE= GNOME=glib20
|
|
PULSEAUDIO_CMAKE_OFF= -DWITH_PulseAudio:BOOL=OFF
|
|
|
|
ZEITGEIST_DESC= Event logging via Zeitgeist
|
|
ZEITGEIST_RUN_DEPENDS= zeitgeist-daemon:sysutils/zeitgeist
|
|
|
|
# Explicitly disable ALSA, see for details:
|
|
# http://mail.kde.org/pipermail/kde-freebsd/2010-March/008015.html
|
|
CMAKE_ARGS+= -DWITH_ALSA:BOOL=OFF
|
|
|
|
post-extract:
|
|
# Don't install share/icons/hicolor/index.theme to avoid conflcit with
|
|
# hicolor-icon-theme port
|
|
${REINPLACE_CMD} -e '/add_subdirectory.*hicolor/d' \
|
|
${PATCH_WRKSRC}/pics/CMakeLists.txt
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
|
|
${PATCH_WRKSRC}/khelpcenter/infotree.cpp \
|
|
${PATCH_WRKSRC}/kioslave/info/kde-info2html.conf \
|
|
${PATCH_WRKSRC}/kioslave/man/kio_man.cpp \
|
|
${PATCH_WRKSRC}/kioslave/man/man2html.cpp \
|
|
${PATCH_WRKSRC}/cmake/modules/FindCLucene.cmake
|
|
${REINPLACE_CMD} -e '/update_xdg_mimetypes/ d' \
|
|
${PATCH_WRKSRC}/kimgio/CMakeLists.txt \
|
|
${PATCH_WRKSRC}/kioslave/network/mimetypes/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|