From owner-svn-ports-head@FreeBSD.ORG Tue May 5 00:10:19 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 125D977; Tue, 5 May 2015 00:10:19 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 DAD331A96; Tue, 5 May 2015 00:10:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t450AIoZ032135; Tue, 5 May 2015 00:10:18 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t450AIrO032128; Tue, 5 May 2015 00:10:18 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201505050010.t450AIrO032128@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 5 May 2015 00:10:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385434 - in head/games/wxlauncher: . 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2015 00:10:19 -0000 Author: jbeich Date: Tue May 5 00:10:17 2015 New Revision: 385434 URL: https://svnweb.freebsd.org/changeset/ports/385434 Log: games/wxlauncher: unbreak WX3 option on DragonFly and FreeBSD 8.x/9.x After r383466 building against wxgtk30 only worked with clang/libc++ because libstdc++ 4.2 in base lacks C++11 support while newer libstdc++ (from lang/gcc* or in base on DragonFly) requires explicit -std=c++11. Also, -std=c++11 on FreeBSD turns NULL into nullptr which sometimes breaks build. PR: 199916 Approved by: lightside (maintainer) Added: head/games/wxlauncher/files/patch-code_apis_ProfileManager.cpp (contents, props changed) Modified: head/games/wxlauncher/Makefile (contents, props changed) Modified: head/games/wxlauncher/Makefile ============================================================================== --- head/games/wxlauncher/Makefile Tue May 5 00:09:51 2015 (r385433) +++ head/games/wxlauncher/Makefile Tue May 5 00:10:17 2015 (r385434) @@ -40,6 +40,8 @@ JOYSTICK_DESC= Build with joystick suppo JOYSTICK_CMAKE_ON= -DUSE_JOYSTICK:BOOL=ON JOYSTICK_CMAKE_OFF= -DUSE_JOYSTICK:BOOL=OFF WX3_DESC= Build with using wxWidgets 3.0+ version (2.8 otherwise) +WX3_CXXFLAGS= -std=c++11 +WX3_USES= compiler:c++11-lib WX3_USE= WX=3.0+ WX3_USE_OFF= WX=2.8 Added: head/games/wxlauncher/files/patch-code_apis_ProfileManager.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/wxlauncher/files/patch-code_apis_ProfileManager.cpp Tue May 5 00:10:17 2015 (r385434) @@ -0,0 +1,11 @@ +--- code/apis/ProfileManager.cpp.orig 2015-01-28 04:29:37 UTC ++++ code/apis/ProfileManager.cpp +@@ -307,7 +307,7 @@ void ProMan::LoadNewsMapFromGlobalProfil + if (globalProfile->Read(GBL_CFG_NET_THE_NEWS, &theNews) && + (globalProfile->Read(GBL_CFG_NET_NEWS_LAST_TIME, &lastDownloadNewsStr))) { + if ((!theNews.IsEmpty()) && +- (NULL != lastDownloadNews.ParseFormat( ++ (0 != lastDownloadNews.ParseFormat( + lastDownloadNewsStr, NEWS_LAST_TIME_FORMAT))) { + newsMap[groupName] = NewsData(theNews, lastDownloadNews); +