svn commit: r411863 - head/graphics/digikam-kde4

Raphael Kubo da Costa rakuco at FreeBSD.org
Fri Mar 25 16:29:18 UTC 2016


Author: rakuco
Date: Fri Mar 25 16:29:17 2016
New Revision: 411863
URL: https://svnweb.freebsd.org/changeset/ports/411863

Log:
  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

Modified:
  head/graphics/digikam-kde4/Makefile

Modified: head/graphics/digikam-kde4/Makefile
==============================================================================
--- head/graphics/digikam-kde4/Makefile	Fri Mar 25 16:29:06 2016	(r411862)
+++ head/graphics/digikam-kde4/Makefile	Fri Mar 25 16:29:17 2016	(r411863)
@@ -24,7 +24,9 @@ LIB_DEPENDS=	libtiff.so:${PORTSDIR}/grap
 		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


More information about the svn-ports-all mailing list