svn commit: r475866 - head/games/dangerdeep
Tobias Kortkamp
tobik at FreeBSD.org
Mon Jul 30 08:02:36 UTC 2018
Author: tobik
Date: Mon Jul 30 08:02:34 2018
New Revision: 475866
URL: https://svnweb.freebsd.org/changeset/ports/475866
Log:
games/dangerdeep: Fix build with Clang 6
src/freeview_display.cpp:344:27: error: non-constant-expression cannot be narrowed from type 'double' to 'GLfloat' (aka 'float') in initializer list [-Wc++11-narrowing]
GLfloat lposition[4] = { sundir.x, sundir.y, sundir.z, 0.0f };
^~~~~~~~
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/dangerdeep-0.3.0_14.log
Modified:
head/games/dangerdeep/Makefile
Modified: head/games/dangerdeep/Makefile
==============================================================================
--- head/games/dangerdeep/Makefile Mon Jul 30 07:23:24 2018 (r475865)
+++ head/games/dangerdeep/Makefile Mon Jul 30 08:02:34 2018 (r475866)
@@ -14,10 +14,12 @@ COMMENT= Open source World War II German submarine sim
LIB_DEPENDS= libfftw3.so:math/fftw3
RUN_DEPENDS= dangerdeep-data>0:games/dangerdeep-data
-USES= scons
+USES= compiler scons
USE_GL= yes
USE_SDL= sdl mixer image net
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
MAKE_ARGS= installbindir=${PREFIX}/bin installdatadir=${DATADIR}
MAKE_ENV= X11BASE=${LOCALBASE}
More information about the svn-ports-all
mailing list