Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/kde.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Provides support for KDE and KF5-based ports. | # Provides support for KDE and KF5-based ports. | ||||
# | # | ||||
# Feature: kde | # Feature: kde | ||||
# Valid ARGS: 4 5 | # Valid ARGS: 5 | ||||
# | # | ||||
# 4: Depend on KDE4 components and variables. | |||||
# 5: Depend on KDE Frameworks 5 components and variables. | # 5: Depend on KDE Frameworks 5 components and variables. | ||||
# | # | ||||
# Variables that can be set by a port: | # Variables that can be set by a port: | ||||
# | # | ||||
# USE_KDE List of KDE4/KF5/Plasma5 components (other ports) that this | # USE_KDE List of KF5/Plasma5 components (other ports) that this | ||||
# port depends on. | # port depends on. | ||||
# * foo_build Add a build-time dependency (BUILD_DEPENDS) | # * foo_build Add a build-time dependency (BUILD_DEPENDS) | ||||
# * foo_run Add a run-time dependency (RUN_DEPENDS) | # * foo_run Add a run-time dependency (RUN_DEPENDS) | ||||
# * foo (default) Add both dependencies on component <foo>, or | # * foo (default) Add both dependencies on component <foo>, or | ||||
# a LIB_DEPENDS if applicable. | # a LIB_DEPENDS if applicable. | ||||
# | # | ||||
# To simplify the ports, also: | # To simplify the ports, also: | ||||
# CATEGORIES If the port is part of one of the KDE Software distribution, | # CATEGORIES If the port is part of one of the KDE Software distribution, | ||||
# it can add, in addition to 'kde' one of the following: | # it can add, in addition to 'kde' one of the following: | ||||
# kde-application: part of applications release | |||||
# kde-frameworks: part of frameworks release | # kde-frameworks: part of frameworks release | ||||
# kde-kde4: part of kde4 release | |||||
# kde-plasma: part of plasma release | # kde-plasma: part of plasma release | ||||
# this will then set default values for MASTER_SITES and DIST_SUBDIR | # this will then set default values for MASTER_SITES and DIST_SUBDIR | ||||
# as well as CPE_VENDOR and LICENSE. | # as well as CPE_VENDOR and LICENSE. | ||||
# | # | ||||
# MAINTAINER: kde@FreeBSD.org | # MAINTAINER: kde@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_KDE_MK) | .if !defined(_INCLUDE_USES_KDE_MK) | ||||
_INCLUDE_USES_KDE_MK= yes | _INCLUDE_USES_KDE_MK= yes | ||||
_KDE_SUPPORTED= 4 5 | _KDE_SUPPORTED= 5 | ||||
. if empty(kde_ARGS) | . if empty(kde_ARGS) | ||||
IGNORE= kde needs a version (${_KDE_SUPPORTED}) | IGNORE= kde needs a version (${_KDE_SUPPORTED}) | ||||
. endif | . endif | ||||
. for ver in ${_KDE_SUPPORTED:O:u} | . for ver in ${_KDE_SUPPORTED:O:u} | ||||
. if ${kde_ARGS:M${ver}} | . if ${kde_ARGS:M${ver}} | ||||
. if !defined(_KDE_VERSION) | . if !defined(_KDE_VERSION) | ||||
_KDE_VERSION= ${ver} | _KDE_VERSION= ${ver} | ||||
. else | . else | ||||
IGNORE?= cannot be installed: different KDE versions specified via kde:[${_KDE_SUPPORTED:S/ //g}] #' | IGNORE?= cannot be installed: different KDE versions specified via kde:[${_KDE_SUPPORTED:S/ //g}] #' | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. if empty(_KDE_VERSION) | . if empty(_KDE_VERSION) | ||||
IGNORE?= kde:[${_KDE_SUPPORTED:S/ //g}] needs an argument #' | IGNORE?= kde:[${_KDE_SUPPORTED:S/ //g}] needs an argument #' | ||||
. endif | . else | ||||
_KDE_RELNAME= KDE${_KDE_VERSION} | _KDE_RELNAME= KDE${_KDE_VERSION} | ||||
# === VERSIONS OF THE DIFFERENT COMPONENTS ===================================== | # === VERSIONS OF THE DIFFERENT COMPONENTS ===================================== | ||||
# Old KDE desktop. | |||||
KDE4_VERSION?= 4.14.3 | |||||
KDE4_KDELIBS_VERSION= 4.14.38 | |||||
KDE4_ACTIVITIES_VERSION= 4.13.3 | |||||
KDE4_WORKSPACE_VERSION= 4.11.22 | |||||
KDE4_KDEPIM_VERSION?= 4.14.10 | |||||
# Applications version for the kde4-applications. | |||||
KDE4_APPLICATIONS_BRANCH?= Attic | |||||
KDE4_APPLICATIONS_VERSION?= 15.04.3 | |||||
KDE4_BRANCH?= stable | |||||
# Current KDE desktop. | # Current KDE desktop. | ||||
KDE_PLASMA_VERSION?= 5.14.4 | KDE_PLASMA_VERSION?= 5.14.4 | ||||
KDE_PLASMA_BRANCH?= stable | KDE_PLASMA_BRANCH?= stable | ||||
# Current KDE frameworks. | # Current KDE frameworks. | ||||
KDE_FRAMEWORKS_VERSION?= 5.53.0 | KDE_FRAMEWORKS_VERSION?= 5.53.0 | ||||
KDE_FRAMEWORKS_BRANCH?= stable | KDE_FRAMEWORKS_BRANCH?= stable | ||||
# Current KDE applications. | # Current KDE applications. | ||||
KDE_APPLICATIONS_VERSION?= 18.12.0 | KDE_APPLICATIONS_VERSION?= 18.12.0 | ||||
KDE_APPLICATIONS_SHLIB_VER?= 5.10.0 | KDE_APPLICATIONS_SHLIB_VER?= 5.10.0 | ||||
KDE_APPLICATIONS_BRANCH?= stable | KDE_APPLICATIONS_BRANCH?= stable | ||||
# Upstream moves old software to Attic/. Specify the newest applications release there. | # Upstream moves old software to Attic/. Specify the newest applications release there. | ||||
# Only the major version is used for the comparison. | # Only the major version is used for the comparison. | ||||
_KDE_APPLICATIONS_ATTIC_VERSION= 17.08.3 | _KDE_APPLICATIONS_ATTIC_VERSION= 17.08.3 | ||||
# Extended KDE universe applications. | # Extended KDE universe applications. | ||||
CALLIGRA_VERSION?= 2.9.11 | CALLIGRA_VERSION?= 2.9.11 | ||||
CALLIGRA_BRANCH?= stable | CALLIGRA_BRANCH?= stable | ||||
KDEVELOP_VERSION?= 4.7.4 | |||||
KDEVELOP_BRANCH?= stable | |||||
KTP_VERSION?= 0.9.0 | |||||
KTP_BRANCH?= stable | |||||
# ============================================================================== | # ============================================================================== | ||||
# === INSTALLATION PREFIXES AND HEADER LOCATION ================================ | # === INSTALLATION PREFIXES AND HEADER LOCATION ================================ | ||||
# Define unversioned prefix variable. | # Define unversioned prefix variable. | ||||
KDE_PREFIX= ${LOCALBASE} | KDE_PREFIX= ${LOCALBASE} | ||||
# ============================================================================== | # ============================================================================== | ||||
# === CATEGORIES HANDLING -- SETTING DEFAULT VALUES ============================ | # === CATEGORIES HANDLING -- SETTING DEFAULT VALUES ============================ | ||||
# Doing MASTER_SITES magic based on the category of the port | # Doing MASTER_SITES magic based on the category of the port | ||||
_KDE_CATEGORIES_SUPPORTED= kde-applications kde-frameworks kde-kde4 kde-plasma | _KDE_CATEGORIES_SUPPORTED= kde-applications kde-frameworks kde-plasma | ||||
. for cat in ${_KDE_CATEGORIES_SUPPORTED} | . for cat in ${_KDE_CATEGORIES_SUPPORTED} | ||||
. if ${CATEGORIES:M${cat}} | . if ${CATEGORIES:M${cat}} | ||||
. if !defined(_KDE_CATEGORY) | . if !defined(_KDE_CATEGORY) | ||||
_KDE_CATEGORY= ${cat} | _KDE_CATEGORY= ${cat} | ||||
. else | . else | ||||
IGNORE?= cannot be installed: multiple kde-<...> categories specified via CATEGORIES=${CATEGORIES} #' | IGNORE?= cannot be installed: multiple kde-<...> categories specified via CATEGORIES=${CATEGORIES} #' | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
. if defined(_KDE_CATEGORY) | . if defined(_KDE_CATEGORY) | ||||
# KDE is normally licensed under the LGPL 2.0. | # KDE is normally licensed under the LGPL 2.0. | ||||
LICENSE?= LGPL20 | LICENSE?= LGPL20 | ||||
# Set CPE Vendor Information | # Set CPE Vendor Information | ||||
# As _KDE_CATEGORY is set we can assume it is port release by KDE and the | # As _KDE_CATEGORY is set we can assume it is port release by KDE and the | ||||
# vendor is therefore kde. | # vendor is therefore kde. | ||||
CPE_VENDOR?= kde | CPE_VENDOR?= kde | ||||
. if ${_KDE_CATEGORY:Mkde-kde4} | . if ${_KDE_CATEGORY:Mkde-applications} | ||||
PORTVERSION?= ${KDE4_VERSION} | |||||
MASTER_SITES?= KDE/${KDE4_BRANCH}/${KDE4_VERSION}/src | |||||
DIST_SUBDIR?= KDE/${KDE4_VERSION} | |||||
PKGNAMESUFFIX= -kde4 | |||||
CONFLICTS_INSTALL= ${PORTNAME} | |||||
. elif ${_KDE_CATEGORY:Mkde-applications} | |||||
PORTVERSION?= ${KDE_APPLICATIONS_VERSION} | PORTVERSION?= ${KDE_APPLICATIONS_VERSION} | ||||
. if ${_KDE_VERSION:M4} | |||||
CONFLICTS_INSTALL?= ${PORTNAME}-[0-9]* | |||||
PKGNAMESUFFIX?= -kde4 | |||||
. else | |||||
CONFLICTS_INSTALL?= ${PORTNAME}-kde4 | |||||
. endif | |||||
# Decide where the file lies on KDE's servers: Check whether the file lies in Attic | # Decide where the file lies on KDE's servers: Check whether the file lies in Attic | ||||
. if ${KDE_APPLICATIONS_VERSION:R:R} <= ${_KDE_APPLICATIONS_ATTIC_VERSION:R:R} | . if ${KDE_APPLICATIONS_VERSION:R:R} <= ${_KDE_APPLICATIONS_ATTIC_VERSION:R:R} | ||||
MASTER_SITES?= KDE/Attic/applications/${KDE_APPLICATIONS_VERSION}/src | MASTER_SITES?= KDE/Attic/applications/${KDE_APPLICATIONS_VERSION}/src | ||||
. else | . else | ||||
MASTER_SITES?= KDE/${KDE_APPLICATIONS_BRANCH}/applications/${KDE_APPLICATIONS_VERSION}/src | MASTER_SITES?= KDE/${KDE_APPLICATIONS_BRANCH}/applications/${KDE_APPLICATIONS_VERSION}/src | ||||
# Let bsd.port.mk create the plist-entries for the documentation. | # Let bsd.port.mk create the plist-entries for the documentation. | ||||
# KDE Applications ports install their documentation to | # KDE Applications ports install their documentation to | ||||
# ${PREFIX}/share/doc. | # ${PREFIX}/share/doc. | ||||
DOCSDIR= ${PREFIX}/share/doc | DOCSDIR= ${PREFIX}/share/doc | ||||
PORTDOCS?= HTML/* | PORTDOCS?= HTML/* | ||||
# Further pass along a SHLIB_VER PLIST_SUB | # Further pass along a SHLIB_VER PLIST_SUB | ||||
PLIST_SUB+= KDE_APPLICATIONS_SHLIB_VER=${KDE_APPLICATIONS_SHLIB_VER} \ | PLIST_SUB+= KDE_APPLICATIONS_SHLIB_VER=${KDE_APPLICATIONS_SHLIB_VER} \ | ||||
KDE_APPLICATIONS_VERSION_SHORT="${KDE_APPLICATIONS_VERSION:R:R}" | KDE_APPLICATIONS_VERSION_SHORT="${KDE_APPLICATIONS_VERSION:R:R}" | ||||
. endif | . endif | ||||
DIST_SUBDIR?= KDE/applications/${KDE_APPLICATIONS_VERSION} | DIST_SUBDIR?= KDE/applications/${KDE_APPLICATIONS_VERSION} | ||||
. elif ${_KDE_CATEGORY:Mkde-plasma} | . elif ${_KDE_CATEGORY:Mkde-plasma} | ||||
PORTVERSION?= ${KDE_PLASMA_VERSION} | PORTVERSION?= ${KDE_PLASMA_VERSION} | ||||
PKGNAMEPREFIX?= plasma5- | PKGNAMEPREFIX?= plasma5- | ||||
MASTER_SITES?= KDE/${KDE_PLASMA_BRANCH}/plasma/${KDE_PLASMA_VERSION} | MASTER_SITES?= KDE/${KDE_PLASMA_BRANCH}/plasma/${KDE_PLASMA_VERSION} | ||||
DIST_SUBDIR?= KDE/plasma/${KDE_PLASMA_VERSION} | DIST_SUBDIR?= KDE/plasma/${KDE_PLASMA_VERSION} | ||||
. elif ${_KDE_CATEGORY:Mkde-frameworks} | . elif ${_KDE_CATEGORY:Mkde-frameworks} | ||||
PORTVERSION?= ${KDE_FRAMEWORKS_VERSION} | PORTVERSION?= ${KDE_FRAMEWORKS_VERSION} | ||||
PKGNAMEPREFIX?= kf5- | PKGNAMEPREFIX?= kf5- | ||||
# This is a slight duplication of _USE_FRAMEWORKS_PORTING -- it maybe would be | # This is a slight duplication of _USE_FRAMEWORKS_PORTING -- it maybe would be | ||||
# better to rely on ${_USE_FRAMEWORKS_PORTING:S/^/k/g} | # better to rely on ${_USE_FRAMEWORKS_PORTING:S/^/k/g} | ||||
_PORTINGAIDS= kjs kjsembed kdelibs4support khtml kmediaplayer kross | _PORTINGAIDS= kjs kjsembed kdelibs4support khtml kmediaplayer kross | ||||
. if ${_PORTINGAIDS:M*${PORTNAME}*} | . if ${_PORTINGAIDS:M*${PORTNAME}*} | ||||
MASTER_SITES?= KDE/${KDE_FRAMEWORKS_BRANCH}/frameworks/${KDE_FRAMEWORKS_VERSION:R}/portingAids | MASTER_SITES?= KDE/${KDE_FRAMEWORKS_BRANCH}/frameworks/${KDE_FRAMEWORKS_VERSION:R}/portingAids | ||||
. else | . else | ||||
MASTER_SITES?= KDE/${KDE_FRAMEWORKS_BRANCH}/frameworks/${KDE_FRAMEWORKS_VERSION:R} | MASTER_SITES?= KDE/${KDE_FRAMEWORKS_BRANCH}/frameworks/${KDE_FRAMEWORKS_VERSION:R} | ||||
. endif | . endif | ||||
DIST_SUBDIR?= KDE/frameworks/${KDE_FRAMEWORKS_VERSION} | DIST_SUBDIR?= KDE/frameworks/${KDE_FRAMEWORKS_VERSION} | ||||
. else | . else | ||||
IGNORE?= unknown CATEGORY value '${_KDE_CATEGORY}' #' | IGNORE?= unknown CATEGORY value '${_KDE_CATEGORY}' #' | ||||
. endif | . endif | ||||
. endif #defined(_KDE_CATEGORY) | . endif #defined(_KDE_CATEGORY) | ||||
# ============================================================================== | # ============================================================================== | ||||
# ==== SETUP CMAKE ENVIRONMENT ================================================= | # ==== SETUP CMAKE ENVIRONMENT ================================================= | ||||
# Help cmake to find files when testing ports with non-default PREFIX. | # Help cmake to find files when testing ports with non-default PREFIX. | ||||
CMAKE_ARGS+= -DCMAKE_PREFIX_PATH="${LOCALBASE}" | CMAKE_ARGS+= -DCMAKE_PREFIX_PATH="${LOCALBASE}" | ||||
. if ${_KDE_VERSION:M*4*} | . if ${_KDE_VERSION:M*5*} | ||||
CMAKE_ARGS+= -DKDE4_BUILD_TESTS:BOOL=OFF | |||||
. elif ${_KDE_VERSION:M*5*} | |||||
# We set KDE_INSTALL_USE_QT_SYS_PATHS to install mkspecs files, plugins and | # We set KDE_INSTALL_USE_QT_SYS_PATHS to install mkspecs files, plugins and | ||||
# imports to the Qt 5 install directory. | # imports to the Qt 5 install directory. | ||||
CMAKE_ARGS+= -DBUILD_TESTING:BOOL=OFF \ | CMAKE_ARGS+= -DBUILD_TESTING:BOOL=OFF \ | ||||
-DCMAKE_MODULE_PATH="${LOCALBASE};${KDE_PREFIX}" \ | -DCMAKE_MODULE_PATH="${LOCALBASE};${KDE_PREFIX}" \ | ||||
-DCMAKE_INSTALL_PREFIX="${KDE_PREFIX}" \ | -DCMAKE_INSTALL_PREFIX="${KDE_PREFIX}" \ | ||||
-DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=TRUE | -DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=TRUE | ||||
. endif | . endif | ||||
# Set man-page installation prefix. | # Set man-page installation prefix. | ||||
CMAKE_ARGS+= -DKDE_INSTALL_MANDIR:PATH="${KDE_PREFIX}/man" \ | CMAKE_ARGS+= -DKDE_INSTALL_MANDIR:PATH="${KDE_PREFIX}/man" \ | ||||
-DMAN_INSTALL_DIR:PATH="${KDE_PREFIX}/man" | -DMAN_INSTALL_DIR:PATH="${KDE_PREFIX}/man" | ||||
# ============================================================================== | # ============================================================================== | ||||
# === SET-UP PLIST_SUB ========================================================= | # === SET-UP PLIST_SUB ========================================================= | ||||
# Prefix and include directory. | # Prefix and include directory. | ||||
PLIST_SUB+= KDE_PREFIX="${KDE_PREFIX}" | PLIST_SUB+= KDE_PREFIX="${KDE_PREFIX}" | ||||
# KDE Applications version. | # KDE Applications version. | ||||
PLIST_SUB+= KDE_APPLICATIONS_VERSION="${KDE_APPLICATIONS_VERSION}" | PLIST_SUB+= KDE_APPLICATIONS_VERSION="${KDE_APPLICATIONS_VERSION}" | ||||
# For KDE4 applications provide KDE4 version numbers. | . if ${_KDE_VERSION:M*5*} | ||||
. if ${_KDE_VERSION:M*4*} | |||||
PLIST_SUB+= KDE4_VERSION="${KDE4_VERSION}" \ | |||||
KDE4_GENERIC_LIB_VERSION=${KDE4_KDELIBS_VERSION} \ | |||||
KDE4_NON_GENERIC_LIB_VERSION=${KDE4_KDELIBS_VERSION:S,^4,5,} \ | |||||
KDE4_KDELIBS_VERSION=${KDE4_KDELIBS_VERSION} \ | |||||
KDE4_NG_KDELIBS_VERSION=${KDE4_KDELIBS_VERSION:S,^4,5,} | |||||
. elif ${_KDE_VERSION:M*5*} | |||||
PLIST_SUB+= KDE_PLASMA_VERSION="${KDE_PLASMA_VERSION}" \ | PLIST_SUB+= KDE_PLASMA_VERSION="${KDE_PLASMA_VERSION}" \ | ||||
KDE_FRAMEWORKS_VERSION="${KDE_FRAMEWORKS_VERSION}" | KDE_FRAMEWORKS_VERSION="${KDE_FRAMEWORKS_VERSION}" | ||||
. endif | . endif | ||||
# ============================================================================== | # ============================================================================== | ||||
# === HANDLE PYTHON ============================================================ | # === HANDLE PYTHON ============================================================ | ||||
# TODO: Keep in sync with cmake/modules/PythonMacros.cmake | # TODO: Keep in sync with cmake/modules/PythonMacros.cmake | ||||
_PYTHON_SHORT_VER= ${PYTHON_VERSION:S/^python//:S/.//} | _PYTHON_SHORT_VER= ${PYTHON_VERSION:S/^python//:S/.//} | ||||
. if ${_PYTHON_SHORT_VER} > 31 | . if ${_PYTHON_SHORT_VER} > 31 | ||||
PLIST_SUB+= PYCACHE="__pycache__/" \ | PLIST_SUB+= PYCACHE="__pycache__/" \ | ||||
PYC_SUFFIX=cpython-${_PYTHON_SHORT_VER}.pyc \ | PYC_SUFFIX=cpython-${_PYTHON_SHORT_VER}.pyc \ | ||||
PYO_SUFFIX=cpython-${_PYTHON_SHORT_VER}.pyo | PYO_SUFFIX=cpython-${_PYTHON_SHORT_VER}.pyo | ||||
. else | . else | ||||
PLIST_SUB+= PYCACHE="" \ | PLIST_SUB+= PYCACHE="" \ | ||||
PYC_SUFFIX=pyc \ | PYC_SUFFIX=pyc \ | ||||
PYO_SUFFIX=pyo | PYO_SUFFIX=pyo | ||||
. endif | . endif | ||||
# ============================================================================== | # ============================================================================== | ||||
_USE_KDE_BOTH= akonadi attica libkcddb libkcompactdisc libkdcraw libkdegames \ | _USE_KDE_BOTH= akonadi attica libkcddb libkcompactdisc libkdcraw libkdegames \ | ||||
libkeduvocdocument libkexiv2 libkipi libksane okular \ | libkeduvocdocument libkexiv2 libkipi libksane okular \ | ||||
baloo baloo-widgets kate marble | baloo baloo-widgets kate marble | ||||
_USE_KDE4_ALL= baseapps kactivities kdelibs \ | |||||
kfilemetadata korundum \ | |||||
libkonq nepomuk-core nepomuk-widgets \ | |||||
oxygen-icons5 perlkde perlqt pimlibs pykde4 \ | |||||
pykdeuic4 qtruby runtime smokegen smokekde smokeqt \ | |||||
workspace | |||||
# These components are not part of the Software Compilation. | |||||
_USE_KDE4_ALL+= automoc4 ontologies qimageblitz soprano \ | |||||
strigi | |||||
_USE_KDE4_ALL+= ${_USE_KDE_BOTH} | |||||
# List of components of the KDE Frameworks distribution. | # List of components of the KDE Frameworks distribution. | ||||
# The *_TIER<n> variables are internal, primarily for checking | # The *_TIER<n> variables are internal, primarily for checking | ||||
# that our list of frameworks matches the structure offered upstream. | # that our list of frameworks matches the structure offered upstream. | ||||
_USE_FRAMEWORKS_TIER1= apidox archive attica5 breeze-icons codecs config \ | _USE_FRAMEWORKS_TIER1= apidox archive attica5 breeze-icons codecs config \ | ||||
coreaddons dbusaddons dnssd holidays i18n idletime itemmodels \ | coreaddons dbusaddons dnssd holidays i18n idletime itemmodels \ | ||||
itemviews kirigami2 oxygen-icons5 plotting prison \ | itemviews kirigami2 oxygen-icons5 plotting prison \ | ||||
qqc2-desktop-style solid sonnet syntaxhighlighting \ | qqc2-desktop-style solid sonnet syntaxhighlighting \ | ||||
threadweaver wayland widgetsaddons windowsystem | threadweaver wayland widgetsaddons windowsystem | ||||
Show All 22 Lines | _USE_FRAMEWORKS_ALL= ecm \ | ||||
${_USE_FRAMEWORKS_TIER2} \ | ${_USE_FRAMEWORKS_TIER2} \ | ||||
${_USE_FRAMEWORKS_TIER3} \ | ${_USE_FRAMEWORKS_TIER3} \ | ||||
${_USE_FRAMEWORKS_TIER4} \ | ${_USE_FRAMEWORKS_TIER4} \ | ||||
${_USE_FRAMEWORKS_PORTING} \ | ${_USE_FRAMEWORKS_PORTING} \ | ||||
${_USE_FRAMEWORKS_EXTRA} | ${_USE_FRAMEWORKS_EXTRA} | ||||
# List of components of the KDE Plasma distribution. | # List of components of the KDE Plasma distribution. | ||||
_USE_PLASMA_ALL= activitymanagerd breeze breeze-gtk \ | _USE_PLASMA_ALL= activitymanagerd breeze breeze-gtk \ | ||||
breeze-kde4 decoration discover drkonqi hotkeys \ | decoration discover drkonqi hotkeys \ | ||||
infocenter kde-cli-tools kde-gtk-config \ | infocenter kde-cli-tools kde-gtk-config \ | ||||
kdeplasma-addons kgamma5 kmenuedit kscreen \ | kdeplasma-addons kgamma5 kmenuedit kscreen \ | ||||
kscreenlocker ksshaskpass ksysguard kwallet-pam \ | kscreenlocker ksshaskpass ksysguard kwallet-pam \ | ||||
kwayland-integration kwin kwrited libkscreen \ | kwayland-integration kwin kwrited libkscreen \ | ||||
libksysguard milou oxygen plasma-browser-integration \ | libksysguard milou oxygen plasma-browser-integration \ | ||||
plasma-desktop plasma-integration plasma-pa \ | plasma-desktop plasma-integration plasma-pa \ | ||||
plasma-sdk plasma-workspace plasma-workspace-wallpapers \ | plasma-sdk plasma-workspace plasma-workspace-wallpapers \ | ||||
polkit-kde-agent-1 powerdevil systemsettings \ | polkit-kde-agent-1 powerdevil systemsettings \ | ||||
Show All 15 Lines | _USE_KDEPIM5_ALL= akonadicontacts akonadiimportwizard akonadimime akonadinotes \ | ||||
kalarm kmail-account-wizard kmail knotes kontact \ | kalarm kmail-account-wizard kmail knotes kontact \ | ||||
korganizer mbox-importer pim-data-exporter | korganizer mbox-importer pim-data-exporter | ||||
_USE_KDE5_ALL= ${_USE_FRAMEWORKS_ALL} \ | _USE_KDE5_ALL= ${_USE_FRAMEWORKS_ALL} \ | ||||
${_USE_PLASMA_ALL} \ | ${_USE_PLASMA_ALL} \ | ||||
${_USE_KDEPIM5_ALL} \ | ${_USE_KDEPIM5_ALL} \ | ||||
${_USE_KDE_BOTH} | ${_USE_KDE_BOTH} | ||||
# ====================== kde4 components ======================================= | |||||
baseapps_PORT= x11/kde-baseapps-kde4 | |||||
baseapps_PATH= ${KDE_PREFIX}/bin/kfmclient | |||||
baseapps_TYPE= run | |||||
kactivities_PORT= x11/kactivities | |||||
kactivities_LIB= libkactivities.so | |||||
kdelibs_PORT= x11/kdelibs-kde4 | |||||
kdelibs_LIB= libkdecore.so | |||||
kfilemetadata_PORT= sysutils/kfilemetadata-kde4 | |||||
kfilemetadata_LIB= libkfilemetadata.so | |||||
korundum_PORT= devel/ruby-korundum-kde4 | |||||
korundum_PATH= ${KDE_PREFIX}/lib/kde4/krubypluginfactory.so | |||||
korundum_TYPE= run | |||||
libkonq_PORT= x11/libkonq-kde4 | |||||
libkonq_LIB= libkonq.so | |||||
nepomuk-core_PORT= sysutils/nepomuk-core-kde4 | |||||
nepomuk-core_LIB= libnepomukcore.so | |||||
nepomuk-widgets_PORT= sysutils/nepomuk-widgets-kde4 | |||||
nepomuk-widgets_LIB= libnepomukwidgets.so | |||||
perlkde_PORT= devel/p5-perlkde-kde4 | |||||
perlkde_PATH= ${KDE_PREFIX}/lib/kde4/kperlpluginfactory.so | |||||
perlkde_TYPE= run | |||||
perlqt_PORT= devel/p5-perlqt-kde4 | |||||
perlqt_PATH= ${KDE_PREFIX}/bin/puic4 | |||||
pimlibs_PORT= deskutils/kdepimlibs-kde4 | |||||
pimlibs_LIB= libkpimutils.so | |||||
pykde4_PORT= devel/py-pykde4-kde4 | |||||
pykde4_PATH= ${KDE_PREFIX}/lib/kde4/kpythonpluginfactory.so | |||||
pykde4_TYPE= run | |||||
pykdeuic4_PORT= devel/py-pykdeuic4-kde4 | |||||
pykdeuic4_PATH= ${LOCALBASE}/bin/pykdeuic4 | |||||
pykdeuic4_TYPE= run | |||||
qtruby_PORT= devel/ruby-qtruby-kde4 | |||||
qtruby_LIB= libqtruby4shared.so | |||||
runtime_PORT= x11/kde-runtime-kde4 | |||||
runtime_PATH= ${KDE_PREFIX}/bin/knotify4 | |||||
runtime_TYPE= run | |||||
smokegen_PORT= devel/smokegen-kde4 | |||||
smokegen_LIB= libsmokebase.so | |||||
smokekde_PORT= devel/smokekde-kde4 | |||||
smokekde_LIB= libsmokekdecore.so | |||||
smokeqt_PORT= devel/smokeqt-kde4 | |||||
smokeqt_LIB= libsmokeqtcore.so | |||||
workspace_PORT= x11/kde-workspace-kde4 | |||||
workspace_LIB= libkworkspace.so | |||||
# Non-Software Compilation components | |||||
automoc4_PORT= devel/automoc4 | |||||
automoc4_PATH= ${LOCALBASE}/bin/automoc4 | |||||
automoc4_TYPE= build | |||||
ontologies_PORT= x11-toolkits/shared-desktop-ontologies | |||||
ontologies_PATH= ${LOCALBASE}/share/ontology/core/rdf.ontology | |||||
qimageblitz_PORT= x11/qimageblitz | |||||
qimageblitz_LIB= libqimageblitz.so | |||||
soprano_PORT= textproc/soprano | |||||
soprano_LIB= libsoprano.so | |||||
strigi_PORT= deskutils/libstreamanalyzer | |||||
strigi_LIB= libstreamanalyzer.so.0 | |||||
# ====================== end of kde4 components ================================ | |||||
# ====================== frameworks components ================================= | # ====================== frameworks components ================================= | ||||
activities_PORT= x11/kf5-kactivities | activities_PORT= x11/kf5-kactivities | ||||
activities_LIB= libKF5Activities.so | activities_LIB= libKF5Activities.so | ||||
activities-stats_PORT= x11/kf5-kactivities-stats | activities-stats_PORT= x11/kf5-kactivities-stats | ||||
activities-stats_LIB= libKF5ActivitiesStats.so | activities-stats_LIB= libKF5ActivitiesStats.so | ||||
apidox_PORT= devel/kf5-kapidox | apidox_PORT= devel/kf5-kapidox | ||||
▲ Show 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | |||||
activitymanagerd_LIB= libkactivitymanagerd_plugin.so | activitymanagerd_LIB= libkactivitymanagerd_plugin.so | ||||
breeze_PORT= x11-themes/plasma5-breeze | breeze_PORT= x11-themes/plasma5-breeze | ||||
breeze_PATH= ${KDE_PREFIX}/share/QtCurve/Breeze.qtcurve | breeze_PATH= ${KDE_PREFIX}/share/QtCurve/Breeze.qtcurve | ||||
breeze-gtk_PORT= x11-themes/plasma5-breeze-gtk | breeze-gtk_PORT= x11-themes/plasma5-breeze-gtk | ||||
breeze-gtk_PATH= ${KDE_PREFIX}/lib/kconf_update_bin/gtkbreeze5.5 | breeze-gtk_PATH= ${KDE_PREFIX}/lib/kconf_update_bin/gtkbreeze5.5 | ||||
breeze-kde4_PORT= x11-themes/plasma5-breeze-kde4 | |||||
breeze-kde4_PATH= ${KDE_PREFIX}/lib/kde4/kstyle_breeze_config.so | |||||
decoration_PORT= x11-wm/plasma5-kdecoration | decoration_PORT= x11-wm/plasma5-kdecoration | ||||
decoration_LIB= libkdecorations2.so | decoration_LIB= libkdecorations2.so | ||||
discover_PORT= sysutils/plasma5-discover | discover_PORT= sysutils/plasma5-discover | ||||
discover_PATH= ${KDE_PREFIX}/bin/plasma-discover | discover_PATH= ${KDE_PREFIX}/bin/plasma-discover | ||||
drkonqi_PORT= sysutils/plasma5-drkonqi | drkonqi_PORT= sysutils/plasma5-drkonqi | ||||
drkonqi_PATH= ${KDE_PREFIX}/lib/libexec/drkonqi | drkonqi_PATH= ${KDE_PREFIX}/lib/libexec/drkonqi | ||||
▲ Show 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | |||||
mbox-importer_PORT= deskutils/mbox-importer | mbox-importer_PORT= deskutils/mbox-importer | ||||
mbox-importer_PATH= ${KDE_PREFIX}/bin/mboximporter | mbox-importer_PATH= ${KDE_PREFIX}/bin/mboximporter | ||||
pim-data-exporter_PORT= deskutils/pim-data-exporter | pim-data-exporter_PORT= deskutils/pim-data-exporter | ||||
pim-data-exporter_PATH= ${KDE_PREFIX}/bin/pimsettingexporter | pim-data-exporter_PATH= ${KDE_PREFIX}/bin/pimsettingexporter | ||||
# ====================== end of pim5 components ================================ | # ====================== end of pim5 components ================================ | ||||
# ====================== multiversion component ================================ | # ====================== multiversion component ================================ | ||||
akonadi4_PORT= databases/akonadi-kde4 | |||||
akonadi4_LIB= libakonadiprotocolinternals.so | |||||
akonadi5_PORT= databases/akonadi | akonadi5_PORT= databases/akonadi | ||||
akonadi5_LIB= libKF5AkonadiPrivate.so | akonadi5_LIB= libKF5AkonadiPrivate.so | ||||
attica4_PORT= x11-toolkits/attica | |||||
attica4_LIB= libattica.so | |||||
baloo4_PORT= sysutils/baloo-kde4 | |||||
baloo4_LIB= libbaloocore.so | |||||
# baloo5 defined above, under KDE5 components | |||||
baloo-widgets4_PORT= sysutils/baloo-widgets-kde4 | |||||
baloo-widgets4_LIB= libbaloowidgets.so | |||||
baloo-widgets5_PORT= sysutils/baloo-widgets | baloo-widgets5_PORT= sysutils/baloo-widgets | ||||
baloo-widgets5_LIB= libKF5BalooWidgets.so | baloo-widgets5_LIB= libKF5BalooWidgets.so | ||||
kate4_PORT= editors/kate-kde4 | |||||
kate4_LIB= libkateinterfaces.so | |||||
kate5_PORT= editors/kate | kate5_PORT= editors/kate | ||||
kate5_PATH= ${QT_PLUGINDIR}/ktexteditor/katebacktracebrowserplugin.so | kate5_PATH= ${QT_PLUGINDIR}/ktexteditor/katebacktracebrowserplugin.so | ||||
libkcddb4_PORT= audio/libkcddb-kde4 | |||||
libkcddb4_LIB= libkcddb.so | |||||
libkcddb5_PORT= audio/libkcddb | libkcddb5_PORT= audio/libkcddb | ||||
libkcddb5_LIB= libKF5Cddb.so | libkcddb5_LIB= libKF5Cddb.so | ||||
libkcompactdisc4_PORT= audio/libkcompactdisc-kde4 | |||||
libkcompactdisc4_LIB= libkcompactdisc.so | |||||
libkcompactdisc5_PORT= audio/libkcompactdisc-kde5 | libkcompactdisc5_PORT= audio/libkcompactdisc-kde5 | ||||
libkcompactdisc5_LIB= libKF5CompactDisc.so | libkcompactdisc5_LIB= libKF5CompactDisc.so | ||||
libkdcraw4_PORT= graphics/libkdcraw-kde4 | |||||
libkdcraw4_LIB= libkdcraw.so | |||||
libkdcraw5_PORT= graphics/libkdcraw | libkdcraw5_PORT= graphics/libkdcraw | ||||
libkdcraw5_LIB= libKF5KDcraw.so | libkdcraw5_LIB= libKF5KDcraw.so | ||||
libkdegames4_PORT= games/libkdegames-kde4 | |||||
libkdegames4_LIB= libkdegames.so | |||||
libkdegames5_PORT= games/libkdegames | libkdegames5_PORT= games/libkdegames | ||||
libkdegames5_LIB= libKF5KDEGames.so | libkdegames5_LIB= libKF5KDEGames.so | ||||
libkeduvocdocument4_PORT= misc/libkdeedu-kde4 | |||||
libkeduvocdocument4_LIB= libkeduvocdocument.so | |||||
libkeduvocdocument5_PORT= misc/libkeduvocdocument | libkeduvocdocument5_PORT= misc/libkeduvocdocument | ||||
libkeduvocdocument5_LIB= libKEduVocDocument.so | libkeduvocdocument5_LIB= libKEduVocDocument.so | ||||
libkexiv24_PORT= graphics/libkexiv2-kde4 | |||||
libkexiv24_LIB= libkexiv2.so | |||||
libkexiv25_PORT= graphics/libkexiv2 | libkexiv25_PORT= graphics/libkexiv2 | ||||
libkexiv25_LIB= libKF5KExiv2.so | libkexiv25_LIB= libKF5KExiv2.so | ||||
libkipi4_PORT= graphics/libkipi-kde4 | |||||
libkipi4_LIB= libkipi.so | |||||
libkipi5_PORT= graphics/libkipi | libkipi5_PORT= graphics/libkipi | ||||
libkipi5_LIB= libKF5Kipi.so | libkipi5_LIB= libKF5Kipi.so | ||||
libksane4_PORT= graphics/libksane-kde4 | |||||
libksane4_LIB= libksane.so | |||||
libksane5_PORT= graphics/libksane | libksane5_PORT= graphics/libksane | ||||
libksane5_LIB= libKF5Sane.so | libksane5_LIB= libKF5Sane.so | ||||
marble4_PORT= astro/marble-kde4 | |||||
marble4_LIB= libmarblewidget.so | |||||
marble5_PORT= astro/marble | marble5_PORT= astro/marble | ||||
marble5_LIB= libmarblewidget-qt5.so | marble5_LIB= libmarblewidget-qt5.so | ||||
okular4_PORT= graphics/okular-kde4 | |||||
okular4_LIB= libokularcore.so | |||||
okular5_PORT= graphics/okular | okular5_PORT= graphics/okular | ||||
okular5_LIB= libOkular5Core.so | okular5_LIB= libOkular5Core.so | ||||
# ====================== end of multiversion components ======================== | # ====================== end of multiversion components ======================== | ||||
# ====================== select the proper multiversion component ============== | # ====================== select the proper multiversion component ============== | ||||
. for comp in ${_USE_KDE_BOTH} | . for comp in ${_USE_KDE_BOTH} | ||||
${comp}_PORT= ${${comp}${_KDE_VERSION}_PORT} | ${comp}_PORT= ${${comp}${_KDE_VERSION}_PORT} | ||||
. if defined(${comp}${_KDE_VERSION}_LIB) | . if defined(${comp}${_KDE_VERSION}_LIB) | ||||
${comp}_LIB= ${${comp}${_KDE_VERSION}_LIB} | ${comp}_LIB= ${${comp}${_KDE_VERSION}_LIB} | ||||
. else | . else | ||||
. if defined(${comp}${_KDE_VERSION}_PATH}) | . if defined(${comp}${_KDE_VERSION}_PATH}) | ||||
${comp}_PATH= ${${comp}${_KDE_VERSION}_LIB} | ${comp}_PATH= ${${comp}${_KDE_VERSION}_LIB} | ||||
. endif | . endif | ||||
# If neither is defined, this gets caught below when checking components | # If neither is defined, this gets caught below when checking components | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
#=============================================================================== | #=============================================================================== | ||||
# end of component list ######################################################## | # end of component list ######################################################## | ||||
_USE_KDE_ALL= ${_USE_${_KDE_RELNAME}_ALL} | _USE_KDE_ALL= ${_USE_${_KDE_RELNAME}_ALL} | ||||
# Iterate through components deprived of suffix. | # Iterate through components deprived of suffix. | ||||
. for component in ${USE_KDE:O:u:C/_.+//} | . for component in ${USE_KDE:O:u:C/_.+//} | ||||
# Check that the component is valid. | # Check that the component is valid. | ||||
. if ${_USE_KDE_ALL:M${component}} != "" | . if ${_USE_KDE_ALL:M${component}} != "" | ||||
# Skip meta-components (currently none). | # Skip meta-components (currently none). | ||||
. if defined(${component}_PORT) && (defined(${component}_PATH) || defined(${component}_LIB)) | . if defined(${component}_PORT) && (defined(${component}_PATH) || defined(${component}_LIB)) | ||||
# Check if a dependency type is explicitly requested. | # Check if a dependency type is explicitly requested. | ||||
. if ${USE_KDE:M${component}_*} != "" && ${USE_KDE:M${component}} == "" | . if ${USE_KDE:M${component}_*} != "" && ${USE_KDE:M${component}} == "" | ||||
${component}_TYPE= # empty | ${component}_TYPE= # empty | ||||
. if ${USE_KDE:M${component}_build} != "" | . if ${USE_KDE:M${component}_build} != "" | ||||
${component}_TYPE+= build | ${component}_TYPE+= build | ||||
. endif | . endif | ||||
. if ${USE_KDE:M${component}_run} != "" | . if ${USE_KDE:M${component}_run} != "" | ||||
${component}_TYPE+= run | ${component}_TYPE+= run | ||||
. endif | . endif | ||||
. endif # ${USE_KDE:M${component}_*} != "" && ${USE_KDE:M${component}} == "" | . endif # ${USE_KDE:M${component}_*} != "" && ${USE_KDE:M${component}} == "" | ||||
# If no dependency type is set, default to full dependency. | # If no dependency type is set, default to full dependency. | ||||
. if !defined(${component}_TYPE) | . if !defined(${component}_TYPE) | ||||
${component}_TYPE= build run | ${component}_TYPE= build run | ||||
. endif | . endif | ||||
# Set real dependencies. | # Set real dependencies. | ||||
. if defined(${component}_LIB) && ${${component}_TYPE:Mbuild} && ${${component}_TYPE:Mrun} | . if defined(${component}_LIB) && ${${component}_TYPE:Mbuild} && ${${component}_TYPE:Mrun} | ||||
LIB_DEPENDS+= ${${component}_LIB}:${${component}_PORT} | LIB_DEPENDS+= ${${component}_LIB}:${${component}_PORT} | ||||
. else | . else | ||||
${component}_PATH?= ${KDE_PREFIX}/lib/${${component}_LIB} | ${component}_PATH?= ${KDE_PREFIX}/lib/${${component}_LIB} | ||||
${component}_DEPENDS= ${${component}_PATH}:${${component}_PORT} | ${component}_DEPENDS= ${${component}_PATH}:${${component}_PORT} | ||||
. if ${${component}_TYPE:Mbuild} != "" | . if ${${component}_TYPE:Mbuild} != "" | ||||
BUILD_DEPENDS+= ${${component}_DEPENDS} | BUILD_DEPENDS+= ${${component}_DEPENDS} | ||||
. endif | . endif | ||||
. if ${${component}_TYPE:Mrun} != "" | . if ${${component}_TYPE:Mrun} != "" | ||||
RUN_DEPENDS+= ${${component}_DEPENDS} | RUN_DEPENDS+= ${${component}_DEPENDS} | ||||
. endif | . endif | ||||
. endif # ${${component}_LIB} && ${${component}_TYPE:Mbuild} && ${${component}_TYPE:Mrun} | . endif # ${${component}_LIB} && ${${component}_TYPE:Mbuild} && ${${component}_TYPE:Mrun} | ||||
. endif # defined(${component}_PORT) && defined(${component}_PATH) | . endif # defined(${component}_PORT) && defined(${component}_PATH) | ||||
. else # ! ${_USE_KDE_ALL:M${component}} != "" | . else # ! ${_USE_KDE_ALL:M${component}} != "" | ||||
IGNORE= cannot be installed: unknown USE_KDE component '${component}' | IGNORE= cannot be installed: unknown USE_KDE component '${component}' | ||||
. endif # ${_USE_KDE_ALL:M${component}} != "" | . endif # ${_USE_KDE_ALL:M${component}} != "" | ||||
. endfor | . endfor | ||||
. endif | |||||
.endif | .endif |