aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-09-22 05:58:19 +0800
committerthierry <thierry@FreeBSD.org>2004-09-22 05:58:19 +0800
commit3c63ec08363c894a99e23fa2ad5565d8115294d7 (patch)
tree106ba0a5f5c491c306b7e06c3899079f24eff4bb /games
parentc3a424bf9c7b9a5e88a54960db8f08386c77fc89 (diff)
downloadfreebsd-ports-gnome-3c63ec08363c894a99e23fa2ad5565d8115294d7.tar.gz
freebsd-ports-gnome-3c63ec08363c894a99e23fa2ad5565d8115294d7.tar.zst
freebsd-ports-gnome-3c63ec08363c894a99e23fa2ad5565d8115294d7.zip
Fix the build with gcc 3.4.
PR: ports/71845 Submitted by: Sergio Mangialardi Approved by: portmgr (will).
Diffstat (limited to 'games')
-rw-r--r--games/briquolo/Makefile4
-rw-r--r--games/briquolo/files/patch-src-MOGL-MOGL_Signal.h82
2 files changed, 82 insertions, 4 deletions
diff --git a/games/briquolo/Makefile b/games/briquolo/Makefile
index f9082f7ecb1b..f004e001b457 100644
--- a/games/briquolo/Makefile
+++ b/games/briquolo/Makefile
@@ -28,10 +28,6 @@ USE_SDL= mixer sdl
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502126
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
-
post-patch:
@${FIND} ${WRKSRC} -name "*.cpp" | ${XARGS} \
${REINPLACE_CMD} -e 's|SDL/|SDL11/|g'
diff --git a/games/briquolo/files/patch-src-MOGL-MOGL_Signal.h b/games/briquolo/files/patch-src-MOGL-MOGL_Signal.h
new file mode 100644
index 000000000000..3458664d455d
--- /dev/null
+++ b/games/briquolo/files/patch-src-MOGL-MOGL_Signal.h
@@ -0,0 +1,82 @@
+--- src/MOGL/MOGL_Signal.h.orig Sat Sep 18 07:21:08 2004
++++ src/MOGL/MOGL_Signal.h Sat Sep 18 07:27:15 2004
+@@ -169,13 +169,13 @@
+ */
+ MOGL_Connexion(TypeClasse * p_Objet, TypeMethode p_Methode)
+ {
+- _Objet=p_Objet;
++ this->_Objet=p_Objet;
+ _Methode=p_Methode;
+ }
+
+ void Emettre(TypeParam1 p_Param1)
+ {
+- (static_cast<TypeClasse*>(_Objet)->*_Methode)(p_Param1);
++ (static_cast<TypeClasse*>(this->_Objet)->*_Methode)(p_Param1);
+ }
+
+ MOGL_ConnexionBaseBase * Dupliquer(MOGL_Action * p_NouvelObjet)
+@@ -264,13 +264,13 @@
+ */
+ MOGL_Connexion(TypeClasse * p_Objet, TypeMethode p_Methode)
+ {
+- _Objet=p_Objet;
++ this->_Objet=p_Objet;
+ _Methode=p_Methode;
+ }
+
+ void Emettre(TypeParam1 p_Param1, TypeParam2 p_Param2)
+ {
+- (static_cast<TypeClasse*>(_Objet)->*_Methode)(p_Param1, p_Param2);
++ (static_cast<TypeClasse*>(this->_Objet)->*_Methode)(p_Param1, p_Param2);
+ }
+
+ MOGL_ConnexionBaseBase * Dupliquer(MOGL_Action * p_NouvelObjet)
+@@ -359,13 +359,13 @@
+ */
+ MOGL_Connexion(TypeClasse * p_Objet, TypeMethode p_Methode)
+ {
+- _Objet=p_Objet;
++ this->_Objet=p_Objet;
+ _Methode=p_Methode;
+ }
+
+ void Emettre(TypeParam1 p_Param1, TypeParam2 p_Param2, TypeParam3 p_Param3)
+ {
+- (static_cast<TypeClasse*>(_Objet)->*_Methode)(p_Param1, p_Param2, p_Param3);
++ (static_cast<TypeClasse*>(this->_Objet)->*_Methode)(p_Param1, p_Param2, p_Param3);
+ }
+
+ MOGL_ConnexionBaseBase * Dupliquer(MOGL_Action * p_NouvelObjet)
+@@ -454,13 +454,13 @@
+ */
+ MOGL_Connexion(TypeClasse * p_Objet, TypeMethode p_Methode)
+ {
+- _Objet=p_Objet;
++ this->_Objet=p_Objet;
+ _Methode=p_Methode;
+ }
+
+ void Emettre(TypeParam1 p_Param1, TypeParam2 p_Param2, TypeParam3 p_Param3, TypeParam4 p_Param4)
+ {
+- (static_cast<TypeClasse*>(_Objet)->*_Methode)(p_Param1, p_Param2, p_Param3, p_Param4);
++ (static_cast<TypeClasse*>(this->_Objet)->*_Methode)(p_Param1, p_Param2, p_Param3, p_Param4);
+ }
+
+ MOGL_ConnexionBaseBase * Dupliquer(MOGL_Action * p_NouvelObjet)
+@@ -549,13 +549,13 @@
+ */
+ MOGL_Connexion(TypeClasse * p_Objet, TypeMethode p_Methode)
+ {
+- _Objet=p_Objet;
++ this->_Objet=p_Objet;
+ _Methode=p_Methode;
+ }
+
+ void Emettre(TypeParam1 p_Param1, TypeParam2 p_Param2, TypeParam3 p_Param3, TypeParam4 p_Param4, TypeParam5 p_Param5)
+ {
+- (static_cast<TypeClasse*>(_Objet)->*_Methode)(p_Param1, p_Param2, p_Param3, p_Param4, p_Param5);
++ (static_cast<TypeClasse*>(this->_Objet)->*_Methode)(p_Param1, p_Param2, p_Param3, p_Param4, p_Param5);
+ }
+
+ MOGL_ConnexionBaseBase * Dupliquer(MOGL_Action * p_NouvelObjet)