svn commit: r417988 - head/devel/jsoncpp

Bernard Spil brnrd at FreeBSD.org
Sun Jul 3 18:37:35 UTC 2016


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 at 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


More information about the svn-ports-all mailing list