freebsd-ports/graphics/dspdfviewer/Makefile
Tobias C. Berner f4566d704a graphics/poppler: update to 0.81.0
Release 0.81.0:
        core:
         * Splash: Always enable support for CMYK rasterization
         * CairoOutputDev: Check scaled dimensions for 0. Issue #737
         * BaseCryptStream: Fix potential uninitialized memory read
         * SplashBitmap: Fix wrong width condition for splashModeDeviceN8
         * Fix crashes in malformed files

PR:		240781
Exp-run by:	antoine
Approved by:	gnome (kwm, implicit)
2019-09-29 07:25:04 +00:00

53 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= dspdfviewer
PORTVERSION= 1.15.1
DISTVERSIONPREFIX= v
PORTREVISION= 21
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 <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>