mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
84 lines
2.2 KiB
Makefile
84 lines
2.2 KiB
Makefile
COMMENT= Python bindings for Qt6
|
|
|
|
MODPY_DISTV= 6.11.0
|
|
DISTNAME= pyqt6-${MODPY_DISTV}
|
|
PKGNAME= py-qt6-${MODPY_DISTV}
|
|
|
|
DPB_PROPERTIES = parallel
|
|
|
|
CATEGORIES= x11 devel
|
|
|
|
HOMEPAGE= https://www.riverbankcomputing.com/software/pyqt/intro
|
|
|
|
# GPLv3 (or commercial)
|
|
# https://www.riverbankcomputing.com/commercial/license-faq
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL Qt6Bluetooth Qt6Core Qt6DBus
|
|
WANTLIB += Qt6Designer Qt6Gui Qt6Help Qt6Multimedia Qt6MultimediaWidgets
|
|
WANTLIB += Qt6Network Qt6Nfc Qt6OpenGL Qt6OpenGLWidgets Qt6Pdf
|
|
WANTLIB += Qt6PdfWidgets Qt6Positioning Qt6PrintSupport Qt6Qml
|
|
WANTLIB += Qt6Quick Qt6Quick3D Qt6Quick3DRuntimeRender Qt6Quick3DUtils
|
|
WANTLIB += Qt6QuickWidgets Qt6RemoteObjects Qt6Sensors Qt6SerialPort
|
|
WANTLIB += Qt6ShaderTools Qt6SpatialAudio Qt6Sql Qt6StateMachine
|
|
WANTLIB += Qt6Svg Qt6SvgWidgets Qt6Test Qt6TextToSpeech Qt6WebChannel
|
|
WANTLIB += Qt6WebSockets Qt6Widgets Qt6Xml dbus-1 m ${MODPY_WANTLIB}
|
|
|
|
BUILD_DEPENDS= devel/py-qt-builder>=1.19.0\
|
|
x11/py-sip-qt6>=13.10.0 \
|
|
x11/dbus-python \
|
|
graphics/vulkan-loader
|
|
|
|
RUN_DEPENDS= devel/py-sip>=6.14.0v0 \
|
|
x11/py-sip-qt6>=13.10.0 \
|
|
devel/py-ply \
|
|
x11/dbus-python
|
|
|
|
LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
|
|
x11/qt6/qtconnectivity \
|
|
x11/qt6/qtdeclarative \
|
|
x11/qt6/qtmultimedia \
|
|
x11/qt6/qtpositioning \
|
|
x11/qt6/qtquick3d \
|
|
x11/qt6/qtremoteobjects \
|
|
x11/qt6/qtscxml \
|
|
x11/qt6/qtsensors \
|
|
x11/qt6/qtserialport \
|
|
x11/qt6/qtshadertools \
|
|
x11/qt6/qtspeech \
|
|
x11/qt6/qtsvg \
|
|
x11/qt6/qttools \
|
|
x11/qt6/qtwebchannel \
|
|
x11/qt6/qtwebengine \
|
|
x11/qt6/qtwebsockets
|
|
|
|
NO_TEST= Yes
|
|
|
|
MODULES= lang/python \
|
|
x11/qt6
|
|
MODPY_PI= Yes
|
|
|
|
# https://www.riverbankcomputing.com/static/Docs/PyQt6/installation.html#building-pyqt6
|
|
CONFIGURE_STYLE= simple
|
|
CONFIGURE_SCRIPT= ${LOCALBASE}/bin/sip-build
|
|
CONFIGURE_ARGS= --no-make --verbose --confirm-license --pep484-pyi
|
|
|
|
MAKE_FLAGS= -C build \
|
|
CC=${CC} \
|
|
CXX=${CXX} \
|
|
COPTS="${CFLAGS}" \
|
|
CXXOPTS="${CXXFLAGS}" \
|
|
MAKE_JOBS=${MAKE_JOBS}
|
|
|
|
FAKE_FLAGS= INSTALL_ROOT=${DESTDIR}
|
|
|
|
post-extract:
|
|
# Needed to run sip-6.5+ sip-build
|
|
ln -sf ${MODQT6_QMAKE} ${WRKDIR}/bin/qmake
|
|
|
|
post-install:
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
|
${WRKINST}/${MODPY_SITEPKG}/PyQt6/uic/port_v3
|
|
|
|
.include <bsd.port.mk>
|