mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 04:16:27 -04:00
* Add a workaround to make the transition from Python 3.7 to Python 3.8 possible because the name of the .so file is slightly different between the two releases. * Use PYTHONPREFIX_SITELIBDIR instead PYTHON_SITELIBDIR to make the port PREFIX safe. * Also add "gl" to USE, introduce USE_{GL,QT} to fix stage QA issues and pet portclippy by sorting the entries of USE_PYQT as well. [1] PR: 254427 Submitted by: <m.ne@gmx.net> (maintainer) [1] Approved by: <m.ne@gmx.net> (maintainer)
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= python-poppler-qt5
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.75.0
|
|
PORTREVISION= 16
|
|
CATEGORIES= graphics python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= m.ne@gmx.net
|
|
COMMENT= Python bindings for the Poppler-Qt PDF rendering library
|
|
|
|
LICENSE= LGPL21 LGPL3
|
|
LICENSE_COMB= dual
|
|
|
|
BUILD_DEPENDS= qmake:devel/qt5-qmake
|
|
LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5
|
|
|
|
USES= compiler:c++11-lang gl pkgconfig pyqt:5 python:3.5+ qt:5
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= frescobaldi
|
|
USE_GL= gl
|
|
USE_PYQT= gui qtbuilder xml sip_build
|
|
USE_QT= core gui xml
|
|
|
|
PLIST_SUB= _PY_SONAME=${_PY_SONAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 3800
|
|
_PY_SONAME= .cpython-${PYTHON_SUFFIX}m
|
|
.else
|
|
_PY_SONAME= ${PYTHON_EXT_SUFFIX}
|
|
.endif
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} ; sip-build --verbose --no-make --build-dir build ; ${MAKE} -C ./build )
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} ; ${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.post.mk>
|