freebsd-ports/devel/pyside2/Makefile
Christoph Moench-Tegeder 885808273b update devel/pyside2 and friends to 5.14.2
following r531601 (Qt 5.14.2), PySide2 can be updated, too
- pyside2-tools don't bring their own pyside2-rcc and pyside2-uic but
  use Qt's rcc and uic - patch cad/freecad to handle that
- remove Python 2 support: it's going to go away soon anyway, it did
  complicate these ports a lot, and it would have required more
  workarounds in FreeCAD when using Qt's rcc instead of the old pyside2-rcc.
- while here, do some polishing in freecad's makefile
2020-04-13 17:21:57 +00:00

39 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= pyside2
DISTVERSION= 5.14.2
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= libshiboken2.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}.so:devel/shiboken2@${PY_FLAVOR}
USES= cmake gl python:3.5+ qt:5 tar:xz
USE_GL= gl
USE_LDCONFIG= yes
USE_PYTHON= flavors
USE_QT= 3d buildtools_build charts concurrent 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>
PLIST_SUB+= PYVERSTR=.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}
PLIST_SUB+= DISTVERSION=${DISTVERSION}
WRKSRC= ${WRKDIR}/pyside-setup-opensource-src-${DISTVERSION}/sources/pyside2
.include <bsd.port.post.mk>