Date: Sat, 5 Nov 2022 23:57:10 GMT From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 68acc1609371 - main - graphics/yacreader: add -qt6 flavor Message-ID: <202211052357.2A5NvA6v053848@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=68acc1609371e9b5c8a374c24927823f1f60cbb1 commit 68acc1609371e9b5c8a374c24927823f1f60cbb1 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2022-11-04 21:41:09 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-11-05 23:56:25 +0000 graphics/yacreader: add -qt6 flavor PDF isn't supported yet: poppler is broken and pdfium isn't packaged. --- graphics/yacreader/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/graphics/yacreader/Makefile b/graphics/yacreader/Makefile index 0b71b4f500f2..e50f5760778c 100644 --- a/graphics/yacreader/Makefile +++ b/graphics/yacreader/Makefile @@ -14,12 +14,24 @@ LICENSE_FILE= ${WRKSRC}/COPYING.txt LIB_DEPENDS= libunarr.so:archivers/unarr +FLAVORS= qt5 qt6 + USES= compiler:c++11-lib desktop-file-utils pkgconfig qmake qt:5 USE_GITHUB= yes USE_QT= qmake:build buildtools:build core concurrent:build declarative \ gui linguisttools:build multimedia network quickcontrols2 \ sql sql-sqlite3:run svg testlib:build widgets +.if ${FLAVOR:U} == qt6 +PKGNAMESUFFIX= -${FLAVOR} +USES:= ${USES:S/qt:5/qt:6/} +USE_QT= 5compat base declarative multimedia svg tools:build +OPTIONS_EXCLUDE=POPPLER # https://github.com/YACReader/yacreader/issues/352 +CONFLICTS_INSTALL= ${PORTNAME} +.else +CONFLICTS_INSTALL= ${PORTNAME}-qt6 +.endif + OPTIONS_DEFINE= OPENGL POPPLER OPTIONS_DEFAULT=OPENGL POPPLER @@ -27,7 +39,7 @@ OPENGL_USES= gl OPENGL_USE= GL=gl OPENGL_QMAKE_OFF= CONFIG+=no_opengl -POPPLER_LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 +POPPLER_LIB_DEPENDS= libpoppler-${FLAVOR}.so:graphics/poppler-${FLAVOR} POPPLER_QMAKE_OFF= CONFIG+=no_pdf .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211052357.2A5NvA6v053848>