aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-python-poppler-qt5/Makefile
blob: 378ced9fd6e53ac2a18b0b5632ad2914f7c05f15 (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
42
PORTNAME=	python-poppler-qt5
DISTVERSIONPREFIX=	v
DISTVERSION=	21.3.0
PORTREVISION=	2
CATEGORIES=	graphics python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	m.ne@gmx.net
COMMENT=	Python bindings for the Poppler-Qt PDF rendering library
WWW=		https://pypi.org/project/python-poppler-qt5/

LICENSE=	LGPL21 LGPL3
LICENSE_COMB=	dual

BUILD_DEPENDS=	qmake-qt5:devel/qt5-qmake
LIB_DEPENDS=	libpoppler-qt5.so:graphics/poppler-qt5

USES=		compiler:c++11-lang gl pkgconfig pyqt:5 python qt:5
USE_GITHUB=	yes
GH_ACCOUNT=	frescobaldi
USE_GL=		gl
USE_PYQT=	pyqt5 sip:build
USE_PYTHON=	flavors pep517
USE_QT=		core gui xml

PLIST_SUB=	_PY_SONAME=${_PY_SONAME}

_PY_SONAME=	${PYTHON_EXT_SUFFIX}

BINARY_ALIAS=	qmake=${QMAKE}

do-build:
	(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${SIP} ${SIP_ARGS} ; ${SETENV} ${MAKE_ENV} ${MAKE} -C ./build )

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

post-install:
	${RLN} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5${_PY_SONAME}.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5.so
	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5${_PY_SONAME}.so

.include <bsd.port.mk>