View | Details | Raw Unified | Return to bug 87534
Collapse All | Expand All

(-)games/rtb/Makefile (-18 / +12 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	RealTimeBattle
8
PORTNAME=	RealTimeBattle
9
PORTVERSION=	1.0.7
9
PORTVERSION=	1.0.8
10
PORTREVISION=	1
11
CATEGORIES=	games
10
CATEGORIES=	games
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	${PORTNAME:L}
12
MASTER_SITE_SUBDIR=	${PORTNAME:L}
Lines 18-26 Link Here
18
17
19
BUILD_DEPENDS=	gsed:${PORTSDIR}/textproc/gsed
18
BUILD_DEPENDS=	gsed:${PORTSDIR}/textproc/gsed
20
19
20
USE_BZIP2=	yes
21
USE_X_PREFIX=	yes
21
USE_X_PREFIX=	yes
22
USE_GNOME=	gnometarget gtk20
22
USE_GNOME=	gnometarget gtk20
23
USE_GCC=	3.4
23
USE_GCC=	3.4+
24
USE_PERL5=	yes
24
USE_PERL5=	yes
25
USE_GETOPT_LONG=	yes
25
USE_GETOPT_LONG=	yes
26
USE_REINPLACE=	yes
26
USE_REINPLACE=	yes
Lines 29-55 Link Here
29
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
29
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
30
CONFIGURE_ARGS=	--with-rtb-dir=${PREFIX}/lib/${PORTNAME}
30
CONFIGURE_ARGS=	--with-rtb-dir=${PREFIX}/lib/${PORTNAME}
31
31
32
CXXFLAGS+=	-fpermissive
33
34
CPPFLAGS=	-I${LOCALBASE}/include -DHAVE_DECL_GETOPT
32
CPPFLAGS=	-I${LOCALBASE}/include -DHAVE_DECL_GETOPT
35
LDFLAGS=	-L${LOCALBASE}/lib -lintl
33
LDFLAGS=	-L${LOCALBASE}/lib
36
34
37
post-patch:
35
post-patch:
38
.for file in include/Various.h src/ArenaBase.cc src/GeometricalObjects.cc \
36
.for file in configure
39
	src/Options.cc src/Robot.cc src/StartTournamentWindow.cc \
37
	@${REINPLACE_CMD} -e '/test/s| == | = |g ; \
40
	src/StatisticsWindow.cc src/Various.cc
38
		 s|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \
41
	@${REINPLACE_CMD} -E -e 's|min[[:space:]]*\(|Min(|g ; \
39
		 s|\\$${top_builddir}/intl/libintl.a|-lintl|g' ${WRKSRC}/${file}
42
		 s|max[[:space:]]*\(|Max\(|g' ${WRKSRC}/${file}
43
.endfor
40
.endfor
44
.for file in src/ArenaRealTime.cc
41
.for file in Makefile.in
45
	@${REINPLACE_CMD} -E -e 's|\(int\*\)|int\*|g' ${WRKSRC}/${file}
42
	@${REINPLACE_CMD} -e '/^SUBDIRS/s|Documentation||g' ${WRKSRC}/${file}
46
.endfor
43
.endfor
47
.for file in rtb-team-framework/createrobot.sh \
44
.for file in team-framework/createrobot.sh \
48
	rtb-team-framework/createrobotconf.sh
45
	team-framework/createrobotconf.sh
49
	@${REINPLACE_CMD} -e 's| sed| gsed|g' ${WRKSRC}/${file}
46
	@${REINPLACE_CMD} -e 's| sed| gsed|g' ${WRKSRC}/${file}
50
.endfor
51
.for file in Makefile.in
52
	@${REINPLACE_CMD} -e 's|intl Documentation||g' ${WRKSRC}/${file}
53
.endfor
47
.endfor
54
48
55
post-install:
49
post-install:
(-)games/rtb/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (RealTimeBattle-1.0.7-Ext.tar.gz) = 748316e5902add936d2855478743c456
1
MD5 (RealTimeBattle-1.0.8-Ext.tar.bz2) = 5d4d7cfc0628f8e106bcfa052af94db8
2
SIZE (RealTimeBattle-1.0.7-Ext.tar.gz) = 1238215
2
SIZE (RealTimeBattle-1.0.8-Ext.tar.bz2) = 1060840
(-)games/rtb/files/patch-include::List.h (-29 lines)
Lines 1-29 Link Here
1
--- include/List.h.orig	Tue Sep 21 15:50:15 2004
2
+++ include/List.h	Tue Sep 21 17:22:32 2004
3
@@ -96,7 +96,7 @@
4
 inline T*
5
 ListIterator<T>::operator() () const
6
 {
7
-  if ( listp == NULL ) Error(true, "NULL pointer", "ListIterator::operator()");
8
+  if ( listp == NULL ) Error(true, (const String&)"NULL pointer", (const String&)"ListIterator::operator()");
9
 
10
   return listp->element;
11
 }
12
@@ -105,7 +105,7 @@
13
 inline const ListIterator<T>&
14
 ListIterator<T>::operator++ (int)
15
 {
16
-  if ( listp == NULL ) Error(true, "NULL pointer", "ListIterator::operator++");
17
+  if ( listp == NULL ) Error(true, (const String&)"NULL pointer", (const String&)"ListIterator::operator++");
18
   listp = listp->next;
19
   return *this;
20
 }
21
@@ -114,7 +114,7 @@
22
 inline const ListIterator<T>&
23
 ListIterator<T>::operator-- (int)
24
 {
25
-  if ( listp == NULL ) Error(true, "NULL pointer", "ListIterator::operator--");
26
+  if ( listp == NULL ) Error(true, (const String&)"NULL pointer", (const String&)"ListIterator::operator--");
27
   listp = listp->prev;
28
   return *this;
29
 }
(-)games/rtb/files/patch-include::fdstream.h (-18 lines)
Lines 1-18 Link Here
1
--- include/fdstream.h.orig	Thu Sep 18 02:35:57 2003
2
+++ include/fdstream.h	Sat Mar 13 02:07:54 2004
3
@@ -28,9 +28,15 @@
4
 #ifndef BOOST_FDSTREAM_HPP
5
 #define BOOST_FDSTREAM_HPP
6
 
7
+#if defined __GNUC__ && __GNUC__ < 3
8
+#include <istream.h>
9
+#include <ostream.h>
10
+#include <streambuf.h>
11
+#else
12
 #include <istream>
13
 #include <ostream>
14
 #include <streambuf>
15
+#endif
16
 // for EOF:
17
 #include <cstdio>
18
 // for memmove():
(-)games/rtb/files/patch-rtb-team-framework::io::unixinstreambuf.cpp (-10 lines)
Lines 1-10 Link Here
1
--- rtb-team-framework/io/unixinstreambuf.cpp.orig	Wed Nov  3 05:09:04 2004
2
+++ rtb-team-framework/io/unixinstreambuf.cpp	Fri Dec 17 01:33:22 2004
3
@@ -29,6 +29,7 @@
4
 #include "../exceptions/keynotfoundexception.h"
5
 #include "../exceptions/confignotloadedexception.h"
6
 #include <sstream>
7
+#include <cerrno>
8
 
9
 /**
10
  * Namespace
(-)games/rtb/files/patch-rtb-team-framework::io::unixoutstreambuf.cpp (-10 lines)
Lines 1-10 Link Here
1
--- rtb-team-framework/io/unixoutstreambuf.cpp.orig	Wed Nov  3 05:09:04 2004
2
+++ rtb-team-framework/io/unixoutstreambuf.cpp	Fri Dec 17 01:34:44 2004
3
@@ -26,6 +26,7 @@
4
 
5
 #include "unixoutstreambuf.h"
6
 #include <sstream>
7
+#include <cerrno>
8
 
9
 /**
10
  * Namespace
(-)games/rtb/files/patch-src::String.cc (-19 lines)
Lines 1-19 Link Here
1
--- src/String.cc.orig	Fri Nov 12 22:04:38 2004
2
+++ src/String.cc	Tue Jan 11 02:28:46 2005
3
@@ -21,12 +21,13 @@
4
 #include <config.h>
5
 #endif
6
 
7
-#include <string.h>
8
+#include <cstring>
9
 #include <iostream>
10
 //#include <strstream>
11
 #include <iomanip>
12
-#include <stdlib.h>
13
-#include <ctype.h>
14
+#include <cstdio>
15
+#include <cstdlib>
16
+#include <cctype>
17
 
18
 using namespace std;
19
 
(-)games/rtb/pkg-plist (-31 / +63 lines)
Lines 20-42 Link Here
20
lib/RealTimeBattle/Arenas/my_Star.arena
20
lib/RealTimeBattle/Arenas/my_Star.arena
21
lib/RealTimeBattle/Arenas/my_Star2.arena
21
lib/RealTimeBattle/Arenas/my_Star2.arena
22
lib/RealTimeBattle/RealTimeBattle.xpm
22
lib/RealTimeBattle/RealTimeBattle.xpm
23
lib/RealTimeBattle/Robots/Brotfrucht-Robot1-TeamOne.robot
23
lib/RealTimeBattle/Robots/Brotfrucht-Blaubeere-Fruchtteam.robot
24
lib/RealTimeBattle/Robots/Brotfrucht-Robot1-TeamTwo.robot
24
lib/RealTimeBattle/Robots/Brotfrucht-Erdbeere-Fruchtteam.robot
25
lib/RealTimeBattle/Robots/Brotfrucht-Robot2-TeamOne.robot
25
lib/RealTimeBattle/Robots/Brotfrucht-Gerstenbrot-Brotteam.robot
26
lib/RealTimeBattle/Robots/Brotfrucht-Robot2-TeamTwo.robot
26
lib/RealTimeBattle/Robots/Brotfrucht-Heidelbeere-Fruchtteam.robot
27
lib/RealTimeBattle/Robots/Brotfrucht-Robot3-TeamOne.robot
27
lib/RealTimeBattle/Robots/Brotfrucht-Himbeere-Fruchtteam.robot
28
lib/RealTimeBattle/Robots/Brotfrucht-Robot3-TeamTwo.robot
28
lib/RealTimeBattle/Robots/Brotfrucht-Mischbrot-Brotteam.robot
29
lib/RealTimeBattle/Robots/Brotfrucht-Robot4-TeamOne.robot
29
lib/RealTimeBattle/Robots/Brotfrucht-Roggenbrot-Brotteam.robot
30
lib/RealTimeBattle/Robots/Brotfrucht-Robot4-TeamTwo.robot
30
lib/RealTimeBattle/Robots/Brotfrucht-Stachelbeere-Fruchtteam.robot
31
lib/RealTimeBattle/Robots/Brotfrucht-Robot5-TeamOne.robot
31
lib/RealTimeBattle/Robots/Brotfrucht-Toastbrot-Brotteam.robot
32
lib/RealTimeBattle/Robots/Brotfrucht-Robot5-TeamTwo.robot
32
lib/RealTimeBattle/Robots/Brotfrucht-Weizenbrot-Brotteam.robot
33
lib/RealTimeBattle/Robots/Cobra-Adder-AnacondaLike.robot
34
lib/RealTimeBattle/Robots/Cobra-Anaconda-AnacondaLike.robot
35
lib/RealTimeBattle/Robots/Cobra-Boa-AnacondaLike.robot
36
lib/RealTimeBattle/Robots/Cobra-Cobra-CobraLike.robot
37
lib/RealTimeBattle/Robots/Cobra-CoralSnake-CobraLike.robot
38
lib/RealTimeBattle/Robots/Cobra-Krait-CobraLike.robot
39
lib/RealTimeBattle/Robots/Cobra-Mamba-CobraLike.robot
40
lib/RealTimeBattle/Robots/Cobra-Python-AnacondaLike.robot
41
lib/RealTimeBattle/Robots/Cobra-TigerSnake-CobraLike.robot
42
lib/RealTimeBattle/Robots/Cobra-Viper-AnacondaLike.robot
43
lib/RealTimeBattle/Robots/Columbus-Cabral-Portugal.robot
44
lib/RealTimeBattle/Robots/Columbus-Cortez-Spain.robot
45
lib/RealTimeBattle/Robots/Columbus-Pizarro-Spain.robot
46
lib/RealTimeBattle/Robots/Columbus-Vasco_da_Gama-Portugal.robot
47
lib/RealTimeBattle/Robots/Columbus-Vespucci-Spain.robot
48
lib/RealTimeBattle/Robots/Columbus-Zarco-Portugal.robot
33
lib/RealTimeBattle/Robots/empty/Makefile.am
49
lib/RealTimeBattle/Robots/empty/Makefile.am
34
lib/RealTimeBattle/Robots/empty/empty.c
50
lib/RealTimeBattle/Robots/empty/empty.c
35
lib/RealTimeBattle/Robots/empty-Robot1-TeamThree.robot
51
lib/RealTimeBattle/Robots/empty-fool-TeamLazy.robot
36
lib/RealTimeBattle/Robots/empty-Robot2-TeamThree.robot
52
lib/RealTimeBattle/Robots/empty-idiot-TeamLazy.robot
37
lib/RealTimeBattle/Robots/empty-Robot3-TeamThree.robot
53
lib/RealTimeBattle/Robots/empty-lamer-TeamLazy.robot
38
lib/RealTimeBattle/Robots/empty-Robot4-TeamThree.robot
39
lib/RealTimeBattle/Robots/empty-Robot5-TeamThree.robot
40
lib/RealTimeBattle/Robots/empty.robot
54
lib/RealTimeBattle/Robots/empty.robot
41
lib/RealTimeBattle/Robots/jBot/JBot.java
55
lib/RealTimeBattle/Robots/jBot/JBot.java
42
lib/RealTimeBattle/Robots/jBot/JBotMain.java
56
lib/RealTimeBattle/Robots/jBot/JBotMain.java
Lines 47-57 Link Here
47
lib/RealTimeBattle/Robots/joypad_robot/Makefile.am
61
lib/RealTimeBattle/Robots/joypad_robot/Makefile.am
48
lib/RealTimeBattle/Robots/joypad_robot/README
62
lib/RealTimeBattle/Robots/joypad_robot/README
49
lib/RealTimeBattle/Robots/joypad_robot/joypad_robot.c
63
lib/RealTimeBattle/Robots/joypad_robot/joypad_robot.c
50
lib/RealTimeBattle/Robots/perl/Robot.pm
51
lib/RealTimeBattle/Robots/perl/perl.robot.in
64
lib/RealTimeBattle/Robots/perl/perl.robot.in
52
lib/RealTimeBattle/Robots/perl-Skeleton/perl-Skeleton.robot.in
65
lib/RealTimeBattle/Robots/perl-Skeleton/perl-Skeleton.robot.in
53
lib/RealTimeBattle/Robots/perl-Skeleton.robot
66
lib/RealTimeBattle/Robots/perl-Skeleton.robot
54
lib/RealTimeBattle/Robots/perl.robot
67
lib/RealTimeBattle/Robots/perl.robot
68
lib/RealTimeBattle/Robots/raziel/raziel.py.robot.in
69
lib/RealTimeBattle/Robots/raziel.py.robot
55
lib/RealTimeBattle/Robots/rotate_and_fire/Makefile.am
70
lib/RealTimeBattle/Robots/rotate_and_fire/Makefile.am
56
lib/RealTimeBattle/Robots/rotate_and_fire/rotate_and_fire.cc
71
lib/RealTimeBattle/Robots/rotate_and_fire/rotate_and_fire.cc
57
lib/RealTimeBattle/Robots/rotate_and_fire/rotate_and_fire.h
72
lib/RealTimeBattle/Robots/rotate_and_fire/rotate_and_fire.h
Lines 61-81 Link Here
61
lib/RealTimeBattle/Robots/rotate_and_fire_blocking.robot
76
lib/RealTimeBattle/Robots/rotate_and_fire_blocking.robot
62
lib/RealTimeBattle/Robots/rotate_and_fire_select.robot
77
lib/RealTimeBattle/Robots/rotate_and_fire_select.robot
63
lib/RealTimeBattle/Robots/rotate_and_fire_signal.robot
78
lib/RealTimeBattle/Robots/rotate_and_fire_signal.robot
64
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot1-TeamOne.conf
79
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Blaubeere-Fruchtteam.conf
65
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot1-TeamTwo.conf
80
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Erdbeere-Fruchtteam.conf
66
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot2-TeamOne.conf
81
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Gerstenbrot-Brotteam.conf
67
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot2-TeamTwo.conf
82
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Heidelbeere-Fruchtteam.conf
68
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot3-TeamOne.conf
83
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Himbeere-Fruchtteam.conf
69
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot3-TeamTwo.conf
84
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Mischbrot-Brotteam.conf
70
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot4-TeamOne.conf
85
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Roggenbrot-Brotteam.conf
71
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot4-TeamTwo.conf
86
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Stachelbeere-Fruchtteam.conf
72
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot5-TeamOne.conf
87
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Toastbrot-Brotteam.conf
73
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Robot5-TeamTwo.conf
88
lib/RealTimeBattle/Robots/rtb-team-framework/Brotfrucht-Weizenbrot-Brotteam.conf
74
lib/RealTimeBattle/Robots/rtb-team-framework/empty-Robot1-TeamThree.conf
89
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Adder-AnacondaLike.conf
75
lib/RealTimeBattle/Robots/rtb-team-framework/empty-Robot2-TeamThree.conf
90
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Anaconda-AnacondaLike.conf
76
lib/RealTimeBattle/Robots/rtb-team-framework/empty-Robot3-TeamThree.conf
91
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Boa-AnacondaLike.conf
77
lib/RealTimeBattle/Robots/rtb-team-framework/empty-Robot4-TeamThree.conf
92
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Cobra-CobraLike.conf
78
lib/RealTimeBattle/Robots/rtb-team-framework/empty-Robot5-TeamThree.conf
93
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-CoralSnake-CobraLike.conf
94
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Krait-CobraLike.conf
95
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Mamba-CobraLike.conf
96
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Python-AnacondaLike.conf
97
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-TigerSnake-CobraLike.conf
98
lib/RealTimeBattle/Robots/rtb-team-framework/Cobra-Viper-AnacondaLike.conf
99
lib/RealTimeBattle/Robots/rtb-team-framework/Columbus-Cabral-Portugal.conf
100
lib/RealTimeBattle/Robots/rtb-team-framework/Columbus-Cortez-Spain.conf
101
lib/RealTimeBattle/Robots/rtb-team-framework/Columbus-Pizarro-Spain.conf
102
lib/RealTimeBattle/Robots/rtb-team-framework/Columbus-Vasco_da_Gama-Portugal.conf
103
lib/RealTimeBattle/Robots/rtb-team-framework/Columbus-Vespucci-Spain.conf
104
lib/RealTimeBattle/Robots/rtb-team-framework/Columbus-Zarco-Portugal.conf
105
lib/RealTimeBattle/Robots/rtb-team-framework/empty-fool-TeamLazy.conf
106
lib/RealTimeBattle/Robots/rtb-team-framework/empty-idiot-TeamLazy.conf
107
lib/RealTimeBattle/Robots/rtb-team-framework/empty-lamer-TeamLazy.conf
79
lib/RealTimeBattle/Robots/rtb-team-framework/rtb-team
108
lib/RealTimeBattle/Robots/rtb-team-framework/rtb-team
80
lib/RealTimeBattle/Robots/seek_and_destroy/Makefile.am
109
lib/RealTimeBattle/Robots/seek_and_destroy/Makefile.am
81
lib/RealTimeBattle/Robots/seek_and_destroy/seek_and_destroy.cc
110
lib/RealTimeBattle/Robots/seek_and_destroy/seek_and_destroy.cc
Lines 116-121 Link Here
116
%%PORTDOCS%%%%DOCSDIR%%/toc.gif
145
%%PORTDOCS%%%%DOCSDIR%%/toc.gif
117
%%PORTDOCS%%%%DOCSDIR%%/toc.png
146
%%PORTDOCS%%%%DOCSDIR%%/toc.png
118
share/locale/de/LC_MESSAGES/RealTimeBattle.mo
147
share/locale/de/LC_MESSAGES/RealTimeBattle.mo
148
share/locale/en@boldquot/LC_MESSAGES/RealTimeBattle.mo
149
share/locale/en@quot/LC_MESSAGES/RealTimeBattle.mo
119
share/locale/es/LC_MESSAGES/RealTimeBattle.mo
150
share/locale/es/LC_MESSAGES/RealTimeBattle.mo
120
share/locale/gl/LC_MESSAGES/RealTimeBattle.mo
151
share/locale/gl/LC_MESSAGES/RealTimeBattle.mo
121
share/locale/ja/LC_MESSAGES/RealTimeBattle.mo
152
share/locale/ja/LC_MESSAGES/RealTimeBattle.mo
Lines 128-133 Link Here
128
@dirrm lib/RealTimeBattle/Robots/seek_and_destroy
159
@dirrm lib/RealTimeBattle/Robots/seek_and_destroy
129
@dirrm lib/RealTimeBattle/Robots/rtb-team-framework
160
@dirrm lib/RealTimeBattle/Robots/rtb-team-framework
130
@dirrm lib/RealTimeBattle/Robots/rotate_and_fire
161
@dirrm lib/RealTimeBattle/Robots/rotate_and_fire
162
@dirrm lib/RealTimeBattle/Robots/raziel
131
@dirrm lib/RealTimeBattle/Robots/perl-Skeleton
163
@dirrm lib/RealTimeBattle/Robots/perl-Skeleton
132
@dirrm lib/RealTimeBattle/Robots/perl
164
@dirrm lib/RealTimeBattle/Robots/perl
133
@dirrm lib/RealTimeBattle/Robots/joypad_robot
165
@dirrm lib/RealTimeBattle/Robots/joypad_robot

Return to bug 87534