Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 20:31:47 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484220 - in head/games/torcs: . files
Message-ID:  <201811052031.wA5KVlWx010115@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Mon Nov  5 20:31:46 2018
New Revision: 484220
URL: https://svnweb.freebsd.org/changeset/ports/484220

Log:
  Fails with base GCC, needs to have USES=compiler:c++11-lang.
  
  Additionally, a fix for isnan() being not detected.
  
  Also, add USES=gl.
  
  PR:		232680
  Submitted by:	Piotr Kubaj
  Approved by:	maintainer

Added:
  head/games/torcs/files/patch-src_drivers_olethros_geometry.cpp   (contents, props changed)
Modified:
  head/games/torcs/Makefile

Modified: head/games/torcs/Makefile
==============================================================================
--- head/games/torcs/Makefile	Mon Nov  5 20:30:31 2018	(r484219)
+++ head/games/torcs/Makefile	Mon Nov  5 20:31:46 2018	(r484220)
@@ -19,7 +19,8 @@ RUN_DEPENDS=	bash:shells/bash
 
 MAKE_JOBS_UNSAFE=	yes
 
-USES=		compiler:c++11-lang cpe gmake openal:al,alut shebangfix tar:bzip2
+USES=		compiler:c++11-lang cpe gl gmake openal:al,alut shebangfix \
+		tar:bzip2
 CPE_VENDOR=	bernhard_wymann
 SHEBANG_FILES=	src/tools/accc/accc.in src/tools/nfsperf/nfsperf.in \
 		src/tools/texmapper/texmapper.in src/tools/nfs2ac/nfs2ac.in \

Added: head/games/torcs/files/patch-src_drivers_olethros_geometry.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/torcs/files/patch-src_drivers_olethros_geometry.cpp	Mon Nov  5 20:31:46 2018	(r484220)
@@ -0,0 +1,11 @@
+--- src/drivers/olethros/geometry.cpp.orig	2018-10-25 14:35:19 UTC
++++ src/drivers/olethros/geometry.cpp
+@@ -370,7 +370,7 @@ void EstimateSphere (std::vector<Vector> P, Parametric
+ 				}
+ 				delta_total += delta;
+ 			}
+-			if (isnan(r)) {
++			if (std::isnan(r)) {
+ 				for (i=0; i<d; i++) {
+ 					center[i] =  ((*(sphere->C))[i] - mean[i]) / scale;
+ 				}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811052031.wA5KVlWx010115>