freebsd-ports/graphics/dspdfviewer/Makefile
Tobias C. Berner 0ef82d433f graphics/poppler: update to 21.03.0
Release 21.03.0:
        core:
         * Fix parsing text in some broken pdf files. Issue #1040
         * Fix memory issue when using threads. Issue #1050
         * TextSelectionDumper: Fix getText() for space after word
         * Change signature of OutputDev:tilingPatternFill
         * Make PDFDocBuilder return a std::unique_ptr
         * Improve well formed check for shading functions
         * Fix leak in case of fread failing
         * Fix memory leak in broken file in JBIG2Stream::readGenericBitmap
         * PSOutputDev: Fix stack overflow in broken files

        glib:
         * poppler_annot_free_text_get_callout_line: Fix wrong static cast
         * poppler-structure-element: fix memleak
         * Improve documentation
         * demo: keep same visual appearance between displayed and copied text

        utils:
         * pdftotext: Add -cropbox option
         * pdftoppm: Add -progress option
         * pdftoppm: Fix rounding bug in computation of output bitmap size. Issue #927

        qt6:
         * Add missing poppler-qt6.pc.cmake

PR:		253953
Exp-run by:	antoine
2021-03-08 19:32:55 +00:00

69 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= dspdfviewer
PORTVERSION= 1.15.1
DISTVERSIONPREFIX= v
PORTREVISION= 39
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 compiler:c++11-lang 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 <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == clang
# Build fails with LLVM 4.0. Reported upstream as #191:
# https://github.com/dannyedel/dspdfviewer/issues/191
CFLAGS+= -Wno-error=undefined-func-template
.endif
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200039 && ${CHOSEN_COMPILER_TYPE} == clang
# (rene) also related to issue #191 which is still open as of 2020-10-21
CFLAGS+= -Wno-error=zero-as-null-pointer-constant
.endif
# Fixes build failure for Clang 8.0.0
.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=extra-semi-stmt
.endif
# Fixes build failure for Clang 11.0.0
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300111 && ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=suggest-destructor-override
CFLAGS+= -Wno-error=suggest-override
.endif
# Prepare for Qt5-5.15
CFLAGS+= -Wno-deprecated
.if ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=redundant-parens
.else
CFLAGS+= -Wno-error=deprecated-declarations
.endif
.include <bsd.port.post.mk>