467ed9
diff -ru xpdf-4.03.orig/cmake-config.txt xpdf-4.03/cmake-config.txt
467ed9
--- xpdf-4.03.orig/cmake-config.txt     2021-01-27 23:23:51.000000000 +0100
467ed9
+++ xpdf-4.03/cmake-config.txt  2021-07-21 21:24:10.085991109 +0200
467ed9
@@ -208,63 +208,6 @@
467ed9
 find_package(PNG)
467ed9
467ed9
467ed9
-
467ed9
-
467ed9
-#--- look for Qt
467ed9
-find_package(Qt5Widgets QUIET)
467ed9
-if (Qt5Widgets_FOUND)
467ed9
-  find_package(Qt5Network)
467ed9
-  find_package(Qt5PrintSupport)
467ed9
-else ()
467ed9
-  find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork)
467ed9
-endif ()
467ed9
-if(Qt5Widgets_FOUND)
467ed9
-  message(STATUS "Qt5 found")
467ed9
-  if (XPDFWIDGET_PRINTING)
467ed9
-    set(QT_INCLUDES "${Qt5Widgets_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS} ${Qt5PrintSupport_INCLUDE_DIRS}")
467ed9
-    set(QT_DEFINITIONS "${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS} ${Qt5PrintSupport_DEFINITIONS}")
467ed9
-    set(QT_LIBRARIES Qt5::Widgets Qt5::Network Qt5::PrintSupport)
467ed9
-  else ()
467ed9
-    set(QT_INCLUDES "${Qt5Widgets_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS}")
467ed9
-    set(QT_DEFINITIONS "${Qt5Widgets_DEFINITIONS} ${Qt5Network_DEFINITIONS}")
467ed9
-    set(QT_LIBRARIES Qt5::Widgets Qt5::Network)
467ed9
-  endif ()
467ed9
-  if (XPDFWIDGET_PRINTING)
467ed9
-    if (APPLE)
467ed9
-      set(EXTRA_QT_LIBRARIES "-framework ApplicationServices")
467ed9
-    elseif (UNIX)
467ed9
-      find_package(Cups)
467ed9
-      if (CUPS_FOUND)
467ed9
-        set(EXTRA_QT_LIBRARIES ${CUPS_LIBRARIES})
467ed9
-      else ()
467ed9
-        set (XPDFWIDGET_PRINTING OFF)
467ed9
-      endif ()
467ed9
-    else ()
467ed9
-      set(EXTRA_QT_LIBRARIES "")
467ed9
-    endif ()
467ed9
-  endif ()
467ed9
-  # remove "-fPIE" here because we added "-fPIC" above
467ed9
-  string(REPLACE "-fPIE" "" QT_CFLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
467ed9
-elseif(QT4_FOUND)
467ed9
-  message(STATUS "Qt4 found")
467ed9
-  if (XPDFWIDGET_PRINTING)
467ed9
-    if (APPLE)
467ed9
-      set(EXTRA_QT_LIBRARIES "-framework ApplicationServices")
467ed9
-    elseif (UNIX)
467ed9
-      find_package(Cups)
467ed9
-      if (CUPS_FOUND)
467ed9
-        set(EXTRA_QT_LIBRARIES ${CUPS_LIBRARIES})
467ed9
-      else ()
467ed9
-        set (XPDFWIDGET_PRINTING OFF)
467ed9
-      endif ()
467ed9
-    else ()
467ed9
-      set(EXTRA_QT_LIBRARIES "")
467ed9
-    endif ()
467ed9
-  endif ()
467ed9
-else()
467ed9
-  message(STATUS "No Qt library found")
467ed9
-endif()
467ed9
-
467ed9
 #--- look for libpaper
467ed9
 find_library(PAPER_LIBRARY
467ed9
              NAMES paper libpaper
046dcf
diff -ru xpdf-4.02.orig/CMakeLists.txt xpdf-4.02/CMakeLists.txt
046dcf
--- xpdf-4.02.orig/CMakeLists.txt	2019-09-25 21:54:33.000000000 +0200
046dcf
+++ xpdf-4.02/CMakeLists.txt	2020-07-03 18:16:19.639269162 +0200
046dcf
@@ -28,10 +28,6 @@
046dcf
   message(WARNING "Couldn't find libpng -- will not build pdftopng or pdftohtml.")
046dcf
 endif ()
046dcf
 
046dcf
-if (NOT QT4_FOUND AND NOT Qt5Widgets_FOUND)
046dcf
-  message(WARNING "Couldn't find Qt4 or Qt5 -- will not build xpdf.")
046dcf
-endif ()
046dcf
-
046dcf
 if (NOT MULTITHREADED)
046dcf
   message(WARNING "Multithreading is disabled -- will not build xpdf.")
046dcf
 endif ()