Date: Sun, 3 Jul 2016 18:37:34 +0000 (UTC) From: Bernard Spil <brnrd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417988 - head/devel/jsoncpp Message-ID: <201607031837.u63IbYLF083550@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brnrd Date: Sun Jul 3 18:37:34 2016 New Revision: 417988 URL: https://svnweb.freebsd.org/changeset/ports/417988 Log: devel/jsoncpp: Fix build on 10.3 - Change OS version checks to compiler checks PR: 209954 Submitted by: Mathieu Simon <freebsd@simweb.ch> Modified: head/devel/jsoncpp/Makefile Modified: head/devel/jsoncpp/Makefile ============================================================================== --- head/devel/jsoncpp/Makefile Sun Jul 3 18:26:17 2016 (r417987) +++ head/devel/jsoncpp/Makefile Sun Jul 3 18:37:34 2016 (r417988) @@ -15,16 +15,17 @@ LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes GH_ACCOUNT= open-source-parsers -USES= dos2unix scons +USES= compiler:features dos2unix scons USE_LDCONFIG= yes MAKE_ARGS= platform=linux-gcc .include <bsd.port.pre.mk> -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000 -# NOTE Certain newest compiler features unlock some parts of jsoncpp API (ex. see JSON_HAS_RVALUE_REFERENCES). -# Use c++11 above to be most inclusive. +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 33 || \ + ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} >= 48 +# 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 CXXFLAGS+= --std=c++11 .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607031837.u63IbYLF083550>