Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/pyqt.mk
Show All 10 Lines | |||||
# Internal Port variables for PyQt ports: | # Internal Port variables for PyQt ports: | ||||
# PYQT_DIST - This port is part of PyQt4/5 itself. Variables and | # PYQT_DIST - This port is part of PyQt4/5 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 both (default) | # * foo both (default) | ||||
# SIPDIR - Absolute path where sip files will be installed | # PYQT_SIPDIR - where sip files will be installed to | ||||
# SIPDIR_REL - Relative version of SIPDIR | # PYQT_APIDIR - where api files will be installed to | ||||
# | # PYQT_DOCDIR - where doc files will be installed to | ||||
# Also PYQT_SIPDIR=${SIPDIR_REL} will be added to PLIST_SUB. | # 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 | ||||
# At the moment we support PyQt bindings versions 4 and 5, sip | # At the moment we support PyQt bindings versions 4 and 5, sip | ||||
# option is for internal use by the py-sip ports. | # option is for internal use by the py-sip ports. | ||||
_PYQT_SUPPORTED= 4 5 sip | _PYQT_SUPPORTED= 4 5 sip | ||||
Show All 27 Lines | |||||
MASTER_SITES_PYQT5= SF/pyqt/PyQt5/PyQt-${PORTVERSION} \ | MASTER_SITES_PYQT5= SF/pyqt/PyQt5/PyQt-${PORTVERSION} \ | ||||
GENTOO | GENTOO | ||||
MASTER_SITES_QSCI2= SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \ | MASTER_SITES_QSCI2= SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \ | ||||
GENTOO | GENTOO | ||||
SIP_VERSION= 4.19.8 | SIP_VERSION= 4.19.8 | ||||
QSCI2_VERSION= 2.10.4 | QSCI2_VERSION= 2.10.4 | ||||
PYQT4_VERSION= 4.12.1 | PYQT4_VERSION= 4.12.1 | ||||
PYQT5_VERSION= 5.9.2 | PYQT5_VERSION= 5.10.1 | ||||
SIP_DISTNAME= sip-${SIP_VERSION} | SIP_DISTNAME= sip-${SIP_VERSION} | ||||
PYQT4_DISTNAME= PyQt4_gpl_x11-${PYQT4_VERSION} | PYQT4_DISTNAME= PyQt4_gpl_x11-${PYQT4_VERSION} | ||||
PYQT4_DISTINFO_FILE= ${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo | PYQT4_DISTINFO_FILE= ${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo | ||||
PYQT5_DISTNAME= PyQt5_gpl-${PYQT5_VERSION} | PYQT5_DISTNAME= PyQt5_gpl-${PYQT5_VERSION} | ||||
PYQT5_DISTINFO_FILE= ${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo | PYQT5_DISTINFO_FILE= ${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo | ||||
QSCI2_DISTNAME= QScintilla_gpl-${QSCI2_VERSION} | QSCI2_DISTNAME= QScintilla_gpl-${QSCI2_VERSION} | ||||
PYQT4_LICENSE= GPLv3 | PYQT4_LICENSE= GPLv3 | ||||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
py-multimediawidgets_DESC= Python bindings for QtMultimediaWidgets module | py-multimediawidgets_DESC= Python bindings for QtMultimediaWidgets module | ||||
py-qml_DESC= Python bindings for Qml module | py-qml_DESC= Python bindings for Qml module | ||||
py-quickwidgets_DESC= Python bindings for QtQuickWidgets module | py-quickwidgets_DESC= Python bindings for QtQuickWidgets module | ||||
py-printsupport_DESC= Python bindings for Printsupport module | py-printsupport_DESC= Python bindings for Printsupport module | ||||
py-serialport_DESC= Python bindings for QtSerialPort | py-serialport_DESC= Python bindings for QtSerialPort | ||||
py-webkitwidgets_DESC= Python bindings for QtWebKitWidgets module | py-webkitwidgets_DESC= Python bindings for QtWebKitWidgets module | ||||
py-widgets_DESC= Python bindings for QTWidgets module | py-widgets_DESC= Python bindings for QTWidgets module | ||||
SIPDIR_REL= share/py-sip/PyQt${_PYQT_VERSION} | # The versionned executable of sip | ||||
SIPDIR= ${PREFIX}/${SIPDIR_REL} | SIP= ${LOCALBASE}/bin/sip-${PYTHON_VER} | ||||
PLIST_SUB+= PYQT_SIPDIR=${SIPDIR_REL} | |||||
# Relative directories | |||||
_VERSION_SUBDIR_REL= PyQt${_PYQT_VERSION}/${PYTHON_VER} | |||||
_APIDIR_REL= share/${_VERSION_SUBDIR_REL}/qsci | |||||
_DOCDIR_REL= share/doc/${_VERSION_SUBDIR_REL} | |||||
_EXAMPLEDIR_REL= share/examples/${_VERSION_SUBDIR_REL} | |||||
_SIPDIR_REL= share/${_VERSION_SUBDIR_REL}/sip | |||||
# Absolute direcotries | |||||
PYQT_APIDIR= ${PREFIX}/${_APIDIR_REL} | |||||
PYQT_DOCDIR= ${PREFIX}/${_DOCDIR_REL} | |||||
PYQT_EXAMPLEDIR= ${PREFIX}/${_EXAMPLEDIR_REL} | |||||
PYQT_SIPDIR= ${PREFIX}/${_SIPDIR_REL} | |||||
PLIST_SUB+= PYQT_APIDIR=${_APIDIR_REL} \ | |||||
PYQT_DOCDIR=${_DOCDIR_REL} \ | |||||
PYQT_EXAMPLEDIR=${_EXAMPLEDIR_REL} \ | |||||
PYQT_SIPDIR=${_SIPDIR_REL} | |||||
.if defined(PYQT_DIST) | .if defined(PYQT_DIST) | ||||
PORTVERSION= ${PYQT_VERSION} | PORTVERSION= ${PYQT_VERSION} | ||||
MASTER_SITES= ${PYQT_MASTERSITES} | MASTER_SITES= ${PYQT_MASTERSITES} | ||||
PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- | PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- | ||||
DISTNAME= ${PYQT_DISTNAME} | DISTNAME= ${PYQT_DISTNAME} | ||||
DISTINFO_FILE= ${PYQT_DISTINFO_FILE} | DISTINFO_FILE= ${PYQT_DISTINFO_FILE} | ||||
LICENSE?= ${PYQT_LICENSE} | LICENSE?= ${PYQT_LICENSE} | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
.if ${_PYQT_VERSION} > 4 | .if ${_PYQT_VERSION} > 4 | ||||
# PyQt5's configure.py generates .pro files and calls qmake to generate the | # PyQt5's configure.py generates .pro files and calls qmake to generate the | ||||
# Makefiles. qmake's Makefiles use INSTALL_ROOT instead of DESTDIR. | # Makefiles. qmake's Makefiles use INSTALL_ROOT instead of DESTDIR. | ||||
DESTDIRNAME= INSTALL_ROOT | DESTDIRNAME= INSTALL_ROOT | ||||
# Limit PyQt5's version to the Qt5 version in ports | # Limit PyQt5's version to the Qt5 version in ports | ||||
PORTSCOUT?= limit:^${_QT_VERSION:R} | PORTSCOUT?= limit:^${_QT_VERSION:R} | ||||
.endif | .endif | ||||
PATCHDIR= ${.CURDIR}/../../devel/${PYQT_RELNAME}-core/files | PATCHDIR= ${.CURDIR}/../../devel/${PYQT_RELNAME}-core/files | ||||
QSCIDIR= ${PREFIX}/share/qt${_PYQT_VERSION}/qsci | QSCIDIR= ${PREFIX}/share/qt${_PYQT_VERSION}/${PYTHON_VER}/qsci | ||||
CONFIGURE_ARGS+=-b ${PREFIX}/bin \ | CONFIGURE_ARGS+=-b ${PREFIX}/bin \ | ||||
-d ${PYTHONPREFIX_SITELIBDIR} \ | -d ${PYTHONPREFIX_SITELIBDIR} \ | ||||
-q ${QMAKE} \ | -q ${QMAKE} \ | ||||
--confirm-license \ | --confirm-license \ | ||||
--sip ${LOCALBASE}/bin/sip-${PYTHON_VER} \ | --sip ${SIP} \ | ||||
--sipdir ${SIPDIR} | --sipdir ${PYQT_SIPDIR} | ||||
# One of the things PyQt looks for to determine whether to build the Qt DBus | # One of the things PyQt looks for to determine whether to build the Qt DBus | ||||
# main loop module (${PYQT_RELNAME}-dbussupport) is whether the dbus/ directory is | # main loop module (${PYQT_RELNAME}-dbussupport) is whether the dbus/ directory is | ||||
# present. Only extract it for that port then. | # present. Only extract it for that port then. | ||||
.if ${PORTNAME} != "dbussupport" | .if ${PORTNAME} != "dbussupport" | ||||
EXTRACT_AFTER_ARGS+= --exclude "${DISTNAME}/dbus" | EXTRACT_AFTER_ARGS+= --exclude "${DISTNAME}/dbus" | ||||
.endif # ${PORTNAME} != "dbussupport" | .endif # ${PORTNAME} != "dbussupport" | ||||
Show All 29 Lines |