From 1081e090d5f5144eee782ae7160c163e9e9da305 Mon Sep 17 00:00:00 2001 From: rakuco Date: Fri, 25 Mar 2016 16:29:17 +0000 Subject: Add USES=compiler:c++11-lang. This fixes digikam-kde4's build on 9.3 after the graphics/lensfun update in r411373. lensfun.h includes C++ code (class and template declarations) inside an extern "C" block that causes base GCC to fail: /usr/local/include/lensfun/lensfun.h:2506: error: template with C linkage /usr/local/include/lensfun/lensfun.h:2508: error: template with C linkage --- graphics/digikam-kde4/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/digikam-kde4/Makefile b/graphics/digikam-kde4/Makefile index c76a754eefa8..72a2439ad7b5 100644 --- a/graphics/digikam-kde4/Makefile +++ b/graphics/digikam-kde4/Makefile @@ -24,7 +24,9 @@ LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff \ libkgeomap.so:${PORTSDIR}/astro/libkgeomap \ libboost_graph.so:${PORTSDIR}/devel/boost-libs -USES+= pkgconfig shebangfix +# compiler:c++11-lang is necessary because graphics/lensfun's lensfun.h +# contains C++ code inside an extern "C" block that base GCC cannot handle. +USES+= compiler:c++11-lang pkgconfig shebangfix USE_KDE4+= libkdcraw libkexiv2 libkipi USE_QT4+= sql-sqlite3_run USE_LDCONFIG= yes -- cgit