svn commit: r476219 - head/games/netherearth

Tobias Kortkamp tobik at FreeBSD.org
Thu Aug 2 05:48:39 UTC 2018


Author: tobik
Date: Thu Aug  2 05:48:38 2018
New Revision: 476219
URL: https://svnweb.freebsd.org/changeset/ports/476219

Log:
  games/netherearth: Fix build with Clang 6
  
  bullet.cpp:184:7: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
                                    bullet->pos.x,bullet->pos.y,0.3,1};
                                    ^~~~~~~~~~~~~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475964_s336959/logs/errors/netherearth-0.51_9.log
  
  - While here add missing dependencies

Modified:
  head/games/netherearth/Makefile

Modified: head/games/netherearth/Makefile
==============================================================================
--- head/games/netherearth/Makefile	Thu Aug  2 05:33:16 2018	(r476218)
+++ head/games/netherearth/Makefile	Thu Aug  2 05:48:38 2018	(r476219)
@@ -3,7 +3,7 @@
 
 PORTNAME=	netherearth
 PORTVERSION=	0.51
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	games
 MASTER_SITES=	http://move.kirishi.ru/soft/netherearth/
 
@@ -12,8 +12,12 @@ COMMENT=	Remake of the first real time strategy game o
 
 GNU_CONFIGURE=	yes
 
-USE_GL=		glut
+USES=		compiler
+USE_GL=		gl glu glut
 USE_SDL=	sdl mixer
+
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
 
 pre-install:
 	if [ ! -d ${STAGEDIR}${PREFIX}/share/netherearth ] ; then \


More information about the svn-ports-all mailing list