Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2018 15:06:22 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473321 - in head/games/freera: . files
Message-ID:  <201806251506.w5PF6MmZ037307@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Jun 25 15:06:22 2018
New Revision: 473321
URL: https://svnweb.freebsd.org/changeset/ports/473321

Log:
  - Add LICENSE
  - Fix build with clang 6

Added:
  head/games/freera/files/patch-src_game_loadmap.cpp   (contents, props changed)
Modified:
  head/games/freera/Makefile

Modified: head/games/freera/Makefile
==============================================================================
--- head/games/freera/Makefile	Mon Jun 25 15:02:26 2018	(r473320)
+++ head/games/freera/Makefile	Mon Jun 25 15:06:22 2018	(r473321)
@@ -11,6 +11,9 @@ DISTNAME=	${PORTVERSION}_freera++_src
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Westwood red alert game engine
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/doc/gpl.txt
+
 USES=		scons
 USE_SDL=	sdl mixer
 
@@ -33,6 +36,6 @@ post-patch:
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/freera ${STAGEDIR}${PREFIX}/bin/
-	cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
+	@cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
 
 .include <bsd.port.mk>

Added: head/games/freera/files/patch-src_game_loadmap.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/freera/files/patch-src_game_loadmap.cpp	Mon Jun 25 15:06:22 2018	(r473321)
@@ -0,0 +1,11 @@
+--- src/game/loadmap.cpp.orig	2008-01-30 22:37:44 UTC
++++ src/game/loadmap.cpp
+@@ -63,7 +63,7 @@ std::ostringstream	TempString;
+         throw LoadMapError();
+     }
+ 
+-	if (missionData.player != '\0')
++	if (missionData.player != nullptr)
+ 		printf ("%s line %i: Player = %s\n", __FILE__, __LINE__, missionData.player);
+ 
+ 	if (gamemode == GAME_MODE_SINGLE_PLAYER){



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