Changeset View
Changeset View
Standalone View
Standalone View
devel/py-qt5/bsd.pyqt.mk
Context not available. | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Port variables: | # Port variables: | ||||
# PYQT4_DIST - This port is part of PyQt4 itself. Variables and | # PYQT5_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. | ||||
# | # | ||||
Context not available. | |||||
MASTER_SITES_SIP= SF/pyqt/sip/sip-${PORTVERSION} \ | MASTER_SITES_SIP= SF/pyqt/sip/sip-${PORTVERSION} \ | ||||
${MASTER_SITE_GENTOO:S,%SUBDIR%,distfiles,} | ${MASTER_SITE_GENTOO:S,%SUBDIR%,distfiles,} | ||||
MASTER_SITES_PYQT4= SF/pyqt/PyQt4/PyQt-${PORTVERSION} \ | MASTER_SITES_PYQT5= SF/pyqt/PyQt5/PyQt-${PORTVERSION} \ | ||||
${MASTER_SITE_GENTOO:S,%SUBDIR%,distfiles,} | ${MASTER_SITE_GENTOO:S,%SUBDIR%,distfiles,} | ||||
MASTER_SITES_QSCI2= SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \ | MASTER_SITES_QSCI2= SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \ | ||||
${MASTER_SITE_GENTOO:S,%SUBDIR%,distfiles,} | ${MASTER_SITE_GENTOO:S,%SUBDIR%,distfiles,} | ||||
SIP_VERSION= 4.16.2 | SIP_VERSION= 4.16.9 | ||||
PYQT4_VERSION= 4.11.1 | PYQT5_VERSION= 5.4.2 | ||||
QSCI2_VERSION= 2.8.3 | QSCI2_VERSION= 2.8.3 | ||||
SIP_DISTNAME= sip-${SIP_VERSION} | SIP_DISTNAME= sip-${SIP_VERSION} | ||||
PYQT4_DISTNAME= PyQt-x11-gpl-${PYQT4_VERSION} | PYQT5_DISTNAME= PyQt-gpl-${PYQT5_VERSION} | ||||
PYQT4_DISTINFO_FILE= ${.CURDIR}/../../devel/py-qt4/distinfo | PYQT5_DISTINFO_FILE= ${.CURDIR}/../../devel/py-qt5/distinfo | ||||
QSCI2_DISTNAME= QScintilla-gpl-${QSCI2_VERSION} | QSCI2_DISTNAME= QScintilla-gpl-${QSCI2_VERSION} | ||||
QSCI2_DISTINFO_FILE= ${.CURDIR}/../../devel/qscintilla2/distinfo | QSCI2_DISTINFO_FILE= ${.CURDIR}/../../devel/qscintilla2/distinfo | ||||
PYQT4_COMPONENTS= assistant core dbus dbussupport declarative \ | PYQT5_COMPONENTS= core dbus designer demo designer doc gui help \ | ||||
demo designer designerplugin doc gui help \ | multimedia network opengl printsupport qml \ | ||||
multimedia network opengl phonon qscintilla2 \ | serialport sql svg test webkit webkitwidgets xml \ | ||||
script scripttools sql svg test webkit xml \ | |||||
xmlpatterns | xmlpatterns | ||||
assistant_PORT= devel/py-qt4-assistant | core_PORT= devel/py-qt5-core | ||||
core_PORT= devel/py-qt4-core | dbus_PORT= devel/py-qt5-dbus | ||||
dbus_PORT= devel/py-qt4-dbus | demo_PORT= misc/py-qt5-demo | ||||
dbussupport_PORT= devel/py-qt4-dbussupport | designer_PORT= devel/py-qt5-designer | ||||
declarative_PORT= devel/py-qt4-declarative | doc_PORT= misc/py-qt5-doc | ||||
demo_PORT= misc/py-qt4-demo | gui_PORT= x11-toolkits/py-qt5-gui | ||||
designer_PORT= devel/py-qt4-designer | help_PORT= devel/py-qt5-help | ||||
designerplugin_PORT= devel/py-qt4-designerplugin | multimedia_PORT= multimedia/py-qt5-multimedia | ||||
doc_PORT= misc/py-qt4-doc | network_PORT= net/py-qt5-network | ||||
gui_PORT= x11-toolkits/py-qt4-gui | opengl_PORT= x11/py-qt5-opengl | ||||
help_PORT= devel/py-qt4-help | printsupport_PORT= print/py-qt5-printsupport | ||||
multimedia_PORT= multimedia/py-qt4-multimedia | qml_PORT= lang/py-qt5-qml | ||||
network_PORT= net/py-qt4-network | qscintilla2_PORT= devel/py-qt5-qscintilla2 | ||||
opengl_PORT= x11/py-qt4-opengl | serialport_PORT= comms/py-qt5-serialport | ||||
phonon_PORT= multimedia/py-qt4-phonon | sql_PORT= databases/py-qt5-sql | ||||
qscintilla2_PORT= devel/py-qt4-qscintilla2 | svg_PORT= graphics/py-qt5-svg | ||||
script_PORT= devel/py-qt4-script | test_PORT= devel/py-qt5-test | ||||
scripttools_PORT= devel/py-qt4-scripttools | webkit_PORT= www/py-qt5-webkit | ||||
sql_PORT= databases/py-qt4-sql | webkitwidgets_PORT= www/py-qt5-webkitwidgets | ||||
svg_PORT= graphics/py-qt4-svg | widgets_PORT= x11-toolkits/py-qt5-widgets | ||||
test_PORT= devel/py-qt4-test | xml_PORT= textproc/py-qt5-xml | ||||
webkit_PORT= www/py-qt4-webkit | xmlpatterns_PORT= textproc/py-qt5-xmlpatterns | ||||
xml_PORT= textproc/py-qt4-xml | |||||
xmlpatterns_PORT= textproc/py-qt4-xmlpatterns | |||||
assistant_DESC= Python bindings for QtAssistant module | |||||
core_DESC= Python bindings for QtCore module | core_DESC= Python bindings for QtCore module | ||||
dbus_DESC= Python bindings for QtDBus module | dbus_DESC= Python bindings for dbus module | ||||
dbussupport_DESC= Python bindings for D-Bus | demo_DESC= PyQt5 demo and examples | ||||
declarative_DESC= Python bindings for QtDeclarative module | |||||
demo_DESC= PyQt4 demo and examples | |||||
designer_DESC= Python bindings for QtDesigner module | designer_DESC= Python bindings for QtDesigner module | ||||
designerplugin_DESC= Python bindings for QtDesigner plugin | doc_DESC= PyQt5 documentation | ||||
doc_DESC= PyQt4 documentation | |||||
gui_DESC= Python bindings for QtGui module | gui_DESC= Python bindings for QtGui module | ||||
help_DESC= Python bindings for QtHelp module | help_DESC= Python bindings for QtHelp module | ||||
multimedia_DESC= Python bindings for Multimedia module | multimedia_DESC= Python bindings for Multimedia module | ||||
network_DESC= Python bindings for QtNetwork module | network_DESC= Python bindings for QtNetwork module | ||||
opengl_DESC= Python bindings for QtOpenGL module | opengl_DESC= Python bindings for QtOpenGL module | ||||
phonon_DESC= Python bindings for Phonon module | printsupport_DESC= Python bindings for Printsupport module | ||||
qml_DESC= Python bindings for QML module | |||||
qscintilla2_DESC= Python bindings for QScintilla2 | qscintilla2_DESC= Python bindings for QScintilla2 | ||||
script_DESC= Python bindings for QtScript module | serialport_DESC= Python bindings for QtSerialPort | ||||
scripttools_DESC= Python bindings for QtScriptTools module | |||||
sql_DESC= Python bindings for QtSql module | sql_DESC= Python bindings for QtSql module | ||||
svg_DESC= Python bindings for QtSvg module | svg_DESC= Python bindings for QtSvg module | ||||
test_DESC= Python bindings for QtTest module | test_DESC= Python bindings for QtTest module | ||||
webkit_DESC= Python bindings for QtWebKit module | webkit_DESC= Python bindings for QtWebKit module | ||||
webkitwidgets_DESC= Python bindings for QtWebKitWidgets module | |||||
widgets_DESC= Python bindings for QTWidgets module | |||||
xml_DESC= Python bindings for QtXml module | xml_DESC= Python bindings for QtXml module | ||||
xmlpatterns_DESC= Python bindings for QtXmlPatterns module | xmlpatterns_DESC= Python bindings for QtXmlPatterns module | ||||
.if defined(PYQT4_DIST) | .if defined(PYQT5_DIST) | ||||
PORTVERSION= ${PYQT4_VERSION} | PORTVERSION= ${PYQT5_VERSION} | ||||
MASTER_SITES= ${MASTER_SITES_PYQT4} | MASTER_SITES= ${MASTER_SITES_PYQT5} | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt4- | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt5- | ||||
DISTNAME= ${PYQT4_DISTNAME} | DISTNAME= ${PYQT5_DISTNAME} | ||||
DISTINFO_FILE= ${PYQT4_DISTINFO_FILE} | DISTINFO_FILE= ${PYQT5_DISTINFO_FILE} | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
USES+= python | USES+= python | ||||
QT_NONSTANDARD= yes # Do not add unknown arguments to CONFIGURE_ARGS. | QT_NONSTANDARD= yes # Do not add unknown arguments to CONFIGURE_ARGS. | ||||
PATCHDIR= ${.CURDIR}/../../devel/py-qt4-core/files | PATCHDIR= ${.CURDIR}/../../devel/py-qt5-core/files | ||||
OPTIONSFILE?= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options | OPTIONSFILE?= ${PORT_DBDIR}/py-qt5-${PORTNAME}/options | ||||
SIPDIR= ${PREFIX}/share/py-sip | SIPDIR= ${PREFIX}/share/py-sip/PyQt5 | ||||
QSCIDIR= ${PREFIX}/share/qt4/qsci | QSCIDIR= ${PREFIX}/share/qt5/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 \ | ||||
--sipdir ${SIPDIR} | --sipdir ${SIPDIR} | ||||
MAKE_ARGS+= INSTALL_ROOT=${STAGEDIR} | |||||
# One of the things PyQt4 looks for to determine whether to build the Qt DBus | # One of the things PyQt5 looks for to determine whether to build the Qt DBus | ||||
# main loop module (py-qt4-dbussupport) is whether the dbus/ directory is | # main loop module (py-qt5-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" | ||||
Context not available. | |||||
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ | cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ | ||||
${PYTHON_CMD} configure.py ${CONFIGURE_ARGS} | ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS} | ||||
.endif # !target(do-configure) | .endif # !target(do-configure) | ||||
.endif # defined(PYQT4_DIST) | .endif # defined(PYQT5_DIST) | ||||
Context not available. |