Index: devel/jsoncpp/Makefile =================================================================== --- devel/jsoncpp/Makefile (revision 425164) +++ devel/jsoncpp/Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= jsoncpp DISTVERSION= 1.7.7 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@rawbw.com @@ -26,8 +27,13 @@ # Certain new compiler features unlock parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES). # Use c++11 above to be the most inclusive. USES+= compiler:c++11-lang +# lang/gcc5 fix +.if ${COMPILER_TYPE} == clang CXXFLAGS+= --std=c++11 +.else +CXXFLAGS+= --std=gnu++11 -D_GLIBCXX_USE_C99=1 .endif +.endif do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/jsoncpp Index: devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp =================================================================== --- devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp (nonexistent) +++ devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp (working copy) @@ -0,0 +1,14 @@ +--- src/lib_json/json_reader.cpp.orig 2016-10-30 21:28:16 UTC ++++ src/lib_json/json_reader.cpp +@@ -3,6 +3,11 @@ + // recognized in your jurisdiction. + // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + ++// fix for lang/gcc5+ ++#if __GNUC__ >= 5 ++#include ++#endif ++ + #if !defined(JSON_IS_AMALGAMATION) + #include + #include Property changes on: devel/jsoncpp/files/patch-src_lib__json_json__reader.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp =================================================================== --- devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp (nonexistent) +++ devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp (working copy) @@ -0,0 +1,14 @@ +--- src/lib_json/json_writer.cpp.orig 2016-10-30 21:27:18 UTC ++++ src/lib_json/json_writer.cpp +@@ -3,6 +3,11 @@ + // recognized in your jurisdiction. + // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE + ++// fix for lang/gcc5+ ++#if __GNUC__ >= 5 ++#include ++#endif ++ + #if !defined(JSON_IS_AMALGAMATION) + #include + #include "json_tool.h" Property changes on: devel/jsoncpp/files/patch-src_lib__json_json__writer.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property