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
This commit is contained in:
Mark Linimon 2018-11-05 20:31:46 +00:00
parent e54d3ef7e2
commit 4ffa3a21d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484220
2 changed files with 13 additions and 1 deletions

View File

@ -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 \

View File

@ -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;
}