svn commit: r475506 - head/games/marsnomercy

Tobias Kortkamp tobik at FreeBSD.org
Sat Jul 28 07:29:01 UTC 2018


Author: tobik
Date: Sat Jul 28 07:29:00 2018
New Revision: 475506
URL: https://svnweb.freebsd.org/changeset/ports/475506

Log:
  games/marsnomercy: Fix build with Clang 6
  
  src/mars.cpp:423:29: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
          SDL_Rect mm_limit_1024 = { (mm.GetW() - (mm_border_1024->GetW() - 2)) / 2, 0,
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/marsnomercy-0.2.1_12.log
  
  - Add missing libpng dependency

Modified:
  head/games/marsnomercy/Makefile

Modified: head/games/marsnomercy/Makefile
==============================================================================
--- head/games/marsnomercy/Makefile	Sat Jul 28 07:24:55 2018	(r475505)
+++ head/games/marsnomercy/Makefile	Sat Jul 28 07:29:00 2018	(r475506)
@@ -3,7 +3,7 @@
 
 PORTNAME=	marsnomercy
 PORTVERSION=	0.2.1
-PORTREVISION=	12
+PORTREVISION=	13
 CATEGORIES=	games
 MASTER_SITES=	SF/mars/mars/${PORTVERSION}
 DISTNAME=	mars-${PORTVERSION}-src
@@ -14,11 +14,15 @@ COMMENT=	Turn-based strategy game setting on Mars
 LICENSE=	GPLv2 # version unspecified actually
 
 BUILD_DEPENDS=	scons:devel/scons
+LIB_DEPENDS=	libpng.so:graphics/png
 
+USES=		compiler
 USE_GL=		gl
 USE_SDL=	sdl image ttf
 SCONS_ARGS=	prefix=${PREFIX}
 
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
 SUB_FILES=	mars-nomercy pkg-message
 WRKSRC=		${WRKDIR}/mars-${PORTVERSION}
 


More information about the svn-ports-all mailing list