Index: head/graphics/dspdfviewer/Makefile =================================================================== --- head/graphics/dspdfviewer/Makefile (revision 511053) +++ head/graphics/dspdfviewer/Makefile (revision 511054) @@ -1,53 +1,53 @@ # $FreeBSD$ PORTNAME= dspdfviewer PORTVERSION= 1.15.1 DISTVERSIONPREFIX= v -PORTREVISION= 19 +PORTREVISION= 20 CATEGORIES= graphics MAINTAINER= fox@FreeBSD.org COMMENT= Dual-screen PDF viewer for LaTeX-beamer LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \ libpoppler-qt5.so:graphics/poppler-qt5 USES= cmake:insource pkgconfig qt:5 USE_QT= core gui linguisttools widgets xml buildtools_build qmake_build USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= dannyedel BUILD_WRKSRC= ${WRKSRC}/build CONFIGURE_WRKSRC= ${WRKSRC}/build INSTALL_WRKSRC= ${WRKSRC}/build CMAKE_ARGS= -DBuildTests=OFF \ -DPOPPLER_LIBRARIES=${LOCALBASE}/lib/libpoppler-qt5.so PLIST_FILES= bin/dspdfviewer \ man/man1/dspdfviewer.1.gz \ share/applications/dspdfviewer.desktop .include # Build fails with LLVM 4.0. Reported upstream as #191: # https://github.com/dannyedel/dspdfviewer/issues/191 CFLAGS+= -Wno-error=undefined-func-template .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200039 CFLAGS+= -Wno-error=zero-as-null-pointer-constant .endif # Fixes build failure for Clang 8.0.0 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300014 CFLAGS+= -Wno-error=extra-semi-stmt .endif CFLAGS+= -Wno-error=redundant-parens .include Index: head/graphics/dspdfviewer/files/patch-pdfviewerwindow.cpp =================================================================== --- head/graphics/dspdfviewer/files/patch-pdfviewerwindow.cpp (nonexistent) +++ head/graphics/dspdfviewer/files/patch-pdfviewerwindow.cpp (revision 511054) @@ -0,0 +1,42 @@ + Fix graphics/dspdfviewer build w/ Qt 5.13 + + - adjust to deprecated methods + - QApplication::flush() hasn't really been a thing since Qt4, + just comment it out. + +The application looks abandoned upstream. + +Patched by adridg@freebsd.org +--- pdfviewerwindow.cpp.orig 2016-09-13 13:18:47 UTC ++++ pdfviewerwindow.cpp +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #if defined(POPPLER_QT5) && defined(_WIN32) + #include + #endif +@@ -116,7 +117,12 @@ void PDFViewerWindow::reposition() + this->windowHandle()->setScreen(0); + this->showFullScreen(); + #else +- QRect rect = QApplication::desktop()->screenGeometry( numeric_cast(getMonitor()) ); ++ auto screens = QGuiApplication::screens(); ++ int screen_number = numeric_cast(getMonitor()); ++ if ((screen_number < 0) || (screen_number >= screens.length())) { ++ screen_number = 0; ++ } ++ QRect rect = screens.at(screen_number)->geometry(); + move(rect.topLeft()); + resize( rect.size() ); + this->showFullScreen(); +@@ -381,7 +387,7 @@ void PDFViewerWindow::resizeEvent(QResizeEvent* resize + ! i3shellcode_executed + // Make sure to do this only once + ) { +- QApplication::flush(); // Make sure the window has been painted ++ // QApplication::flush(); // Make sure the window has been painted + // This is the second screen. It has now been created. + // so we should call the i3 shellcode now + const std::string shellcode = runtimeConfiguration.i3workaround_shellcode(); Property changes on: head/graphics/dspdfviewer/files/patch-pdfviewerwindow.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property