Index: head/graphics/poppler/Makefile =================================================================== --- head/graphics/poppler/Makefile (revision 529739) +++ head/graphics/poppler/Makefile (revision 529740) @@ -1,96 +1,97 @@ # Created by: marcus@FreeBSD.org # $FreeBSD$ PORTNAME= poppler DISTVERSION= 0.86.1 +PORTREVISION?= 1 CATEGORIES= graphics print MASTER_SITES= https://poppler.freedesktop.org/ MAINTAINER?= desktop@FreeBSD.org COMMENT?= PDF rendering library LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libnspr4.so:devel/nspr \ liblcms2.so:graphics/lcms2 \ libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libfreetype.so:print/freetype2 \ libnss3.so:security/nss \ libfontconfig.so:x11-fonts/fontconfig RUN_DEPENDS= poppler-data>0:graphics/poppler-data USES= compiler:c++11-lang cpe cmake:insource gnome jpeg libtool \ localbase pathfix pkgconfig tar:xz CPE_VENDOR= freedesktop USE_GNOME= cairo libxml2 USE_LDCONFIG= yes CMAKE_ON= ENABLE_LIBJPEG \ ENABLE_LIBPNG \ ENABLE_LIBTIFF \ ENABLE_UNSTABLE_API_ABI_HEADERS \ ENABLE_ZLIB \ ENABLE_NSS \ ENABLE_SPLASH CMAKE_OFF= BUILD_GTK_TESTS # Slave ports. _POPPLER_SLAVES= library glib qt5 utils _SLAVE_PORT?= library # Activate the wanted module, and deactivate the others. CMAKE_ON+= ENABLE_${_SLAVE_PORT:tu} CMAKE_OFF+= ${_POPPLER_SLAVES:N${_SLAVE_PORT}:tu:S/^/ENABLE_/} .if ${_SLAVE_PORT} == library PORTSCOUT= limitw:1,even USES+= iconv CMAKE_ON+= ENABLE_CPP PLIST_SUB+= SHLIB_VER=97 OPTIONS_DEFINE= CURL OPENJPEG OPTIONS_DEFAULT= OPENJPEG OPTIONS_SUB= yes .else PORTSCOUT= ignore:1 LIB_DEPENDS+= libpoppler.so:graphics/poppler PKGNAMESUFFIX= -${_SLAVE_PORT} BUILD_WRKSRC= ${WRKSRC}/${_SLAVE_PORT} INSTALL_WRKSRC= ${WRKSRC}/${_SLAVE_PORT} CMAKE_ARGS+= -DENABLE_LIBOPENJPEG:STRING="none" \ -DENABLE_LIBCURL:BOOL=FALSE . if ${_SLAVE_PORT} == glib USE_GNOME+= glib20 introspection:Build . elif ${_SLAVE_PORT} == qt5 USES+= qt:5 USE_QT= core gui widgets xml \ buildtools_build qmake_build testlib_build . elif ${_SLAVE_PORT} == utils LIB_DEPENDS+= libpoppler-glib.so:graphics/poppler-glib USES+= gnome . endif .endif CURL_CMAKE_BOOL= ENABLE_LIBCURL CURL_LIB_DEPENDS= libcurl.so:ftp/curl OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg OPENJPEG_CMAKE_ON= -DENABLE_LIBOPENJPEG:STRING="openjpeg2" OPENJPEG_CMAKE_OFF= -DENABLE_LIBOPENJPEG:STRING="none" post-install: .if ${_SLAVE_PORT} == glib ${INSTALL_DATA} ${WRKSRC}/poppler-glib.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig .elif ${_SLAVE_PORT} == qt5 ${INSTALL_DATA} ${WRKSRC}/poppler-qt5.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig .endif .include Index: head/graphics/poppler/files/patch-glib_poppler-action.cc =================================================================== --- head/graphics/poppler/files/patch-glib_poppler-action.cc (nonexistent) +++ head/graphics/poppler/files/patch-glib_poppler-action.cc (revision 529740) @@ -0,0 +1,51 @@ +--- glib/poppler-action.cc.orig 2020-03-01 19:52:52 UTC ++++ glib/poppler-action.cc +@@ -627,39 +627,39 @@ _poppler_action_new (PopplerDocument *document, + switch (link->getKind ()) { + case actionGoTo: + action->type = POPPLER_ACTION_GOTO_DEST; +- build_goto_dest (document, action, dynamic_cast (link)); ++ build_goto_dest (document, action, static_cast (link)); + break; + case actionGoToR: + action->type = POPPLER_ACTION_GOTO_REMOTE; +- build_goto_remote (action, dynamic_cast (link)); ++ build_goto_remote (action, static_cast (link)); + break; + case actionLaunch: + action->type = POPPLER_ACTION_LAUNCH; +- build_launch (action, dynamic_cast (link)); ++ build_launch (action, static_cast (link)); + break; + case actionURI: + action->type = POPPLER_ACTION_URI; +- build_uri (action, dynamic_cast (link)); ++ build_uri (action, static_cast (link)); + break; + case actionNamed: + action->type = POPPLER_ACTION_NAMED; +- build_named (action, dynamic_cast (link)); ++ build_named (action, static_cast (link)); + break; + case actionMovie: + action->type = POPPLER_ACTION_MOVIE; +- build_movie (document, action, dynamic_cast (link)); ++ build_movie (document, action, static_cast (link)); + break; + case actionRendition: + action->type = POPPLER_ACTION_RENDITION; +- build_rendition (action, dynamic_cast (link)); ++ build_rendition (action, static_cast (link)); + break; + case actionOCGState: + action->type = POPPLER_ACTION_OCG_STATE; +- build_ocg_state (document, action, dynamic_cast (link)); ++ build_ocg_state (document, action, static_cast (link)); + break; + case actionJavaScript: + action->type = POPPLER_ACTION_JAVASCRIPT; +- build_javascript (action, dynamic_cast (link)); ++ build_javascript (action, static_cast (link)); + break; + case actionUnknown: + default: Property changes on: head/graphics/poppler/files/patch-glib_poppler-action.cc ___________________________________________________________________ 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 Index: head/graphics/poppler/files/patch-utils_HtmlOutputDev.cc =================================================================== --- head/graphics/poppler/files/patch-utils_HtmlOutputDev.cc (nonexistent) +++ head/graphics/poppler/files/patch-utils_HtmlOutputDev.cc (revision 529740) @@ -0,0 +1,11 @@ +--- utils/HtmlOutputDev.cc.orig 2020-03-01 19:52:52 UTC ++++ utils/HtmlOutputDev.cc +@@ -1838,7 +1838,7 @@ int HtmlOutputDev::getOutlinePageNum(OutlineItem *item + if (!action || action->getKind() != actionGoTo) + return pagenum; + +- link = dynamic_cast(action); ++ link = static_cast(action); + + if (!link || !link->isOk()) + return pagenum; Property changes on: head/graphics/poppler/files/patch-utils_HtmlOutputDev.cc ___________________________________________________________________ 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 Index: head/graphics/poppler-glib/Makefile =================================================================== --- head/graphics/poppler-glib/Makefile (revision 529739) +++ head/graphics/poppler-glib/Makefile (revision 529740) @@ -1,12 +1,12 @@ # Created by: Michael Johnson # $FreeBSD$ -PORTREVISION= 1 +PORTREVISION= 2 COMMENT= GLib bindings to poppler MASTERDIR= ${.CURDIR}/../../graphics/poppler _SLAVE_PORT= glib PLIST= ${.CURDIR}/pkg-plist .include "${MASTERDIR}/Makefile" Index: head/graphics/poppler-qt5/Makefile =================================================================== --- head/graphics/poppler-qt5/Makefile (revision 529739) +++ head/graphics/poppler-qt5/Makefile (revision 529740) @@ -1,12 +1,12 @@ # $FreeBSD$ -PORTREVISION= 0 +PORTREVISION= 1 PKGNAMESUFFIX= -qt5 COMMENT= Qt 5 bindings to poppler MASTERDIR= ${.CURDIR}/../../graphics/poppler _SLAVE_PORT= qt5 PLIST= ${.CURDIR}/pkg-plist .include "${MASTERDIR}/Makefile" Index: head/graphics/poppler-utils/Makefile =================================================================== --- head/graphics/poppler-utils/Makefile (revision 529739) +++ head/graphics/poppler-utils/Makefile (revision 529740) @@ -1,12 +1,12 @@ # Created by: Michael Nottebrock # $FreeBSD$ -PORTREVISION= 0 +PORTREVISION= 1 COMMENT= Poppler's xpdf-workalike command line utilities # ' MASTERDIR= ${.CURDIR}/../../graphics/poppler _SLAVE_PORT= utils PLIST= ${.CURDIR}/pkg-plist .include "${MASTERDIR}/Makefile"