graphics/dspdfviewer: Unbreak the build for latest boost library.

Force using c++14 standard for clang when compiling with boost headers.
This commit is contained in:
Santhosh Raju 2022-08-22 02:35:52 +02:00
parent 4af6d519a7
commit 30db07f794
2 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= dspdfviewer
PORTVERSION= 1.15.1
DISTVERSIONPREFIX= v
PORTREVISION= 56
PORTREVISION= 57
CATEGORIES= graphics
MAINTAINER= fox@FreeBSD.org
@ -13,7 +13,7 @@ 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
USES= cmake:insource compiler:c++14-lang pkgconfig qt:5
USE_QT= core gui linguisttools widgets xml buildtools_build qmake_build
USE_LDCONFIG= yes

View File

@ -0,0 +1,11 @@
--- cmake/compiler_clang.cmake.orig 2022-08-22 00:23:26 UTC
+++ cmake/compiler_clang.cmake
@@ -1,7 +1,7 @@
# CMake fragment
# Clang
-add_definitions("-std=c++11")
+add_definitions("-std=c++14")
# Turn on a lot of warnings, hopefully helping with code quality.
add_definitions(-Weverything)