Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 20:30:32 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484219 - in head/games/rtb: . files
Message-ID:  <201811052030.wA5KUWBc008995@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Mon Nov  5 20:30:31 2018
New Revision: 484219
URL: https://svnweb.freebsd.org/changeset/ports/484219

Log:
  This port requires USES=compiler:c++11-lang, since it links with
  libgraphite.
  
  It also requires some includes, to build it with GCC7.  One of source
  files uses CRLF line endings, which necessitates USES=dos2unix.
  
  While here, add USES=gnome localbase:ldflags.
  
  PR:		232491
  Submitted by:	Piotr Kubaj

Added:
  head/games/rtb/files/patch-Robots_seek__and__destroy_seek__and__destroy.cc   (contents, props changed)
  head/games/rtb/files/patch-Robots_xt-bot_xt-bot-a.cpp   (contents, props changed)
  head/games/rtb/files/patch-Robots_xt-bot_xt-bot-b.cpp   (contents, props changed)
  head/games/rtb/files/patch-include_Dialog.h   (contents, props changed)
Modified:
  head/games/rtb/Makefile
  head/games/rtb/files/patch-team-framework__io__unixinstreambuf.cpp
  head/games/rtb/files/patch-team-framework__io__unixoutstreambuf.cpp

Modified: head/games/rtb/Makefile
==============================================================================
--- head/games/rtb/Makefile	Mon Nov  5 20:19:26 2018	(r484218)
+++ head/games/rtb/Makefile	Mon Nov  5 20:30:31 2018	(r484219)
@@ -16,16 +16,16 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	gsed:textproc/gsed
 
-USES=		compiler gettext gmake perl5 pkgconfig python:2.7 tar:bzip2
+USES=		compiler:c++11-lang dos2unix gettext gmake gnome \
+		localbase:ldflags perl5 pkgconfig python:2.7 tar:bzip2
 USE_GNOME=	gtk20
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-rtb-dir=${PREFIX}/lib/${PORTNAME}
+DOS2UNIX_FILES=	team-framework/bots/cobra/cobra_clientspecificrepository.h
 
 INFO=		RealTimeBattle
 CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
 CXXFLAGS_clang=	-Wno-c++11-narrowing
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
 
 DESKTOP_ENTRIES="${PORTNAME}" "" "" "${PORTNAME:tl}" "" ""
 

Added: head/games/rtb/files/patch-Robots_seek__and__destroy_seek__and__destroy.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rtb/files/patch-Robots_seek__and__destroy_seek__and__destroy.cc	Mon Nov  5 20:30:31 2018	(r484219)
@@ -0,0 +1,10 @@
+--- Robots/seek_and_destroy/seek_and_destroy.cc.orig	2018-10-20 20:20:40 UTC
++++ Robots/seek_and_destroy/seek_and_destroy.cc
+@@ -6,6 +6,7 @@
+ #include <unistd.h>
+ #include <signal.h>
+ #include <stdlib.h>
++#include <cstring>
+ 
+ #ifdef TIME_WITH_SYS_TIME 
+ # include <sys/time.h>

Added: head/games/rtb/files/patch-Robots_xt-bot_xt-bot-a.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rtb/files/patch-Robots_xt-bot_xt-bot-a.cpp	Mon Nov  5 20:30:31 2018	(r484219)
@@ -0,0 +1,10 @@
+--- Robots/xt-bot/xt-bot-a.cpp.orig	2018-10-20 20:32:42 UTC
++++ Robots/xt-bot/xt-bot-a.cpp
+@@ -24,6 +24,7 @@ General Public License for more details.
+ ****************************************************************************/
+ 
+ #include <iostream>
++#include <cstring>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>

Added: head/games/rtb/files/patch-Robots_xt-bot_xt-bot-b.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rtb/files/patch-Robots_xt-bot_xt-bot-b.cpp	Mon Nov  5 20:30:31 2018	(r484219)
@@ -0,0 +1,10 @@
+--- Robots/xt-bot/xt-bot-b.cpp.orig	2018-10-20 20:24:50 UTC
++++ Robots/xt-bot/xt-bot-b.cpp
+@@ -25,6 +25,7 @@ General Public License for more details.
+ ****************************************************************************/
+ 
+ #include <iostream>
++#include <cstring>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>

Added: head/games/rtb/files/patch-include_Dialog.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rtb/files/patch-include_Dialog.h	Mon Nov  5 20:30:31 2018	(r484219)
@@ -0,0 +1,10 @@
+--- include/Dialog.h.orig	2018-10-20 20:18:21 UTC
++++ include/Dialog.h
+@@ -23,6 +23,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-13
+ #ifdef HAVE_CONFIG_H
+ # include <config.h>
+ #endif
++#include <string>
+ 
+ #ifndef NO_GRAPHICS
+ 

Modified: head/games/rtb/files/patch-team-framework__io__unixinstreambuf.cpp
==============================================================================
--- head/games/rtb/files/patch-team-framework__io__unixinstreambuf.cpp	Mon Nov  5 20:19:26 2018	(r484218)
+++ head/games/rtb/files/patch-team-framework__io__unixinstreambuf.cpp	Mon Nov  5 20:30:31 2018	(r484219)
@@ -1,6 +1,12 @@
---- team-framework/io/unixinstreambuf.cpp.orig
+--- team-framework/io/unixinstreambuf.cpp.orig	2005-01-06 17:59:28 UTC
 +++ team-framework/io/unixinstreambuf.cpp
-@@ -33,6 +33,8 @@
+@@ -28,11 +28,14 @@
+ #include <common.h>
+ 
+ #include "unixinstreambuf.h"
++#include <cstring>
+ #include "../rtbglobal/masterresourcecontrol.h"
+ #include "../exceptions/keynotfoundexception.h"
  #include "../exceptions/confignotloadedexception.h"
  #include <sstream>
  #include <errno.h>

Modified: head/games/rtb/files/patch-team-framework__io__unixoutstreambuf.cpp
==============================================================================
--- head/games/rtb/files/patch-team-framework__io__unixoutstreambuf.cpp	Mon Nov  5 20:19:26 2018	(r484218)
+++ head/games/rtb/files/patch-team-framework__io__unixoutstreambuf.cpp	Mon Nov  5 20:30:31 2018	(r484219)
@@ -1,7 +1,10 @@
---- team-framework/io/unixoutstreambuf.cpp.orig
+--- team-framework/io/unixoutstreambuf.cpp.orig	2005-07-09 11:46:12 UTC
 +++ team-framework/io/unixoutstreambuf.cpp
-@@ -30,6 +30,8 @@
+@@ -28,8 +28,11 @@
+ #include <common.h>
+ 
  #include "unixoutstreambuf.h"
++#include <cstring>
  #include <sstream>
  #include <errno.h>
 +#include <sys/types.h>



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