Lines 29-89
Link Here
|
29 |
# option is for internal use by the py-sip ports. |
29 |
# option is for internal use by the py-sip ports. |
30 |
_PYQT_SUPPORTED= 5 sip |
30 |
_PYQT_SUPPORTED= 5 sip |
31 |
|
31 |
|
32 |
.if empty(pyqt_ARGS) |
32 |
. if empty(pyqt_ARGS) |
33 |
IGNORE= pyqt needs a qt-version (${_PYQT_SUPPORTED}) |
33 |
IGNORE= pyqt needs a qt-version (${_PYQT_SUPPORTED}) |
34 |
.endif |
34 |
. endif |
35 |
|
35 |
|
36 |
# At the moment we support PyQt bindings versions 5 |
36 |
# At the moment we support PyQt bindings versions 5 |
37 |
.for ver in ${_PYQT_SUPPORTED:O:u} |
37 |
. for ver in ${_PYQT_SUPPORTED:O:u} |
38 |
. if ${pyqt_ARGS:M${ver}} |
38 |
. if ${pyqt_ARGS:M${ver}} |
39 |
. if empty(_PYQT_VERSION) |
39 |
. if empty(_PYQT_VERSION) |
40 |
_PYQT_VERSION= ${ver} |
40 |
_PYQT_VERSION= ${ver} |
41 |
. else |
41 |
. else |
42 |
IGNORE?= cannot be installed: different PYQT versions specified via pyqt:[${_PYQT_SUPPORTED:S/ //g}] |
42 |
IGNORE?= cannot be installed: different PYQT versions specified via pyqt:[${_PYQT_SUPPORTED:S/ //g}] |
|
|
43 |
. endif |
43 |
. endif |
44 |
. endif |
44 |
. endif |
45 |
. endfor |
45 |
.endfor |
|
|
46 |
|
46 |
|
47 |
.if empty(_PYQT_VERSION) |
47 |
. if empty(_PYQT_VERSION) |
48 |
IGNORE?= USES=pyqt needs a version number (valid values: ${_PYQT_SUPPORTED}) |
48 |
IGNORE?= USES=pyqt needs a version number (valid values: ${_PYQT_SUPPORTED}) |
49 |
_PYQT_VERSION= 0 |
49 |
_PYQT_VERSION= 0 |
50 |
.endif |
50 |
. endif |
51 |
|
51 |
|
52 |
PYQT_MAINTAINER= kde@FreeBSD.org |
52 |
PYQT_MAINTAINER= kde@FreeBSD.org |
53 |
|
53 |
|
54 |
MASTER_SITE_RIVERBANK= https://www.riverbankcomputing.com/static/Downloads/%SUBDIR%/ |
54 |
MASTER_SITE_RIVERBANK= https://www.riverbankcomputing.com/static/Downloads/%SUBDIR%/ |
55 |
|
55 |
|
56 |
# https://www.riverbankcomputing.com/static/Downloads/sip/4.19.15/sip-4.19.15.tar.gz |
56 |
MASTER_SITES_SIP= https://pypi.python.org/packages/source/s/sip/ |
57 |
MASTER_SITES_SIP= RIVERBANK/sip/${PORTVERSION} \ |
57 |
MASTER_SITES_PYQT5= https://pypi.python.org/packages/source/P/PyQt5/ |
58 |
SF/pyqt/sip/sip-${PORTVERSION} \ |
58 |
MASTER_SITES_PYQTSIP= https://pypi.python.org/packages/source/P/PyQt5-sip/ |
59 |
GENTOO |
59 |
MASTER_SITES_PYQTCHART= https://pypi.python.org/packages/source/P/PyQtChart/ |
60 |
MASTER_SITES_PYQT5= RIVERBANK/PyQt5/${PORTVERSION} \ |
|
|
61 |
SF/pyqt/PyQt5/PyQt-${PORTVERSION} \ |
62 |
GENTOO |
63 |
#https://www.riverbankcomputing.com/static/Downloads/QScintilla/2.11.4/QScintilla-2.11.4.tar.gz |
60 |
#https://www.riverbankcomputing.com/static/Downloads/QScintilla/2.11.4/QScintilla-2.11.4.tar.gz |
64 |
MASTER_SITES_QSCI2= RIVERBANK/QScintilla/${PORTVERSION} \ |
61 |
MASTER_SITES_QSCI2= RIVERBANK/QScintilla/${PORTVERSION} \ |
65 |
SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \ |
62 |
SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \ |
66 |
GENTOO |
63 |
GENTOO |
67 |
|
64 |
|
68 |
SIP_VERSION= 4.19.21 |
65 |
SIP_VERSION= 5.3.0 |
69 |
QSCI2_VERSION= 2.11.4 |
66 |
QSCI2_VERSION= 2.11.5 |
70 |
PYQT5_VERSION= 5.13.1 |
67 |
PYQT5_VERSION= 5.15.0 |
|
|
68 |
PYQTSIP_VERSION= 12.8.0 |
71 |
|
69 |
|
72 |
SIP_DISTNAME= sip-${SIP_VERSION} |
70 |
SIP_DISTNAME= sip-${SIP_VERSION} |
73 |
PYQT5_DISTNAME= PyQt5_gpl-${PYQT5_VERSION} |
71 |
PYQT5_DISTNAME= PyQt5-${PYQT5_VERSION} |
|
|
72 |
PYQTSIP_DISTNAME= PyQt5_sip-${PYQTSIP_VERSION} |
73 |
PYQTCHART_DISTNAME= PyQtChart-${PYQT_VERSION} |
74 |
PYQT5_DISTINFO_FILE= ${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo |
74 |
PYQT5_DISTINFO_FILE= ${.CURDIR:H:H}/devel/${PYQT_RELNAME}/distinfo |
75 |
QSCI2_DISTNAME= QScintilla-${QSCI2_VERSION} |
75 |
QSCI2_DISTNAME= QScintilla-${QSCI2_VERSION} |
76 |
PYQT5_LICENSE= GPLv3 |
76 |
PYQT5_LICENSE= GPLv3 |
77 |
|
77 |
|
|
|
78 |
_USE_PYQT_COMMS= sensors serialport |
79 |
_USE_PYQT_DATABASES= sql |
80 |
_USE_PYQT_DEVEL= core dbus dbussupport help location \ |
81 |
designer designerplugin test |
82 |
_USE_PYQT_GRAPHICS= svg |
83 |
_USE_PYQT_LANG= qml |
84 |
_USE_PYQT_MISC= demo |
85 |
_USE_PYQT_MULTIMEDIA= multimedia multimediawidgets |
86 |
_USE_PYQT_NET= network networkauth |
87 |
_USE_PYQT_PRINT= printsupport |
88 |
_USE_PYQT_TEXTPROC= xml xmlpatterns |
89 |
_USE_PYQT_WWW= webchannel webengine webkit webkitwidgets websockets |
90 |
_USE_PYQT_X11= opengl |
91 |
_USE_PYQT_X11-TOOLKITS= chart gui widgets quick quick3d quickwidgets |
92 |
|
78 |
# Keep these synchronized with OPTIONS_DEFINE in devel/py-qt5 |
93 |
# Keep these synchronized with OPTIONS_DEFINE in devel/py-qt5 |
79 |
# PyQt components split up into pyqt5/... |
94 |
# PyQt components split up into pyqt5/... |
80 |
_USE_PYQT_ALL= core dbus dbussupport demo designer designerplugin \ |
95 |
_USE_PYQT_ALL= ${_USE_PYQT_COMMS} \ |
81 |
gui help multimedia network opengl qscintilla2 \ |
96 |
${_USE_PYQT_DATABASES} \ |
82 |
sql svg test webkit xml xmlpatterns sip |
97 |
${_USE_PYQT_DEVEL} \ |
83 |
# List of components only in pyqt5 |
98 |
${_USE_PYQT_GRAPHICS} \ |
84 |
_USE_PYQT5_ONLY= multimediawidgets printsupport qml quickwidgets \ |
99 |
${_USE_PYQT_LANG} \ |
85 |
serialport webchannel webengine webkitwidgets \ |
100 |
${_USE_PYQT_MISC} \ |
86 |
websockets widgets |
101 |
${_USE_PYQT_MULTIMEDIA} \ |
|
|
102 |
${_USE_PYQT_NET} \ |
103 |
${_USE_PYQT_PRINT} \ |
104 |
${_USE_PYQT_TEXTPROC} \ |
105 |
${_USE_PYQT_WWW} \ |
106 |
${_USE_PYQT_X11} \ |
107 |
${_USE_PYQT_X11-TOOLKITS} |
108 |
_USE_SIP_ALL= sip pysip |
109 |
_USE_QSCINTILLA= qscintilla2 |
87 |
|
110 |
|
88 |
# Unversioned variables for the rest of the file |
111 |
# Unversioned variables for the rest of the file |
89 |
PYQT_VERSION= ${PYQT${_PYQT_VERSION}_VERSION} |
112 |
PYQT_VERSION= ${PYQT${_PYQT_VERSION}_VERSION} |
Lines 94-213
Link Here
|
94 |
PYQT_DISTINFO_FILE= ${PYQT${_PYQT_VERSION}_DISTINFO_FILE} |
117 |
PYQT_DISTINFO_FILE= ${PYQT${_PYQT_VERSION}_DISTINFO_FILE} |
95 |
PYQT_LICENSE= ${PYQT${_PYQT_VERSION}_LICENSE} |
118 |
PYQT_LICENSE= ${PYQT${_PYQT_VERSION}_LICENSE} |
96 |
|
119 |
|
|
|
120 |
# PATH |
97 |
py-sip_PATH= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION} |
121 |
py-sip_PATH= ${PYTHON_PKGNAMEPREFIX}sip>=${SIP_VERSION} |
98 |
|
122 |
py-pysip_PATH= ${PYQT_PY_RELNAME}-sip>=${PYQTSIP_VERSION} |
99 |
py-assistant_PATH= ${PYQT_PY_RELNAME}-assistant>=${PYQT_VERSION} |
|
|
100 |
py-core_PATH= ${PYQT_PY_RELNAME}-core>=${PYQT_VERSION} |
101 |
py-dbus_PATH= ${PYQT_PY_RELNAME}-dbus>=${PYQT_VERSION} |
102 |
py-dbussupport_PATH= ${PYQT_PY_RELNAME}-dbussupport>=${PYQT_VERSION} |
103 |
py-declarative_PATH= ${PYQT_PY_RELNAME}-declarative>=${PYQT_VERSION} |
104 |
py-demo_PATH= ${PYQT_PY_RELNAME}-demo>=${PYQT_VERSION} |
105 |
py-designer_PATH= ${PYQT_PY_RELNAME}-designer>=${PYQT_VERSION} |
106 |
py-designerplugin_PATH= ${PYQT_PY_RELNAME}-designerplugin>=${PYQT_VERSION} |
107 |
py-doc_PATH= ${PYQT_PY_RELNAME}-doc>=${PYQT_VERSION} |
108 |
py-gui_PATH= ${PYQT_PY_RELNAME}-gui>=${PYQT_VERSION} |
109 |
py-help_PATH= ${PYQT_PY_RELNAME}-help>=${PYQT_VERSION} |
110 |
py-multimedia_PATH= ${PYQT_PY_RELNAME}-multimedia>=${PYQT_VERSION} |
111 |
py-network_PATH= ${PYQT_PY_RELNAME}-network>=${PYQT_VERSION} |
112 |
py-opengl_PATH= ${PYQT_PY_RELNAME}-opengl>=${PYQT_VERSION} |
113 |
py-phonon_PATH= ${PYQT_PY_RELNAME}-phonon>=${PYQT_VERSION} |
114 |
py-qscintilla2_PATH= ${PYQT_PY_RELNAME}-qscintilla2>=${QSCI2_VERSION} |
123 |
py-qscintilla2_PATH= ${PYQT_PY_RELNAME}-qscintilla2>=${QSCI2_VERSION} |
115 |
py-script_PATH= ${PYQT_PY_RELNAME}-script>=${PYQT_VERSION} |
|
|
116 |
py-scripttools_PATH= ${PYQT_PY_RELNAME}-scripttools>=${PYQT_VERSION} |
117 |
py-sql_PATH= ${PYQT_PY_RELNAME}-sql>=${PYQT_VERSION} |
118 |
py-svg_PATH= ${PYQT_PY_RELNAME}-svg>=${PYQT_VERSION} |
119 |
py-test_PATH= ${PYQT_PY_RELNAME}-test>=${PYQT_VERSION} |
120 |
py-webchannel_PATH= ${PYQT_PY_RELNAME}-webchannel>=${PYQT_VERSION} |
121 |
py-webengine_PATH= ${PYQT_PY_RELNAME}-webengine>=5.12.1 |
122 |
py-webkit_PATH= ${PYQT_PY_RELNAME}-webkit>=${PYQT_VERSION} |
123 |
py-websockets_PATH= ${PYQT_PY_RELNAME}-websockets>=${PYQT_VERSION} |
124 |
py-xml_PATH= ${PYQT_PY_RELNAME}-xml>=${PYQT_VERSION} |
125 |
py-xmlpatterns_PATH= ${PYQT_PY_RELNAME}-xmlpatterns>=${PYQT_VERSION} |
126 |
|
124 |
|
127 |
py-multimediawidgets_PATH= ${PYQT_PY_RELNAME}-multimediawidgets>=${PYQT_VERSION} |
125 |
. for _component in ${_USE_PYQT_ALL} |
128 |
py-qml_PATH= ${PYQT_PY_RELNAME}-qml>=${PYQT_VERSION} |
126 |
py-${_component}_PATH?=${PYQT_PY_RELNAME}-${_component}>=${PYQT_VERSION} |
129 |
py-quickwidgets_PATH= ${PYQT_PY_RELNAME}-quickwidgets>=${PYQT_VERSION} |
127 |
. endfor |
130 |
py-printsupport_PATH= ${PYQT_PY_RELNAME}-printsupport>=${PYQT_VERSION} |
|
|
131 |
py-serialport_PATH= ${PYQT_PY_RELNAME}-serialport>=${PYQT_VERSION} |
132 |
py-webkitwidgets_PATH= ${PYQT_PY_RELNAME}-webkitwidgets>=${PYQT_VERSION} |
133 |
py-widgets_PATH= ${PYQT_PY_RELNAME}-widgets>=${PYQT_VERSION} |
134 |
|
128 |
|
|
|
129 |
# PORT |
135 |
py-sip_PORT= devel/py-sip |
130 |
py-sip_PORT= devel/py-sip |
136 |
|
131 |
py-pysip_PORT= devel/${PYQT_RELNAME}-sip |
137 |
py-assistant_PORT= devel/${PYQT_RELNAME}-assistant |
|
|
138 |
py-core_PORT= devel/${PYQT_RELNAME}-core |
139 |
py-dbus_PORT= devel/${PYQT_RELNAME}-dbus |
140 |
py-dbussupport_PORT= devel/${PYQT_RELNAME}-dbussupport |
141 |
py-declarative_PORT= devel/${PYQT_RELNAME}-declarative |
142 |
py-demo_PORT= misc/${PYQT_RELNAME}-demo |
143 |
py-designer_PORT= devel/${PYQT_RELNAME}-designer |
144 |
py-designerplugin_PORT= devel/${PYQT_RELNAME}-designerplugin |
145 |
py-doc_PORT= misc/${PYQT_RELNAME}-doc |
146 |
py-gui_PORT= x11-toolkits/${PYQT_RELNAME}-gui |
147 |
py-help_PORT= devel/${PYQT_RELNAME}-help |
148 |
py-multimedia_PORT= multimedia/${PYQT_RELNAME}-multimedia |
149 |
py-network_PORT= net/${PYQT_RELNAME}-network |
150 |
py-opengl_PORT= x11/${PYQT_RELNAME}-opengl |
151 |
py-phonon_PORT= multimedia/${PYQT_RELNAME}-phonon |
152 |
py-qscintilla2_PORT= devel/${PYQT_RELNAME}-qscintilla2 |
132 |
py-qscintilla2_PORT= devel/${PYQT_RELNAME}-qscintilla2 |
153 |
py-script_PORT= devel/${PYQT_RELNAME}-script |
|
|
154 |
py-scripttools_PORT= devel/${PYQT_RELNAME}-scripttools |
155 |
py-sql_PORT= databases/${PYQT_RELNAME}-sql |
156 |
py-svg_PORT= graphics/${PYQT_RELNAME}-svg |
157 |
py-test_PORT= devel/${PYQT_RELNAME}-test |
158 |
py-webchannel_PORT= www/${PYQT_RELNAME}-webchannel |
159 |
py-webengine_PORT= www/${PYQT_RELNAME}-webengine |
160 |
py-webkit_PORT= www/${PYQT_RELNAME}-webkit |
161 |
py-websockets_PORT= www/${PYQT_RELNAME}-websockets |
162 |
py-xml_PORT= textproc/${PYQT_RELNAME}-xml |
163 |
py-xmlpatterns_PORT= textproc/${PYQT_RELNAME}-xmlpatterns |
164 |
|
133 |
|
165 |
py-multimediawidgets_PORT= multimedia/py-qt5-multimediawidgets |
134 |
. for _categorie in comms databases devel graphics lang misc multimedia net print textproc www x11 x11-toolkits |
166 |
py-qml_PORT= lang/py-qt5-qml |
135 |
_PYQT_CATEGORIE= _USE_PYQT_${_categorie:tu} |
167 |
py-quickwidgets_PORT= x11-toolkits/py-qt5-quickwidgets |
136 |
. for _component in ${${_PYQT_CATEGORIE}} |
168 |
py-printsupport_PORT= print/py-qt5-printsupport |
137 |
py-${_component}_PORT?=${_categorie}/${PYQT_RELNAME}-${_component} |
169 |
py-serialport_PORT= comms/py-qt5-serialport |
138 |
. endfor |
170 |
py-webkitwidgets_PORT= www/py-qt5-webkitwidgets |
139 |
. endfor |
171 |
py-widgets_PORT= x11-toolkits/py-qt5-widgets |
|
|
172 |
|
140 |
|
173 |
py-assistant_DESC= Python bindings for QtAssistant module |
|
|
174 |
py-core_DESC= Python bindings for QtCore module |
141 |
py-core_DESC= Python bindings for QtCore module |
|
|
142 |
py-chart_DESC= Python bindings for QtChart module |
175 |
py-dbus_DESC= Python bindings for QtDBus module |
143 |
py-dbus_DESC= Python bindings for QtDBus module |
176 |
py-dbussupport_DESC= Qt event loop support for dbus-python |
144 |
py-dbussupport_DESC= Qt event loop support for dbus-python |
177 |
py-declarative_DESC= Python bindings for QtDeclarative module |
|
|
178 |
py-demo_DESC= PyQt demo and examples |
145 |
py-demo_DESC= PyQt demo and examples |
179 |
py-designer_DESC= Python bindings for QtDesigner module |
146 |
py-designer_DESC= Python bindings for QtDesigner module |
180 |
py-designerplugin_DESC= Python bindings for QtDesigner plugin |
147 |
py-designerplugin_DESC= Python bindings for QtDesigner plugin |
181 |
py-doc_DESC= PyQt documentation |
|
|
182 |
py-gui_DESC= Python bindings for QtGui module |
148 |
py-gui_DESC= Python bindings for QtGui module |
183 |
py-help_DESC= Python bindings for QtHelp module |
149 |
py-help_DESC= Python bindings for QtHelp module |
|
|
150 |
py-location_DESC= Python bindings for Location module |
184 |
py-multimedia_DESC= Python bindings for Multimedia module |
151 |
py-multimedia_DESC= Python bindings for Multimedia module |
|
|
152 |
py-multimediawidgets_DESC= Python bindings for QtMultimediaWidgets module |
185 |
py-network_DESC= Python bindings for QtNetwork module |
153 |
py-network_DESC= Python bindings for QtNetwork module |
|
|
154 |
py-networkauth_DESC= Python bindings for QtNetworkAuth module |
186 |
py-opengl_DESC= Python bindings for QtOpenGL module |
155 |
py-opengl_DESC= Python bindings for QtOpenGL module |
187 |
py-phonon_DESC= Python bindings for Phonon module |
156 |
py-printsupport_DESC= Python bindings for Printsupport module |
|
|
157 |
py-qml_DESC= Python bindings for Qml module |
188 |
py-qscintilla2_DESC= Python bindings for QScintilla2 |
158 |
py-qscintilla2_DESC= Python bindings for QScintilla2 |
189 |
py-script_DESC= Python bindings for QtScript module |
159 |
py-quick_DESC= Python bindings for QtQuick module |
190 |
py-scripttools_DESC= Python bindings for QtScriptTools module |
160 |
py-quick3d_DESC= Python bindings for QtQuick3D module |
|
|
161 |
py-quickwidgets_DESC= Python bindings for QtQuickWidgets module |
191 |
py-sip_DESC= Python bindings generator for C and C++ libraries |
162 |
py-sip_DESC= Python bindings generator for C and C++ libraries |
|
|
163 |
py-sensors_DESC= Python bindings for QtSensors |
164 |
py-serialport_DESC= Python bindings for QtSerialPort |
192 |
py-sql_DESC= Python bindings for QtSql module |
165 |
py-sql_DESC= Python bindings for QtSql module |
193 |
py-svg_DESC= Python bindings for QtSvg module |
166 |
py-svg_DESC= Python bindings for QtSvg module |
194 |
py-test_DESC= Python bindings for QtTest module |
167 |
py-test_DESC= Python bindings for QtTest module |
195 |
py-webchannel_DESC= Python bindings for QtWebChannel module |
168 |
py-webchannel_DESC= Python bindings for QtWebChannel module |
196 |
py-webengine_DESC= Python bindings for QtWebEngine module |
169 |
py-webengine_DESC= Python bindings for QtWebEngine module |
197 |
py-webkit_DESC= Python bindings for QtWebKit module |
170 |
py-webkit_DESC= Python bindings for QtWebKit module |
|
|
171 |
py-webkitwidgets_DESC= Python bindings for QtWebKitWidgets module |
172 |
py-widgets_DESC= Python bindings for QTWidgets module |
198 |
py-xml_DESC= Python bindings for QtXml module |
173 |
py-xml_DESC= Python bindings for QtXml module |
199 |
py-xmlpatterns_DESC= Python bindings for QtXmlPatterns module |
174 |
py-xmlpatterns_DESC= Python bindings for QtXmlPatterns module |
200 |
|
175 |
|
201 |
py-multimediawidgets_DESC= Python bindings for QtMultimediaWidgets module |
|
|
202 |
py-qml_DESC= Python bindings for Qml module |
203 |
py-quickwidgets_DESC= Python bindings for QtQuickWidgets module |
204 |
py-printsupport_DESC= Python bindings for Printsupport module |
205 |
py-serialport_DESC= Python bindings for QtSerialPort |
206 |
py-webkitwidgets_DESC= Python bindings for QtWebKitWidgets module |
207 |
py-widgets_DESC= Python bindings for QTWidgets module |
208 |
|
209 |
# The versionned executable of sip |
176 |
# The versionned executable of sip |
210 |
SIP= ${LOCALBASE}/bin/sip-${PYTHON_VER} |
177 |
SIP= ${LOCALBASE}/bin/sip5-${PYTHON_VER} |
211 |
|
178 |
|
212 |
# Relative directories |
179 |
# Relative directories |
213 |
_VERSION_SUBDIR_REL= PyQt${_PYQT_VERSION}/${PYTHON_VER} |
180 |
_VERSION_SUBDIR_REL= PyQt${_PYQT_VERSION}/${PYTHON_VER} |
Lines 236-242
Link Here
|
236 |
PYQT_QSCIVERSION=${QSCI2_VERSION} \ |
203 |
PYQT_QSCIVERSION=${QSCI2_VERSION} \ |
237 |
PYQT_PYQTVERSION=${PYQT_VERSION} |
204 |
PYQT_PYQTVERSION=${PYQT_VERSION} |
238 |
|
205 |
|
239 |
.if defined(PYQT_DIST) |
206 |
. if defined(PYQT_DIST) |
240 |
PORTVERSION= ${PYQT_VERSION} |
207 |
PORTVERSION= ${PYQT_VERSION} |
241 |
MASTER_SITES= ${PYQT_MASTERSITES} |
208 |
MASTER_SITES= ${PYQT_MASTERSITES} |
242 |
PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- |
209 |
PKGNAMEPREFIX= ${PYQT_PY_RELNAME}- |
Lines 245-257
Link Here
|
245 |
LICENSE?= ${PYQT_LICENSE} |
212 |
LICENSE?= ${PYQT_LICENSE} |
246 |
HAS_CONFIGURE= yes |
213 |
HAS_CONFIGURE= yes |
247 |
|
214 |
|
248 |
.if ${_PYQT_VERSION} > 4 |
215 |
. if ${_PYQT_VERSION} > 4 |
249 |
# PyQt5's configure.py generates .pro files and calls qmake to generate the |
216 |
# PyQt5's configure.py generates .pro files and calls qmake to generate the |
250 |
# Makefiles. qmake's Makefiles use INSTALL_ROOT instead of DESTDIR. |
217 |
# Makefiles. qmake's Makefiles use INSTALL_ROOT instead of DESTDIR. |
251 |
DESTDIRNAME= INSTALL_ROOT |
218 |
DESTDIRNAME= INSTALL_ROOT |
252 |
# Limit PyQt5's version to the Qt5 version in ports |
219 |
# Limit PyQt5's version to the Qt5 version in ports |
253 |
PORTSCOUT?= limit:^${_QT_VERSION:R} |
220 |
PORTSCOUT?= limit:^${_QT_VERSION:R} |
254 |
.endif |
221 |
. endif |
255 |
|
222 |
|
256 |
PATCHDIR= ${.CURDIR}/../../devel/${PYQT_RELNAME}-core/files |
223 |
PATCHDIR= ${.CURDIR}/../../devel/${PYQT_RELNAME}-core/files |
257 |
CONFIGURE_ARGS+=-b ${PREFIX}/bin \ |
224 |
CONFIGURE_ARGS+=-b ${PREFIX}/bin \ |
Lines 260-290
Link Here
|
260 |
--confirm-license \ |
227 |
--confirm-license \ |
261 |
--sip ${SIP} \ |
228 |
--sip ${SIP} \ |
262 |
--sipdir ${PYQT_SIPDIR} |
229 |
--sipdir ${PYQT_SIPDIR} |
263 |
.if ${_PYQT_VERSION:M5} |
230 |
. if ${_PYQT_VERSION:M5} |
264 |
# Move the designer plugin and qml libraries to versioned folders. |
231 |
# Move the designer plugin and qml libraries to versioned folders. |
265 |
CONFIGURE_ARGS+=--qml-plugindir ${PYQT_QMLDIR} \ |
232 |
CONFIGURE_ARGS+=--qml-plugindir ${PYQT_QMLDIR} \ |
266 |
--designer-plugindir ${PYQT_DESIGNERDIR} |
233 |
--designer-plugindir ${PYQT_DESIGNERDIR} |
267 |
# Further do not gernate the dinstinfo files. |
234 |
# Further do not gernate the dinstinfo files. |
268 |
CONFIGURE_ARGS+=--no-dist-info |
235 |
CONFIGURE_ARGS+=--no-dist-info |
269 |
.endif |
236 |
. endif |
270 |
# One of the things PyQt looks for to determine whether to build the Qt DBus |
237 |
# One of the things PyQt looks for to determine whether to build the Qt DBus |
271 |
# main loop module (${PYQT_RELNAME}-dbussupport) is whether the dbus/ directory is |
238 |
# main loop module (${PYQT_RELNAME}-dbussupport) is whether the dbus/ directory is |
272 |
# present. Only extract it for that port then. |
239 |
# present. Only extract it for that port then. |
273 |
.if ${PORTNAME} != "dbussupport" |
240 |
. if ${PORTNAME} != "dbussupport" |
274 |
EXTRACT_AFTER_ARGS+= --exclude "${DISTNAME}/dbus" |
241 |
EXTRACT_AFTER_ARGS+= --exclude "${DISTNAME}/dbus" |
275 |
.endif # ${PORTNAME} != "dbussupport" |
242 |
. endif # ${PORTNAME} != "dbussupport" |
276 |
|
243 |
|
277 |
.if !target(do-configure) |
244 |
. if !target(do-configure) |
278 |
do-configure: |
245 |
do-configure: |
279 |
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ |
246 |
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ |
280 |
${PYTHON_CMD} configure.py ${CONFIGURE_ARGS} |
247 |
${PYTHON_CMD} configure.py ${CONFIGURE_ARGS} |
281 |
.endif # !target(do-configure) |
248 |
. endif # !target(do-configure) |
282 |
.endif # defined(PYQT_DIST) |
249 |
. endif # defined(PYQT_DIST) |
283 |
|
250 |
|
284 |
# Set build, run and test depends -- we need to prefix them internally with "py-" |
251 |
# Set build, run and test depends -- we need to prefix them internally with "py-" |
285 |
# else we conflict with the ones defined in bsd.qt.mk with the same name |
252 |
# else we conflict with the ones defined in bsd.qt.mk with the same name |
286 |
_USE_PYQT_ALL+= ${_USE_PYQT${_PYQT_VERSION}_ONLY} |
253 |
_USE_PYQT_ALL+= ${_USE_SIP_ALL} \ |
287 |
.for comp in ${_USE_PYQT_ALL:O:u} |
254 |
${_USE_QSCINTILLA} |
|
|
255 |
. for comp in ${_USE_PYQT_ALL:O:u} |
288 |
_USE_PYQT_ALL_SUFFIXED+= py-${comp} py-${comp}_build py-${comp}_run py-${comp}_test |
256 |
_USE_PYQT_ALL_SUFFIXED+= py-${comp} py-${comp}_build py-${comp}_run py-${comp}_test |
289 |
py-${comp}_BUILD_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} |
257 |
py-${comp}_BUILD_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} |
290 |
py-${comp}_RUN_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} |
258 |
py-${comp}_RUN_DEPENDS?= ${py-${comp}_PATH}:${py-${comp}_PORT}@${PY_FLAVOR} |
Lines 292-308
Link Here
|
292 |
py-${comp}_build_BUILD_DEPENDS?= ${py-${comp}_BUILD_DEPENDS} |
260 |
py-${comp}_build_BUILD_DEPENDS?= ${py-${comp}_BUILD_DEPENDS} |
293 |
py-${comp}_run_RUN_DEPENDS?= ${py-${comp}_RUN_DEPENDS} |
261 |
py-${comp}_run_RUN_DEPENDS?= ${py-${comp}_RUN_DEPENDS} |
294 |
py-${comp}_test_TEST_DEPENDS?= ${py-${comp}_TEST_DEPENDS} |
262 |
py-${comp}_test_TEST_DEPENDS?= ${py-${comp}_TEST_DEPENDS} |
295 |
.endfor |
263 |
. endfor |
296 |
|
264 |
|
297 |
_USE_PYQT= ${USE_PYQT:O:u} |
265 |
_USE_PYQT= ${USE_PYQT:O:u} |
298 |
.for comp in ${_USE_PYQT} |
266 |
. for comp in ${_USE_PYQT} |
299 |
. if ${_USE_PYQT_ALL_SUFFIXED:Mpy-${comp}} |
267 |
. if ${_USE_PYQT_ALL_SUFFIXED:Mpy-${comp}} |
300 |
BUILD_DEPENDS+= ${py-${comp}_BUILD_DEPENDS} |
268 |
BUILD_DEPENDS+= ${py-${comp}_BUILD_DEPENDS} |
301 |
RUN_DEPENDS+= ${py-${comp}_RUN_DEPENDS} |
269 |
RUN_DEPENDS+= ${py-${comp}_RUN_DEPENDS} |
302 |
TEST_DEPENDS+= ${py-${comp}_TEST_DEPENDS} |
270 |
TEST_DEPENDS+= ${py-${comp}_TEST_DEPENDS} |
303 |
. else |
271 |
. else |
304 |
IGNORE?= cannot be installed: unknown USE_PYQT component ${comp} #' |
272 |
IGNORE?= cannot be installed: unknown USE_PYQT component ${comp} #' |
305 |
. endif |
273 |
. endif |
306 |
.endfor |
274 |
. endfor |
307 |
|
275 |
|
308 |
.endif # defined(_INCLUDE_USES_PYQT_MK) |
276 |
.endif # defined(_INCLUDE_USES_PYQT_MK) |