Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.kde4.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
.if !defined(_POSTMKINCLUDED) && !defined(Kde_Pre_Include) | .if !defined(_POSTMKINCLUDED) && !defined(Kde_Pre_Include) | ||||
# Please make sure all changes to this file are past through the maintainer. | # Please make sure all changes to this file are past through the maintainer. | ||||
# Do not commit them yourself (unless of course you're the Port's Wraith ;). | # Do not commit them yourself (unless of course you're the Port's Wraith ;). | ||||
Kde_Include_MAINTAINER= kde@FreeBSD.org | Kde_Include_MAINTAINER= kde@FreeBSD.org | ||||
Kde_Pre_Include= bsd.kde4.mk | Kde_Pre_Include= bsd.kde4.mk | ||||
# | # | ||||
# This file contains some variable definitions that are supposed to make your | # This file contains some variable definitions that are supposed to make your | ||||
# life easier when dealing with ports related to the KDE Software Compilation 4. | # life easier when dealing with ports related to the KDE Software Compilation 4. | ||||
# It's automatically included when ${USE_KDE4} is defined in a port's Makefile. | # It's automatically included when ${USE_KDE4} is defined in a port's Makefile. | ||||
# | # | ||||
# KDE4 related ports can use this as follows: | # KDE4 related ports can use this as follows: | ||||
# | # | ||||
# USE_KDE4= kdelibs kdeprefix | # USE_KDE4= kdelibs | ||||
# USE_QT4= corelib # Set Qt 4 components here. | # USE_QT4= corelib # Set Qt 4 components here. | ||||
# | # | ||||
# .include <bsd.port.mk> | # .include <bsd.port.mk> | ||||
# | # | ||||
# Additionally, '_build' and '_run' suffixes can be used to force components | # Additionally, '_build' and '_run' suffixes can be used to force components | ||||
# dependency type (e.g., 'marble_run'). If no suffix is set, a default | # dependency type (e.g., 'marble_run'). If no suffix is set, a default | ||||
# dependency type will be used. If you want to force both types, add the | # dependency type will be used. If you want to force both types, add the | ||||
# component twice with both suffixes (e.g., 'pykde4_build pykde4_run'). | # component twice with both suffixes (e.g., 'pykde4_build pykde4_run'). | ||||
# | # | ||||
# Available KDE4 components are: | # Available KDE4 components are: | ||||
# | # | ||||
# baloo - Baloo core libraries | # baloo - Baloo core libraries | ||||
# baloo-widgets - Baloo widgets library | # baloo-widgets - Baloo widgets library | ||||
# baseapps - Basic applications for KDE Desktop | # baseapps - Basic applications for KDE Desktop | ||||
# kactivities - KDE activities library | # kactivities - KDE activities library | ||||
# kate - KDE text editor framework | # kate - KDE text editor framework | ||||
# kdelibs - KDE Developer Platform | # kdelibs - KDE Developer Platform | ||||
# kdeprefix - If set, port will be installed into ${KDE4_PREFIX} instead of | |||||
# ${LOCALBASE} | |||||
# kfilemetadata - KDE library for extracting file metadata | # kfilemetadata - KDE library for extracting file metadata | ||||
# korundum - KDE Ruby bindings | # korundum - KDE Ruby bindings | ||||
# libkcddb - KDE CDDB library | # libkcddb - KDE CDDB library | ||||
# libkcompactdisc - KDE library for interfacing with audio CDs | # libkcompactdisc - KDE library for interfacing with audio CDs | ||||
# libkdcraw - KDE LibRaw library | # libkdcraw - KDE LibRaw library | ||||
# libkdeedu - Libraries used by KDE educational applications | # libkdeedu - Libraries used by KDE educational applications | ||||
# libkdegames - Libraries used by KDE games | # libkdegames - Libraries used by KDE games | ||||
# libkexiv2 - KDE Exiv2 library | # libkexiv2 - KDE Exiv2 library | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
KDEVELOP_BRANCH?= stable | KDEVELOP_BRANCH?= stable | ||||
KDE4_PREFIX?= ${LOCALBASE} | KDE4_PREFIX?= ${LOCALBASE} | ||||
# 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};${KDE4_PREFIX}" \ | CMAKE_ARGS+= -DCMAKE_PREFIX_PATH="${LOCALBASE};${KDE4_PREFIX}" \ | ||||
-DKDE4_BUILD_TESTS:BOOL=OFF | -DKDE4_BUILD_TESTS:BOOL=OFF | ||||
# ${PREFIX} and ${NO_MTREE} have to be defined in the pre-makefile section. | |||||
.if defined(USE_KDE4) && ${USE_KDE4:Mkdeprefix} != "" | |||||
. if ${.MAKEFLAGS:MPREFIX=*} == "" | |||||
PREFIX= ${KDE4_PREFIX} | |||||
. if ${KDE4_PREFIX} != ${LOCALBASE} | |||||
NO_MTREE= yes | |||||
. endif | |||||
. endif | |||||
.endif | |||||
PLIST_SUB+= KDE4_PREFIX="${KDE4_PREFIX}" \ | PLIST_SUB+= KDE4_PREFIX="${KDE4_PREFIX}" \ | ||||
KDE4_VERSION="${KDE4_VERSION}" \ | KDE4_VERSION="${KDE4_VERSION}" \ | ||||
KDE4_GENERIC_LIB_VERSION=${KDE4_VERSION} \ | KDE4_GENERIC_LIB_VERSION=${KDE4_VERSION} \ | ||||
KDE4_NON_GENERIC_LIB_VERSION=${KDE4_VERSION:S,^4,5,} | KDE4_NON_GENERIC_LIB_VERSION=${KDE4_VERSION:S,^4,5,} | ||||
# Keep in sync with cmake/modules/PythonMacros.cmake | # 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 | ||||
Show All 24 Lines | _USE_KDE4_ALL= baloo baloo-widgets \ | ||||
libkexiv2 libkdegames libkipi libkonq libksane marble \ | libkexiv2 libkdegames libkipi libkonq libksane marble \ | ||||
nepomuk-core nepomuk-widgets \ | nepomuk-core nepomuk-widgets \ | ||||
okular oxygen perlkde perlqt pimlibs pykde4 pykdeuic4 \ | okular oxygen perlkde perlqt pimlibs pykde4 pykdeuic4 \ | ||||
qtruby runtime smokegen smokekde smokeqt \ | qtruby runtime smokegen smokekde smokeqt \ | ||||
workspace | workspace | ||||
# These components are not part of the Software Compilation. | # These components are not part of the Software Compilation. | ||||
_USE_KDE4_ALL+= akonadi attica automoc4 ontologies qimageblitz soprano \ | _USE_KDE4_ALL+= akonadi attica automoc4 ontologies qimageblitz soprano \ | ||||
strigi | strigi | ||||
# Meta components | |||||
_USE_KDE4_ALL+= kdeprefix | |||||
# Deprecated | |||||
_USE_KDE4_ALL+= kdehier | |||||
baloo_PORT= sysutils/baloo | baloo_PORT= sysutils/baloo | ||||
baloo_PATH= ${KDE4_PREFIX}/lib/libbaloocore.so | baloo_PATH= ${KDE4_PREFIX}/lib/libbaloocore.so | ||||
baloo-widgets_PORT= sysutils/baloo-widgets | baloo-widgets_PORT= sysutils/baloo-widgets | ||||
baloo-widgets_PATH= ${KDE4_PREFIX}/lib/libbaloowidgets.so | baloo-widgets_PATH= ${KDE4_PREFIX}/lib/libbaloowidgets.so | ||||
baseapps_PORT= x11/kde4-baseapps | baseapps_PORT= x11/kde4-baseapps | ||||
baseapps_PATH= ${KDE4_PREFIX}/bin/kfmclient | baseapps_PATH= ${KDE4_PREFIX}/bin/kfmclient | ||||
baseapps_TYPE= run | baseapps_TYPE= run | ||||
kactivities_PORT= x11/kactivities | kactivities_PORT= x11/kactivities | ||||
kactivities_PATH= ${KDE4_PREFIX}/lib/libkactivities.so | kactivities_PATH= ${KDE4_PREFIX}/lib/libkactivities.so | ||||
kate_PORT= editors/kate | kate_PORT= editors/kate | ||||
kate_PATH= ${KDE4_PREFIX}/lib/libkateinterfaces.so | kate_PATH= ${KDE4_PREFIX}/lib/libkateinterfaces.so | ||||
kdelibs_PORT= x11/kdelibs4 | kdelibs_PORT= x11/kdelibs4 | ||||
kdelibs_PATH= ${KDE4_PREFIX}/lib/libkdecore.so | kdelibs_PATH= ${KDE4_PREFIX}/lib/libkdecore.so | ||||
.if ${KDE4_PREFIX} != ${LOCALBASE} | |||||
kdeprefix_PORT= misc/kdehier4 | |||||
kdeprefix_PATH= kdehier4>=1.3 | |||||
kdeprefix_TYPE= run | |||||
.endif | |||||
kfilemetadata_PORT= sysutils/kfilemetadata | kfilemetadata_PORT= sysutils/kfilemetadata | ||||
kfilemetadata_PATH= ${KDE4_PREFIX}/lib/libkfilemetadata.so | kfilemetadata_PATH= ${KDE4_PREFIX}/lib/libkfilemetadata.so | ||||
korundum_PORT= devel/ruby-korundum | korundum_PORT= devel/ruby-korundum | ||||
korundum_PATH= ${KDE4_PREFIX}/lib/kde4/krubypluginfactory.so | korundum_PATH= ${KDE4_PREFIX}/lib/kde4/krubypluginfactory.so | ||||
korundum_TYPE= run | korundum_TYPE= run | ||||
libkcddb_PORT= audio/libkcddb | libkcddb_PORT= audio/libkcddb | ||||
▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
strigi_PORT= deskutils/libstreamanalyzer | strigi_PORT= deskutils/libstreamanalyzer | ||||
strigi_PATH= ${LOCALBASE}/lib/libstreamanalyzer.so.0 | strigi_PATH= ${LOCALBASE}/lib/libstreamanalyzer.so.0 | ||||
# Iterate through components deprived of suffix. | # Iterate through components deprived of suffix. | ||||
.for component in ${USE_KDE4:O:u:C/_.+//} | .for component in ${USE_KDE4:O:u:C/_.+//} | ||||
# Check that the component is valid. | # Check that the component is valid. | ||||
. if ${_USE_KDE4_ALL:M${component}} != "" | . if ${_USE_KDE4_ALL:M${component}} != "" | ||||
# Skip meta-components (e.g. kdeprefix). | # Skip meta-components | ||||
. if defined(${component}_PORT) && defined(${component}_PATH) | . if defined(${component}_PORT) && defined(${component}_PATH) | ||||
${component}_DEPENDS= ${${component}_PATH}:${${component}_PORT} | ${component}_DEPENDS= ${${component}_PATH}:${${component}_PORT} | ||||
# Check if a dependency type is explicitly requested. | # Check if a dependency type is explicitly requested. | ||||
. if ${USE_KDE4:M${component}_*} != "" && ${USE_KDE4:M${component}} == "" | . if ${USE_KDE4:M${component}_*} != "" && ${USE_KDE4:M${component}} == "" | ||||
${component}_TYPE= # empty | ${component}_TYPE= # empty | ||||
. if ${USE_KDE4:M${component}_build} != "" | . if ${USE_KDE4:M${component}_build} != "" | ||||
${component}_TYPE+= build | ${component}_TYPE+= build | ||||
. endif | . endif | ||||
Show All 22 Lines |