blob: 9f5adbcb8eb012fd40248756cb49dd64d55bf7d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= pyqt
PORTVERSION= ${PYQT_VERSION}
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITES_PYQT}
PKGNAMEPREFIX= ${PYQT_PY_RELNAME}-
DISTNAME= ${PYQT_DISTNAME}
MAINTAINER= kde@FreeBSD.org
COMMENT= Python bindings for the Qt6 toolkit, QtCore module
WWW= https://riverbankcomputing.com/software/pyqt
PYQT_DIST= yes
LIB_DEPENDS= libqscintilla2_qt6.so:devel/qscintilla2-qt6 \
libdbus-1.so:devel/dbus
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR}
USES= gl pkgconfig python:3.7+ pyqt:6 qt:6
USE_GL+= gl opengl
USE_PYTHON= concurrent flavors py3kplist
USE_PYQT= qtbuilder sip pysip
USE_QT= 5compat base declarative imageformats languageserver lottie \
multimedia positioning quick3d remoteobjects sensors \
serialport shadertools svg tools translations webchannel \
websockets
PORTSCOUT?= limit:^${_QT_VERSION:R}
post-extract:
${RM} -r ${WRKSRC}/pyuic/uic/port_v2
post-install:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt6 \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt6 \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6
@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt6 \
-name '*.so*' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>
|