Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/pyqt.mk
# Handle PyQt related ports | # Handle PyQt related ports | ||||
# | # | ||||
# Feature: pyqt | # Feature: pyqt | ||||
# Usage: USES=pyqt:ARGS | # Usage: USES=pyqt:ARGS | ||||
# Valid ARGS: 5 | # Valid ARGS: 5 | ||||
# | # | ||||
# MAINTAINER: kde@FreeBSD.org | # MAINTAINER: kde@FreeBSD.org | ||||
# | # | ||||
# Internal Port variables for PyQt ports: | # Internal Port variables for PyQt ports: | ||||
# PYQT_DIST - This port is part of PyQt5 itself. Variables and | # PYQT_DIST - This port is part of PyQt5 itself. Variables and | ||||
# targets are then set assuming a certain tarball and | # targets are then set assuming a certain tarball and | ||||
# port layout. | # port layout. | ||||
# USE_PYQT - List of PyQt components to depend on | # USE_PYQT - List of PyQt components to depend on | ||||
# * foo_build only build depend | # * foo:build only build depend | ||||
# * foo_run only run depend | # * foo:run only run depend | ||||
# * foo_test only test depend | # * foo:test only test depend | ||||
# * foo both (default) | # * foo build and run depend (default) | ||||
# PYQT_SIPDIR - where sip files will be installed to | # PYQT_SIPDIR - where sip files will be installed to | ||||
# PYQT_APIDIR - where api files will be installed to | # PYQT_APIDIR - where api files will be installed to | ||||
# PYQT_DOCDIR - where doc files will be installed to | # PYQT_DOCDIR - where doc files will be installed to | ||||
# PYQT_EXAMPLESDIR - where examples will be installed to | # PYQT_EXAMPLESDIR - where examples will be installed to | ||||
.if !defined(_INCLUDE_USES_PYQT_MK) | .if !defined(_INCLUDE_USES_PYQT_MK) | ||||
_INCLUDE_USES_PYQT_MK= yes | _INCLUDE_USES_PYQT_MK= yes | ||||
▲ Show 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | |||||
. endif # defined(PYQT_DIST) | . endif # defined(PYQT_DIST) | ||||
# Set build, run and test depends -- we need to prefix them internally with "py-" | # Set build, run and test depends -- we need to prefix them internally with "py-" | ||||
# else we conflict with the ones defined in bsd.qt.mk with the same name | # else we conflict with the ones defined in bsd.qt.mk with the same name | ||||
_USE_PYQT_ALL+= ${_USE_SIP_ALL} \ | _USE_PYQT_ALL+= ${_USE_SIP_ALL} \ | ||||
${_USE_QSCINTILLA} \ | ${_USE_QSCINTILLA} \ | ||||
${_USE_PYQTBUILDER} | ${_USE_PYQTBUILDER} | ||||
. for comp in ${_USE_PYQT_ALL:O:u} | . for comp in ${_USE_PYQT_ALL:O:u} | ||||
_USE_PYQT_ALL_SUFFIXED+= py-${comp} py-${comp}_build py-${comp}_run py-${comp}_test | _USE_PYQT_ALL_SUFFIXED+= py-${comp} py-${comp}:build py-${comp}:run py-${comp}:test | ||||
py-${comp}_BUILD_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} | py-${comp}_BUILD_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} | ||||
py-${comp}_RUN_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} | py-${comp}_RUN_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} | ||||
py-${comp}_TEST_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} | py-${comp}_TEST_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} | ||||
py-${comp}_build_BUILD_DEPENDS?= ${py-${comp}_BUILD_DEPENDS} | py-${comp}_build_BUILD_DEPENDS?= ${py-${comp}_BUILD_DEPENDS} | ||||
py-${comp}_run_RUN_DEPENDS?= ${py-${comp}_RUN_DEPENDS} | py-${comp}_run_RUN_DEPENDS?= ${py-${comp}_RUN_DEPENDS} | ||||
py-${comp}_test_TEST_DEPENDS?= ${py-${comp}_TEST_DEPENDS} | py-${comp}_test_TEST_DEPENDS?= ${py-${comp}_TEST_DEPENDS} | ||||
. endfor | . endfor | ||||
_USE_PYQT= ${USE_PYQT:O:u} | _USE_PYQT= ${USE_PYQT:O:u} | ||||
. for comp in ${_USE_PYQT} | . for comp in ${_USE_PYQT} | ||||
. if ${_USE_PYQT_ALL_SUFFIXED:Mpy-${comp}} | . if ${_USE_PYQT_ALL_SUFFIXED:Mpy-${comp}} | ||||
BUILD_DEPENDS+= ${py-${comp}_BUILD_DEPENDS} | BUILD_DEPENDS+= ${py-${comp:S/:/_/}_BUILD_DEPENDS} | ||||
RUN_DEPENDS+= ${py-${comp}_RUN_DEPENDS} | RUN_DEPENDS+= ${py-${comp:S/:/_/}_RUN_DEPENDS} | ||||
TEST_DEPENDS+= ${py-${comp}_TEST_DEPENDS} | TEST_DEPENDS+= ${py-${comp:S/:/_/}_TEST_DEPENDS} | ||||
. else | . else | ||||
IGNORE?= cannot be installed: unknown USE_PYQT component ${comp} #' | IGNORE?= cannot be installed: unknown USE_PYQT component ${comp} #' | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
.endif # defined(_INCLUDE_USES_PYQT_MK) | .endif # defined(_INCLUDE_USES_PYQT_MK) |