2017-04-15 22:16:47 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dspdfviewer
|
|
|
|
PORTVERSION= 1.15.1
|
2019-09-03 05:03:33 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2021-03-08 20:32:55 +01:00
|
|
|
PORTREVISION= 39
|
2017-04-15 22:16:47 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
2019-09-03 05:03:33 +02:00
|
|
|
MAINTAINER= fox@FreeBSD.org
|
2017-04-15 22:16:47 +02:00
|
|
|
COMMENT= Dual-screen PDF viewer for LaTeX-beamer
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2019-09-03 05:03:33 +02:00
|
|
|
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \
|
|
|
|
libpoppler-qt5.so:graphics/poppler-qt5
|
2017-04-15 22:16:47 +02:00
|
|
|
|
2020-07-19 19:38:43 +02:00
|
|
|
USES= cmake:insource compiler:c++11-lang pkgconfig qt:5
|
2019-09-03 05:03:33 +02:00
|
|
|
USE_QT= core gui linguisttools widgets xml buildtools_build qmake_build
|
2017-04-15 22:16:47 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= dannyedel
|
|
|
|
|
2019-09-03 05:03:33 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/build
|
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/build
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/build
|
|
|
|
|
|
|
|
CMAKE_ARGS= -DBuildTests=OFF \
|
|
|
|
-DPOPPLER_LIBRARIES=${LOCALBASE}/lib/libpoppler-qt5.so
|
|
|
|
|
2017-04-15 22:16:47 +02:00
|
|
|
PLIST_FILES= bin/dspdfviewer \
|
2019-09-03 05:03:33 +02:00
|
|
|
man/man1/dspdfviewer.1.gz \
|
|
|
|
share/applications/dspdfviewer.desktop
|
2017-04-15 22:16:47 +02:00
|
|
|
|
2017-04-29 12:26:23 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2020-07-19 19:38:43 +02:00
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
2017-04-29 12:26:23 +02:00
|
|
|
# Build fails with LLVM 4.0. Reported upstream as #191:
|
|
|
|
# https://github.com/dannyedel/dspdfviewer/issues/191
|
|
|
|
CFLAGS+= -Wno-error=undefined-func-template
|
2020-07-19 19:38:43 +02:00
|
|
|
.endif
|
2017-04-29 12:26:23 +02:00
|
|
|
|
2020-07-19 19:38:43 +02:00
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200039 && ${CHOSEN_COMPILER_TYPE} == clang
|
2020-10-21 22:19:48 +02:00
|
|
|
# (rene) also related to issue #191 which is still open as of 2020-10-21
|
2017-08-06 14:17:52 +02:00
|
|
|
CFLAGS+= -Wno-error=zero-as-null-pointer-constant
|
|
|
|
.endif
|
|
|
|
|
2019-03-07 05:15:18 +01:00
|
|
|
# Fixes build failure for Clang 8.0.0
|
2020-10-21 23:27:41 +02:00
|
|
|
.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == clang
|
2019-09-03 05:03:33 +02:00
|
|
|
CFLAGS+= -Wno-error=extra-semi-stmt
|
2019-03-07 05:15:18 +01:00
|
|
|
.endif
|
|
|
|
|
2020-08-25 19:39:53 +02:00
|
|
|
# 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
|
|
|
|
|
2020-05-30 08:20:44 +02:00
|
|
|
# Prepare for Qt5-5.15
|
|
|
|
CFLAGS+= -Wno-deprecated
|
|
|
|
|
2020-07-19 19:38:43 +02:00
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
2018-06-07 15:36:45 +02:00
|
|
|
CFLAGS+= -Wno-error=redundant-parens
|
2020-07-19 19:38:43 +02:00
|
|
|
.else
|
|
|
|
CFLAGS+= -Wno-error=deprecated-declarations
|
|
|
|
.endif
|
2018-06-07 15:36:45 +02:00
|
|
|
|
2017-04-29 12:26:23 +02:00
|
|
|
.include <bsd.port.post.mk>
|