Download raw body.
Switch xpdf-4.05 to Qt6
Simple diff to switch xpdf to Qt6. Tested on amd64. OK?
Cheers Rafael
diff --git a/textproc/xpdf/Makefile b/textproc/xpdf/Makefile
index 9a7b4d6af84..d35b23b035e 100644
--- a/textproc/xpdf/Makefile
+++ b/textproc/xpdf/Makefile
@@ -2,6 +2,7 @@ COMMENT = PDF viewer for X11
DISTNAME = xpdf-4.05
CATEGORIES = textproc x11
EPOCH = 0
+REVISION = 0
HOMEPAGE = https://www.xpdfreader.com/
SITES = https://dl.xpdfreader.com/
@@ -9,11 +10,9 @@ SITES = https://dl.xpdfreader.com/
# GPLv2 only or GPLv3 only or both (at our choice)
PERMIT_PACKAGE = Yes
-WANTLIB += ${COMPILER_LIBCXX} Qt5Core Qt5Gui Qt5Network Qt5PrintSupport
-WANTLIB += Qt5Widgets c cups fontconfig freetype m paper png z
MODULES = devel/cmake \
- x11/qt5
+ x11/qt6
LIB_DEPENDS = graphics/png \
print/libpaper
@@ -24,9 +23,6 @@ CONFIGURE_ARGS = -DOPI_SUPPORT=ON \
-DXPDFWIDGET_PRINTING=ON \
-DSYSTEM_XPDFRC=/etc/xpdfrc
-# deprecated Qt5 print code fails to build with Qt6
-CONFIGURE_ARGS += -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets=ON
-
CXXFLAGS += -I${X11BASE}/include \
-I/usr/local/include
MODCMAKE_LDFLAGS = -L${X11BASE}/lib \
Switch xpdf-4.05 to Qt6