From owner-svn-ports-all@freebsd.org Sun Jul 3 18:37:35 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8763CB905BF; Sun, 3 Jul 2016 18:37:35 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A0112839; Sun, 3 Jul 2016 18:37:35 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u63IbYRM083551; Sun, 3 Jul 2016 18:37:34 GMT (envelope-from brnrd@FreeBSD.org) Received: (from brnrd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u63IbYLF083550; Sun, 3 Jul 2016 18:37:34 GMT (envelope-from brnrd@FreeBSD.org) Message-Id: <201607031837.u63IbYLF083550@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brnrd set sender to brnrd@FreeBSD.org using -f From: Bernard Spil Date: Sun, 3 Jul 2016 18:37:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417988 - head/devel/jsoncpp X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2016 18:37:35 -0000 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 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 -.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