freebsd-ports/graphics/dspdfviewer/Makefile
Tobias C. Berner a5b210399a graphics/poppler: update to 0.79.0
Release 0.79.0:
        core:
         * Fix regression on TextSelectionPainter
         * Fix parsing of DefaultAppearance
         * Fix memory leak in PostScriptFunction
         * Fix crashes in fuzzed files

        qt5:
         * Implemented support for setIcon by changing appearance
         * Added option to set the form available to print
         * QString::null is deprecated, use QString()
         * Replace deprecated qStableSort with std::stable_sort

        build system:
         * Turn README into README.md and expand it

PR:		239277
Exp-run by:	antoine
Approved by:	gnome (kwm, implicit)
2019-07-31 21:14:15 +00:00

51 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= dspdfviewer
PORTVERSION= 1.15.1
DISTVERSIONPREFIX=v
PORTREVISION= 17
CATEGORIES= graphics
MAINTAINER= santhosh.raju@gmail.com
COMMENT= Dual-screen PDF viewer for LaTeX-beamer
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 \
libboost_program_options.so:devel/boost-libs
BUILD_WRKSRC= ${WRKSRC}/build
CONFIGURE_WRKSRC= ${WRKSRC}/build
INSTALL_WRKSRC= ${WRKSRC}/build
USES= cmake:insource pkgconfig qt:5
USE_QT= buildtools_build core gui qmake_build linguisttools widgets xml
CMAKE_ARGS= -DPOPPLER_LIBRARIES=${LOCALBASE}/lib/libpoppler-qt5.so -DBuildTests=OFF
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= dannyedel
PLIST_FILES= bin/dspdfviewer \
share/applications/dspdfviewer.desktop \
man/man1/dspdfviewer.1.gz
.include <bsd.port.pre.mk>
# 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 <bsd.port.post.mk>