aboutsummaryrefslogtreecommitdiff
path: root/devel/py-qt5-qscintilla2/Makefile
blob: 53575740541a85a9ca2948af93190a1f0445cf41 (plain) (blame)
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
PORTNAME=	qscintilla2
PORTVERSION=	${QSCI2_VERSION}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITES_QSCI2}
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}qt5-
DISTNAME=	${QSCI2_DISTNAME}

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Python bindings for QScintilla2 (PyQt5), QSci module
WWW=		https://riverbankcomputing.com/software/pyqt

LIB_DEPENDS=	libqscintilla2_qt5.so:devel/qscintilla2-qt5

DISTINFO_FILE=	${.CURDIR:H}/qscintilla2-qt5/distinfo
DESTDIRNAME=	INSTALL_ROOT

USES=		python:3.8+ pyqt:5 gl qt:5
USE_GL=		gl
USE_PYQT=	pyqt5 sip:build qtbuilder
USE_PYTHON=	concurrent flavors py3kplist
USE_QT=		core gui printsupport widgets buildtools:build qmake:build

OPTIONS_DEFINE=		DEBUG
DEBUG_CONFIGURE_ON=	--debug --trace

WRKSRC=		${WRKDIR}/${DISTNAME}/Python
ALL_TARGET=	#empty

post-extract:
	${CP} ${WRKSRC}/pyproject-qt5.toml ${WRKSRC}/pyproject.toml

do-build:
	(cd ${WRKSRC} ; sip-build-${PYTHON_VER} --qmake ${QMAKE} --verbose --no-make --build-dir build ; ${MAKE} -C ./build )

do-install:
	(cd ${WRKSRC} ; ${MAKE} -C ./build install INSTALL_ROOT=${STAGEDIR} )

post-install:
	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5/Qsci.abi3.so

.include <bsd.port.mk>