Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/kde.mk
Show All 10 Lines | |||||
# Variables that can be set by a port: | # Variables that can be set by a port: | ||||
# | # | ||||
# USE_KDE List of KDE4 components (other ports) that this | # USE_KDE List of KDE4 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> | # * foo (default) Add both dependencies on component <foo> | ||||
# | # | ||||
# | |||||
# To simplify the ports, also: | |||||
# CATEGORIES If the port is part of one of the KDE Software distribution, | |||||
# it can add, in addition to 'kde' one of the following: | |||||
# kde-kde4: part of kde4 release | |||||
# this will then set default values for MASTER_SITES and DIST_SUBDIR | |||||
# 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 | _KDE_SUPPORTED= 4 | ||||
. if empty(kde_ARGS) | . if empty(kde_ARGS) | ||||
Show All 38 Lines | |||||
KTP_VERSION?= 0.9.0 | KTP_VERSION?= 0.9.0 | ||||
KTP_BRANCH?= stable | KTP_BRANCH?= stable | ||||
# ============================================================================== | # ============================================================================== | ||||
# === INSTALLATION PREFIX ====================================================== | # === INSTALLATION PREFIX ====================================================== | ||||
# Define installation prefix. | # Define installation prefix. | ||||
KDE_PREFIX= ${LOCALBASE} | KDE_PREFIX= ${LOCALBASE} | ||||
# ============================================================================== | |||||
# === _KDE_DIST HANDLING -- SETTING DEFAULT VALUES ============================= | |||||
# Doing MASTER_SITES magic based on the category of the port | |||||
. if empty(MASTER_SITES) || empty(DIST_SUBDIR) | |||||
_KDE_CATEGORIES_SUPPORTED= kde-kde4 | |||||
. for cat in ${_KDE_CATEGORIES_SUPPORTED:O:u} | |||||
mat: I don't think `:O:u` are needed here, the variable is literally defined on the previous line… | |||||
. if ${CATEGORIES:M${cat}} | |||||
. if !defined(_KDE_CATEGORY) | |||||
_KDE_CATEGORY= ${cat} | |||||
. else | |||||
IGNORE?= cannot be installed: multiple kde-<...> categories specified via CATEGORIES=${CATEGORIES} #' | |||||
. endif | |||||
. endif | |||||
. endfor | |||||
. if defined(_KDE_CATEGORY) | |||||
# KDE is normally licencensed LGPL 2.0. | |||||
LICENSE?= LGPL20 | |||||
# Set CPE Vendor Information | |||||
# As KDE_DIST is set we can assume it is port release by KDE and the vendor | |||||
Done Inline ActionsIs this comment still relevant? I don't see anything Calligra-specific below. rakuco: Is this comment still relevant? I don't see anything Calligra-specific below. | |||||
# is therefore kde (there are exceptions, like calligra, see below). | |||||
CPE_VENDOR?= kde | |||||
. if ${_KDE_CATEGORY:Mkde-kde4} | |||||
PORTVERSION?= ${KDE4_VERSION} | |||||
MASTER_SITES?= KDE/${KDE4_BRANCH}/${KDE4_VERSION}/src | |||||
DIST_SUBDIR?= KDE/${KDE4_VERSION} | |||||
. else | |||||
IGNORE?= unknown CATEGORY value '${_KDE_CATEGORY}' #' | |||||
. endif | |||||
. endif #defined(_KDE_CATEGORY) | |||||
. endif # empty(MASTER_SITES) || empty(DIST_SUBDIR) | |||||
# ============================================================================== | # ============================================================================== | ||||
# ==== 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*4*} | ||||
CMAKE_ARGS+= -DKDE4_BUILD_TESTS:BOOL=OFF | CMAKE_ARGS+= -DKDE4_BUILD_TESTS:BOOL=OFF | ||||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |
I don't think :O:u are needed here, the variable is literally defined on the previous line and can be kept clean. If it needs to be sorted, maybe just add a comment about it, as the unique thing, well, eyes should be enough to figure that out before committing a change 😄