git: 0e005b38229a - main - graphics/poppler-qt6: new port - Qt6 wrapper for poppler

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Tue, 23 Aug 2022 06:04:52 UTC
The branch main has been updated by tcberner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0e005b38229a8a7b25ad1183976853cdf545ad7d

commit 0e005b38229a8a7b25ad1183976853cdf545ad7d
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-08-23 06:04:01 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-08-23 06:04:33 +0000

    graphics/poppler-qt6: new port - Qt6 wrapper for poppler
---
 graphics/Makefile              |  1 +
 graphics/poppler-qt6/Makefile  |  9 +++++++++
 graphics/poppler-qt6/pkg-plist | 12 ++++++++++++
 graphics/poppler/Makefile      |  6 +++++-
 4 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/graphics/Makefile b/graphics/Makefile
index ca0056eeb158..100f871e58c7 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -808,6 +808,7 @@
     SUBDIR += poppler-data
     SUBDIR += poppler-glib
     SUBDIR += poppler-qt5
+    SUBDIR += poppler-qt6
     SUBDIR += poppler-utils
     SUBDIR += potrace
     SUBDIR += povray-meta
diff --git a/graphics/poppler-qt6/Makefile b/graphics/poppler-qt6/Makefile
new file mode 100644
index 000000000000..a22ce7f77181
--- /dev/null
+++ b/graphics/poppler-qt6/Makefile
@@ -0,0 +1,9 @@
+PORTREVISION=	0
+
+COMMENT=	Qt 6 bindings to poppler
+
+MASTERDIR=	${.CURDIR}/../../graphics/poppler
+_SLAVE_PORT=	qt6
+PLIST=		${.CURDIR}/pkg-plist
+
+.include "${MASTERDIR}/Makefile"
diff --git a/graphics/poppler-qt6/pkg-plist b/graphics/poppler-qt6/pkg-plist
new file mode 100644
index 000000000000..60ec6ece62ad
--- /dev/null
+++ b/graphics/poppler-qt6/pkg-plist
@@ -0,0 +1,12 @@
+include/poppler/qt6/poppler-annotation.h
+include/poppler/qt6/poppler-export.h
+include/poppler/qt6/poppler-form.h
+include/poppler/qt6/poppler-link.h
+include/poppler/qt6/poppler-media.h
+include/poppler/qt6/poppler-optcontent.h
+include/poppler/qt6/poppler-page-transition.h
+include/poppler/qt6/poppler-qt6.h
+include/poppler/qt6/poppler-version.h
+lib/libpoppler-qt6.so
+lib/libpoppler-qt6.so.3
+lib/libpoppler-qt6.so.3.2.0
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile
index 3ddba3a8369c..7ccc5ec49b0c 100644
--- a/graphics/poppler/Makefile
+++ b/graphics/poppler/Makefile
@@ -41,7 +41,7 @@ CMAKE_OFF=	BUILD_GTK_TESTS
 CMAKE_ARGS+=	-DCMAKE_IGNORE_PATH:PATH=${PREFIX}/lib/openjpeg-1.5
 
 # Slave ports.
-_POPPLER_SLAVES=	library glib qt5 utils
+_POPPLER_SLAVES=	library glib qt5 qt6 utils
 _SLAVE_PORT?=		library
 
 BINARY_ALIAS=		gperf=${GPERF} \
@@ -80,6 +80,10 @@ BINARY_ALIAS+=		python3=${PYTHON_CMD}
 USES+=			qt:5
 USE_QT=			core gui widgets xml \
 			buildtools_build qmake_build testlib_build
+.  elif ${_SLAVE_PORT} == qt6
+USES+=			gl qt:6
+USE_GL+=		gl opengl
+USE_QT=			base
 .  elif ${_SLAVE_PORT} == utils
 LIB_DEPENDS+=		libpoppler-glib.so:graphics/poppler-glib
 USES+=			gnome