From owner-svn-ports-all@freebsd.org Tue Sep 6 19:44:07 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 B67DEBC6B33; Tue, 6 Sep 2016 19:44:07 +0000 (UTC) (envelope-from rakuco@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 6C69535C; Tue, 6 Sep 2016 19:44:07 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u86Ji6fW096059; Tue, 6 Sep 2016 19:44:06 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u86Ji6o4096057; Tue, 6 Sep 2016 19:44:06 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201609061944.u86Ji6o4096057@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Tue, 6 Sep 2016 19:44:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421463 - in head/devel/extra-cmake-modules: . files 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.23 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: Tue, 06 Sep 2016 19:44:07 -0000 Author: rakuco Date: Tue Sep 6 19:44:06 2016 New Revision: 421463 URL: https://svnweb.freebsd.org/changeset/ports/421463 Log: Avoid passing -std=c++0x when it is not supported Extend the check in KDECompilerSettings.cmake to only pass -std=c++0x to the compiler if it's recent enough, otherwise we risk passing that to base GCC and breaking the build of any extra-cmake-modules-dependent port using KDECompilerSettings.cmake on FreeBSD 9 (such as multimedia/qt5-phonon4). PR: 212427 Submitted by: rakuco Approved by: yuri@rawbw.com (maintainer) Added: head/devel/extra-cmake-modules/files/patch-kde-modules_KDECompilerSettings.cmake (contents, props changed) Modified: head/devel/extra-cmake-modules/Makefile Modified: head/devel/extra-cmake-modules/Makefile ============================================================================== --- head/devel/extra-cmake-modules/Makefile Tue Sep 6 19:35:13 2016 (r421462) +++ head/devel/extra-cmake-modules/Makefile Tue Sep 6 19:44:06 2016 (r421463) @@ -4,6 +4,7 @@ PORTNAME= extra-cmake-modules PORTVERSION= 5.25.0 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@rawbw.com Added: head/devel/extra-cmake-modules/files/patch-kde-modules_KDECompilerSettings.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/extra-cmake-modules/files/patch-kde-modules_KDECompilerSettings.cmake Tue Sep 6 19:44:06 2016 (r421463) @@ -0,0 +1,14 @@ +Make sure we only pass -std=c++0x if the compiler supports it (i.e. it is not base GCC). + +--- kde-modules/KDECompilerSettings.cmake.orig 2016-09-06 19:26:59 UTC ++++ kde-modules/KDECompilerSettings.cmake +@@ -181,7 +181,8 @@ if (CMAKE_C_COMPILER_ID STREQUAL "GNU" O + # compilers (in particular, MSVC 2010 does not support C99) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=iso9899:1990") + endif() +-if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") ++if ((CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.2.4") OR ++ CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") + elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" AND NOT WIN32) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")