Date: Fri, 25 Mar 2016 16:29:17 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r411863 - head/graphics/digikam-kde4 Message-ID: <201603251629.u2PGTHEF009723@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603251629.u2PGTHEF009723>