Index: branches/2020Q3/graphics/dspdfviewer/Makefile =================================================================== --- branches/2020Q3/graphics/dspdfviewer/Makefile (revision 542589) +++ branches/2020Q3/graphics/dspdfviewer/Makefile (revision 542590) @@ -1,56 +1,62 @@ # $FreeBSD$ PORTNAME= dspdfviewer PORTVERSION= 1.15.1 DISTVERSIONPREFIX= v PORTREVISION= 30 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 +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 +.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 +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200039 && ${CHOSEN_COMPILER_TYPE} == clang CFLAGS+= -Wno-error=zero-as-null-pointer-constant .endif # Fixes build failure for Clang 8.0.0 -.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1300014 || (${OSVERSION} >= 1103000 && ${OSVERSION} < 1200000) || ${OSVERSION} >= 1201000) +.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1300014 || (${OSVERSION} >= 1103000 && ${OSVERSION} < 1200000) || ${OSVERSION} >= 1201000) && ${CHOSEN_COMPILER_TYPE} == clang CFLAGS+= -Wno-error=extra-semi-stmt .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 Index: branches/2020Q3 =================================================================== --- branches/2020Q3 (revision 542589) +++ branches/2020Q3 (revision 542590) Property changes on: branches/2020Q3 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r542589