[PATCH] games/briquolo: fix the build with gcc 3.4, unmark BROKEN

Sergio Mangialardi sergio at softshark.org
Fri Sep 17 23:14:32 PDT 2004


>Submitter-Id:	current-users
>Originator:	Sergio Mangialardi
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] games/briquolo: fix the build with gcc 3.4, unmark BROKEN
>Severity:	serious
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 5.2.1-RELEASE-p9 i386
>Environment:
System: FreeBSD ainu.softshark.home 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #10: Sun Jul  4 01:51:04 CEST
>Description:
This patch fixes a problem with two-stage name-lookup.
Remove the BROKEN mark; the port build properly.

Added file(s):
- files/patch-src-MOGL-MOGL_Signal.h

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- briquolo-0.4.2_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/briquolo.old/Makefile /usr/ports/games/briquolo/Makefile
--- /usr/ports/games/briquolo.old/Makefile	Sat Sep 18 07:58:02 2004
+++ /usr/ports/games/briquolo/Makefile	Sat Sep 18 08:00:09 2004
@@ -28,10 +28,6 @@
 
 .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 -ruN --exclude=CVS /usr/ports/games/briquolo.old/files/patch-src-MOGL-MOGL_Signal.h /usr/ports/games/briquolo/files/patch-src-MOGL-MOGL_Signal.h
--- /usr/ports/games/briquolo.old/files/patch-src-MOGL-MOGL_Signal.h	Thu Jan  1 01:00:00 1970
+++ /usr/ports/games/briquolo/files/patch-src-MOGL-MOGL_Signal.h	Sat Sep 18 08:00:09 2004
@@ -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)
--- briquolo-0.4.2_2.patch ends here ---



More information about the freebsd-ports mailing list