Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2018 05:48:39 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r476219 - head/games/netherearth
Message-ID:  <201808020548.w725mdGD061938@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 \



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