Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2018 18:54:35 +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: r469950 - in head/games/sdl-ball: . files
Message-ID:  <201805141854.w4EIsZFc096654@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon May 14 18:54:35 2018
New Revision: 469950
URL: https://svnweb.freebsd.org/changeset/ports/469950

Log:
  - Fix build with clang60

Added:
  head/games/sdl-ball/files/patch-main.cpp   (contents, props changed)
  head/games/sdl-ball/files/patch-menu.cpp   (contents, props changed)
Modified:
  head/games/sdl-ball/Makefile

Modified: head/games/sdl-ball/Makefile
==============================================================================
--- head/games/sdl-ball/Makefile	Mon May 14 18:47:41 2018	(r469949)
+++ head/games/sdl-ball/Makefile	Mon May 14 18:54:35 2018	(r469950)
@@ -20,7 +20,7 @@ USES=		dos2unix gmake tar:xz
 USE_SDL=	sdl mixer image ttf
 USE_GL=		gl glu
 MAKE_ENV=	DATADIR=${DATADIR}/
-DOS2UNIX_FILES=	main.cpp
+DOS2UNIX_FILES=	main.cpp menu.cpp
 
 PLIST_FILES=	bin/${PORTNAME} \
 		share/applications/${PORTNAME}.desktop \

Added: head/games/sdl-ball/files/patch-main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sdl-ball/files/patch-main.cpp	Mon May 14 18:54:35 2018	(r469950)
@@ -0,0 +1,11 @@
+--- main.cpp.orig	2018-05-14 18:46:05 UTC
++++ main.cpp
+@@ -3762,7 +3762,7 @@ int main (int argc, char *argv[]) {
+ 
+   difficulty = static_difficulty;
+ 
+-  cout << "SDL-Ball v "VERSION << endl;
++  cout << "SDL-Ball v " VERSION << endl;
+ 
+   // default to "" (If this have a 0 len after trying to getenv, it defaults to ./)
+   privFile.programRoot = ""; 

Added: head/games/sdl-ball/files/patch-menu.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sdl-ball/files/patch-menu.cpp	Mon May 14 18:54:35 2018	(r469950)
@@ -0,0 +1,11 @@
+--- menu.cpp.orig	2016-08-25 16:21:38 UTC
++++ menu.cpp
+@@ -204,7 +204,7 @@ public:
+         switch(t)
+         {
+           case 0:
+-          sprintf(highScores[t], "SDL-BALL v "VERSION );
++          sprintf(highScores[t], "SDL-BALL v " VERSION );
+           break;
+           case 1:
+           sprintf(highScores[t], "-----------------------");



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