Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/pyqt.mk
Show First 20 Lines • Show All 186 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-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} | SIPDIR_REL= share/py-sip-${PYTHON_VER}/PyQt${_PYQT_VERSION} | ||||
QSCIDIR_REL= share/qt${_PYQT_VERSION}/qsci-${PYTHON_VER} | |||||
SIPDIR= ${PREFIX}/${SIPDIR_REL} | SIPDIR= ${PREFIX}/${SIPDIR_REL} | ||||
PLIST_SUB+= PYQT_SIPDIR=${SIPDIR_REL} | QSCIDIR= ${PREFIX}/${QSCIDIR_REL} | ||||
PLIST_SUB+= PYQT_SIPDIR=${SIPDIR_REL} \ | |||||
PYQT_QSCIDIR=${QSCIDIR_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} | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
QT_NONSTANDARD= yes # Do not add unknown arguments to CONFIGURE_ARGS. | QT_NONSTANDARD= yes # Do not add unknown arguments to CONFIGURE_ARGS. | ||||
.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 | |||||
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=${PREFIX}/bin/sip-${PYTHON_VER} \ | |||||
--sipdir ${SIPDIR} | --sipdir ${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 30 Lines |