Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/qt.mk
# There are three Qt related USES files with different access to Qt. | # There are three Qt related USES files with different access to Qt. | ||||
# - qmake: The port requires Qt's qmake to build -- creates the configure target | # - qmake: The port requires Qt's qmake to build -- creates the configure target | ||||
# - auto includes qt.mk | # - auto includes qt.mk | ||||
# - qt-dist: The port is a port for a part of Qt5 | # - qt-dist: The port is a port for a part of Qt5 | ||||
# - auto includes qt.mk and qmake.mk | # - auto includes qt.mk and qmake.mk | ||||
# - qt.mk - Dependency handling. USE_QT=foo bar | # - qt.mk - Dependency handling. USE_QT=foo bar | ||||
# | # | ||||
# Usage: | # Usage: | ||||
# USES=qt:<version>[,no_env] | # USES=qt:<version>[,no_env] | ||||
# | # | ||||
# Versions: 5 | # Versions: 5 | ||||
# | # | ||||
# Port variables: | # Port variables: | ||||
# USE_QT - List of Qt modules to depend on, with optional '_build' | # USE_QT - List of Qt modules to depend on, with optional ':build' | ||||
# and '_run' suffixes. Define it empty to include this file | # and ':run' suffixes. Define it empty to include this file | ||||
# without depending on Qt ports. | # without depending on Qt ports. | ||||
# | # | ||||
# MAINTAINER: kde@FreeBSD.org | # MAINTAINER: kde@FreeBSD.org | ||||
.if !defined(_QT_MK_INCLUDED) | .if !defined(_QT_MK_INCLUDED) | ||||
_QT_MK_INCLUDED= qt.mk | _QT_MK_INCLUDED= qt.mk | ||||
# Qt versions currently supported by the framework. | # Qt versions currently supported by the framework. | ||||
▲ Show 20 Lines • Show All 366 Lines • ▼ Show 20 Lines | |||||
qt-xmlpatterns_PORT= textproc/${_QT_RELNAME}-xmlpatterns | qt-xmlpatterns_PORT= textproc/${_QT_RELNAME}-xmlpatterns | ||||
qt-xmlpatterns_LIB= libQt${_QT_LIBVER}XmlPatterns.so | qt-xmlpatterns_LIB= libQt${_QT_LIBVER}XmlPatterns.so | ||||
# Actually add the dependencies to the proper lists. | # Actually add the dependencies to the proper lists. | ||||
_USE_QT_ALL= ${_USE_QT_COMMON} \ | _USE_QT_ALL= ${_USE_QT_COMMON} \ | ||||
${_USE_QT${_QT_VER}_ONLY} | ${_USE_QT${_QT_VER}_ONLY} | ||||
_USE_QT= ${USE_QT} | _USE_QT= ${USE_QT} | ||||
# Iterate through components deprived of suffix. | # Iterate through components deprived of suffix. | ||||
. for component in ${_USE_QT:O:u:C/_(build|run)$//} | . for component in ${_USE_QT:O:u:C/:(build|run)$//} | ||||
# Check that the component is valid. | # Check that the component is valid. | ||||
. if ${_USE_QT_ALL:M${component}} != "" | . if ${_USE_QT_ALL:M${component}} != "" | ||||
# Skip meta-components (currently none). | # Skip meta-components (currently none). | ||||
. if defined(qt-${component}_PORT) && (defined(qt-${component}_PATH) || defined(qt-${component}_LIB)) | . if defined(qt-${component}_PORT) && (defined(qt-${component}_PATH) || defined(qt-${component}_LIB)) | ||||
# Check if a dependency type is explicitly requested. | # Check if a dependency type is explicitly requested. | ||||
. if ${_USE_QT:M${component}_*} != "" && ${_USE_QT:M${component}} == "" | . if ${_USE_QT:M${component}\:*} != "" && ${_USE_QT:M${component}} == "" | ||||
qt-${component}_TYPE= # empty | qt-${component}_TYPE= # empty | ||||
. if ${_USE_QT:M${component}_build} != "" | . if ${_USE_QT:M${component}\:build} != "" | ||||
qt-${component}_TYPE+= build | qt-${component}_TYPE+= build | ||||
. endif | . endif | ||||
. if ${_USE_QT:M${component}_run} != "" | . if ${_USE_QT:M${component}\:run} != "" | ||||
qt-${component}_TYPE+= run | qt-${component}_TYPE+= run | ||||
. endif | . endif | ||||
. endif # ${_USE_QT:M${component}_*} != "" && ${_USE_QT:M${component}} == "" | . endif # ${_USE_QT:M${component}_*} != "" && ${_USE_QT:M${component}} == "" | ||||
# If no dependency type is set, default to full dependency. | # If no dependency type is set, default to full dependency. | ||||
. if !defined(qt-${component}_TYPE) | . if !defined(qt-${component}_TYPE) | ||||
qt-${component}_TYPE= build run | qt-${component}_TYPE= build run | ||||
. endif | . endif | ||||
# Set real dependencies. | # Set real dependencies. | ||||
Show All 19 Lines |