pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/swift Force c++11. Use CXXFLAGS in build.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9d4e70380b7
branches:  trunk
changeset: 348046:a9d4e70380b7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jun 06 11:17:11 2016 +0000

description:
Force c++11. Use CXXFLAGS in build.

Not enough to make this build with current boost, but at least it
gets further, now fails with:

In file included from work/.buildlink/include/boost/optional/optional.hpp:35:0,
                 from work/.buildlink/include/boost/optional.hpp:15,
                 from Swiften/Parser/AttributeMap.cpp:10:
work/.buildlink/include/boost/type_traits/type_with_alignment.hpp:42:17: error: 'int128_type' in namespace 'boost' does not name a type
          boost::int128_type i128;
                 ^

diffstat:

 chat/swift/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r c7c395df1950 -r a9d4e70380b7 chat/swift/Makefile
--- a/chat/swift/Makefile       Mon Jun 06 10:52:33 2016 +0000
+++ b/chat/swift/Makefile       Mon Jun 06 11:17:11 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2016/04/11 19:01:43 ryoon Exp $
+# $NetBSD: Makefile,v 1.12 2016/06/06 11:17:11 wiz Exp $
 
 DISTNAME=      swift-3.0
 PKGREVISION=   2
@@ -15,6 +15,8 @@
 USE_LANGUAGES= c c++
 USE_TOOLS+=    pkg-config
 
+CXXFLAGS+=     -std=c++11
+
 INSTALLATION_DIRS=     ${PKGMANDIR}/man1
 
 SUBST_CLASSES+=                path
@@ -30,6 +32,7 @@
        ${ECHO} "qt=\"${QTDIR}\"" > config.py ;\
        ${ECHO} "qt5=1" >> config.py ;\
        ${ECHO} "linkflags=\"-L${PREFIX}/lib -Wl,-R${QTDIR}/lib -Wl,-R${X11BASE}/lib -Wl,-R${BUILDLINK_DIR}/lib\"" >> config.py ; \
+       ${ECHO} "ccflags=\"${CXXFLAGS}\"" >> config.py ; \
        ${ECHO} "allow_warnings=\"true\"" >> config.py ;
 
 do-build:



Home | Main Index | Thread Index | Old Index