mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 17:06:32 -04:00
Most USES use a colon for build/run(/test) suffixes. Change kde.mk, qt.mk and pyqt.mk to do the same, and update all ports using that. Document in CHANGES. PR: 266034 Exp-run by: antoine Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D36349
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
PORTNAME= python-poppler-qt5
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.75.0
|
|
PORTREVISION= 25
|
|
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:3.7-3.9 qt:5
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= frescobaldi
|
|
USE_GL= gl
|
|
USE_PYQT= pyqt5 sip:build
|
|
USE_PYTHON= flavors
|
|
USE_QT= core gui xml
|
|
|
|
PLIST_SUB= _PY_SONAME=${_PY_SONAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 30800
|
|
_PY_SONAME= .cpython-${PYTHON_SUFFIX}m
|
|
.else
|
|
_PY_SONAME= ${PYTHON_EXT_SUFFIX}
|
|
.endif
|
|
|
|
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:
|
|
${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>
|