[48977] trunk/dports/games/xgalaga

afb at macports.org afb at macports.org
Wed Apr 1 04:38:07 PDT 2009


Revision: 48977
          http://trac.macports.org/changeset/48977
Author:   afb at macports.org
Date:     2009-04-01 04:37:54 -0700 (Wed, 01 Apr 2009)
Log Message:
-----------
compatibility fixes for tiger (from fink)

Modified Paths:
--------------
    trunk/dports/games/xgalaga/Portfile

Added Paths:
-----------
    trunk/dports/games/xgalaga/files/patch-data.h
    trunk/dports/games/xgalaga/files/patch-libsprite__data.h
    trunk/dports/games/xgalaga/files/patch-main.c
    trunk/dports/games/xgalaga/files/patch-score.c
    trunk/dports/games/xgalaga/files/patch-struct.h
    trunk/dports/games/xgalaga/files/patch-titile.c

Modified: trunk/dports/games/xgalaga/Portfile
===================================================================
--- trunk/dports/games/xgalaga/Portfile	2009-04-01 10:52:40 UTC (rev 48976)
+++ trunk/dports/games/xgalaga/Portfile	2009-04-01 11:37:54 UTC (rev 48977)
@@ -4,6 +4,7 @@
 
 name			xgalaga
 version			2.0.34
+revision		1
 categories		games x11
 platforms		darwin
 maintainers		nomaintainer
@@ -17,22 +18,26 @@
 
 worksrcdir		${name}-${version}
 
-patchfiles		patch-Makefile.in
+patchfiles		patch-Makefile.in \
+			patch-data.h \
+			patch-libsprite__data.h \
+			patch-main.c \
+			patch-score.c \
+			patch-struct.h \
+			patch-titile.c
 
+depends_build port:autoconf
+use_autoconf yes
+
 configure.pre_args	--prefix=${prefix}/share/${name} \
 			--exec-prefix=\\\${prefix}/../../bin
 
 destroot.destdir	prefix=${destroot}${prefix}/share/${name}
 
-platform darwin powerpc {
-	configure.args	--host=powerpc-apple-darwin
+platform darwin {
+    pre-configure {
+	copy -force ${prefix}/share/libtool/config.guess ${worksrcpath}
+	copy -force ${prefix}/share/libtool/config.sub ${worksrcpath}
+    }
 }
 
-platform darwin i386 {
-	configure.args	--host=i686-apple-darwin
-}
-
-platform darwin 8 powerpc {
-	configure.compiler	gcc-3.3
-}
-

Added: trunk/dports/games/xgalaga/files/patch-data.h
===================================================================
--- trunk/dports/games/xgalaga/files/patch-data.h	                        (rev 0)
+++ trunk/dports/games/xgalaga/files/patch-data.h	2009-04-01 11:37:54 UTC (rev 48977)
@@ -0,0 +1,8 @@
+--- data.h.orig	Mon May 11 15:37:19 1998
++++ data.h	Wed Jun 27 02:50:31 2007
+@@ -1,4 +1,5 @@
+ #include "Wlib.h"
++#include "struct.h"
+ 
+ extern W_Window gal, baseWin;
+ 


Property changes on: trunk/dports/games/xgalaga/files/patch-data.h
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/games/xgalaga/files/patch-libsprite__data.h
===================================================================
--- trunk/dports/games/xgalaga/files/patch-libsprite__data.h	                        (rev 0)
+++ trunk/dports/games/xgalaga/files/patch-libsprite__data.h	2009-04-01 11:37:54 UTC (rev 48977)
@@ -0,0 +1,10 @@
+--- libsprite/data.h.orig	Sun Apr 12 15:03:22 1998
++++ libsprite/data.h	Wed Jun 27 02:49:24 2007
+@@ -20,6 +20,7 @@
+ 
+ #include "Wlib.h"
+ #include "defs.h"
++#include "struct.h"
+ 
+ extern int	nplanes;
+ extern int	xpmORplanes ;


Property changes on: trunk/dports/games/xgalaga/files/patch-libsprite__data.h
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/games/xgalaga/files/patch-main.c
===================================================================
--- trunk/dports/games/xgalaga/files/patch-main.c	                        (rev 0)
+++ trunk/dports/games/xgalaga/files/patch-main.c	2009-04-01 11:37:54 UTC (rev 48977)
@@ -0,0 +1,26 @@
+--- main.c.orig	Mon May 11 15:52:59 1998
++++ main.c	Wed Jun 27 02:53:46 2007
+@@ -7,6 +7,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #ifdef HAVE_SYS_TIME_H
+ #include <sys/time.h>
+ #endif
+@@ -779,6 +780,7 @@
+     if(gameOver) {
+         while(W_EventsPending()) {
+             W_NextEvent(&wev);
++	    if (wev.key >= 256) wev.key -= 256;
+         
+ 	    if(gameOver)
+ 	      mouseControl = 1;
+@@ -826,6 +828,7 @@
+ 
+     while(W_EventsPending()) {
+         W_NextEvent(&wev);
++	if (wev.key >= 256) wev.key -= 256;
+ 
+         switch(wev.type) {
+         case W_EV_KEY_OFF:


Property changes on: trunk/dports/games/xgalaga/files/patch-main.c
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/games/xgalaga/files/patch-score.c
===================================================================
--- trunk/dports/games/xgalaga/files/patch-score.c	                        (rev 0)
+++ trunk/dports/games/xgalaga/files/patch-score.c	2009-04-01 11:37:54 UTC (rev 48977)
@@ -0,0 +1,10 @@
+--- score.c.orig	Thu Apr 30 14:11:58 1998
++++ score.c	Wed Jun 27 02:55:23 2007
+@@ -4,6 +4,7 @@
+ 
+ #include <config.h>
+ #include <stdio.h>
++#include <string.h>
+ #include "Wlib.h"
+ #include "images.h"
+ #include "data.h"


Property changes on: trunk/dports/games/xgalaga/files/patch-score.c
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/games/xgalaga/files/patch-struct.h
===================================================================
--- trunk/dports/games/xgalaga/files/patch-struct.h	                        (rev 0)
+++ trunk/dports/games/xgalaga/files/patch-struct.h	2009-04-01 11:37:54 UTC (rev 48977)
@@ -0,0 +1,15 @@
+--- struct.h.orig	Sun Oct 22 00:36:24 2000
++++ struct.h	Sun Oct 22 00:37:03 2000
+@@ -1,3 +1,6 @@
++#ifndef __struct_h__
++#define __struct_h__
++
+ #include "Wlib.h"
+ 
+ struct torp {
+@@ -38,3 +41,5 @@
+     int count;
+     W_Image *shape;
+ };
++
++#endif /* __struct_h__ */


Property changes on: trunk/dports/games/xgalaga/files/patch-struct.h
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/dports/games/xgalaga/files/patch-titile.c
===================================================================
--- trunk/dports/games/xgalaga/files/patch-titile.c	                        (rev 0)
+++ trunk/dports/games/xgalaga/files/patch-titile.c	2009-04-01 11:37:54 UTC (rev 48977)
@@ -0,0 +1,10 @@
+--- title.c.orig	Mon May 11 15:52:59 1998
++++ title.c	Wed Jun 27 02:54:45 2007
+@@ -4,6 +4,7 @@
+ #include <config.h>
+ 
+ #include <stdio.h>
++#include <string.h>
+ #include "Wlib.h"
+ #include "defs.h"
+ #include "images.h"


Property changes on: trunk/dports/games/xgalaga/files/patch-titile.c
___________________________________________________________________
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090401/3729df2c/attachment.html>


More information about the macports-changes mailing list