mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
1d90cf651c
Qt5RemoteObjects is an "optional" module for pyside2 - it will be picked up automatically when qt5-remoteobjects is found during pyside2's build. Add it to enable the full functionality of pyside2, and to avoid staging errors in unclean environments. [1] The Qt53DExtras module may pull in qt5-gamepad (another contaminated- build-issue is suspected), depend on qt5-gamepad to avoid breakage in case this had happened with qt53DExtras. [1] While here, remove some now-obsolete staging area cleanup, the files are not installed anymore by the port. [2] PR: 241855 Reported by: rhurlin@gwdg.de [1]
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pyside2
|
|
DISTVERSION= 5.13.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= QT/official_releases/QtForPython/shiboken2/PySide2-${DISTVERSION}-src
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= pyside-setup-opensource-src-${DISTVERSION}
|
|
|
|
MAINTAINER= cmt@FreeBSD.org
|
|
COMMENT= Python Qt bindings for Qt 5.12+
|
|
|
|
LICENSE= LGPL3
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
|
|
git>0:devel/git
|
|
LIB_DEPENDS= # more later
|
|
|
|
USES= cmake gl python qt:5 tar:xz
|
|
USE_GL= gl
|
|
USE_LDCONFIG= yes
|
|
USE_PYTHON= flavors
|
|
USE_QT= 3d buildtools_build charts core datavis3d declarative \
|
|
designer gamepad gui help location multimedia network opengl \
|
|
printsupport qmake_build remoteobjects script scripttools \
|
|
scxml sensors speech sql svg testlib uitools webchannel \
|
|
webengine websockets widgets x11extras xml xmlpatterns
|
|
|
|
CMAKE_ARGS+= "-DUSE_PYTHON_VERSION=${PYTHON_VER}" \
|
|
"-DPYTHON_EXECUTABLE=${PYTHON_CMD}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_MAJOR_VER} >= 3
|
|
LIB_DEPENDS+= libshiboken2.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}.so:devel/shiboken2@${PY_FLAVOR}
|
|
PLIST_SUB+= PYVERSTR=.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}
|
|
.else
|
|
LIB_DEPENDS+= libshiboken2-${PYTHON_VERSION}.so:devel/shiboken2@${PY_FLAVOR}
|
|
PLIST_SUB+= PYVERSTR=-${PYTHON_VERSION}
|
|
.endif
|
|
|
|
PLIST_SUB+= DISTVERSION=${DISTVERSION}
|
|
|
|
WRKSRC= ${WRKDIR}/pyside-setup-opensource-src-${DISTVERSION}/sources/pyside2
|
|
|
|
.include <bsd.port.post.mk>
|