pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/bastet Ported bastet to Solaris.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5a04331df01
branches:  trunk
changeset: 518617:b5a04331df01
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Sep 14 21:18:44 2006 +0000

description:
Ported bastet to Solaris.

diffstat:

 games/bastet/distinfo         |   7 ++++---
 games/bastet/patches/patch-aa |  16 ++++++++++++++--
 games/bastet/patches/patch-ab |   5 ++++-
 games/bastet/patches/patch-ac |  15 +++++++++++++++
 4 files changed, 37 insertions(+), 6 deletions(-)

diffs (75 lines):

diff -r 89e5297d04ab -r b5a04331df01 games/bastet/distinfo
--- a/games/bastet/distinfo     Thu Sep 14 20:53:24 2006 +0000
+++ b/games/bastet/distinfo     Thu Sep 14 21:18:44 2006 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $
+$NetBSD: distinfo,v 1.2 2006/09/14 21:18:44 rillig Exp $
 
 SHA1 (bastet-0.41.tgz) = 644a0f76adedef84946159520c1639ff0c6c47ec
 RMD160 (bastet-0.41.tgz) = 00801881e8ee5d42f91fe5f231d3151606032851
 Size (bastet-0.41.tgz) = 24195 bytes
-SHA1 (patch-aa) = 70896f37c9a05af877ab0f5f31a17a51f0bfe2f1
-SHA1 (patch-ab) = 8d388877f15291c3e0e071b36d88c50558cbc559
+SHA1 (patch-aa) = 249ef96a5324e46f439767226fcfc8c887094b85
+SHA1 (patch-ab) = ce2a671e0582fc227bac442186c9f8c1621db278
+SHA1 (patch-ac) = d59496b8b4531f2efd79dcf9614243f1b3ec829a
diff -r 89e5297d04ab -r b5a04331df01 games/bastet/patches/patch-aa
--- a/games/bastet/patches/patch-aa     Thu Sep 14 20:53:24 2006 +0000
+++ b/games/bastet/patches/patch-aa     Thu Sep 14 21:18:44 2006 +0000
@@ -1,7 +1,10 @@
-$NetBSD: patch-aa,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $
+$NetBSD: patch-aa,v 1.2 2006/09/14 21:18:44 rillig Exp $
+
+SunPro does not like non-static inline functions. BSD-based operating
+systems have <termios.h> instead of <termio.h>.
 
 --- bast.c.orig        2004-10-15 23:58:52.000000000 +0200
-+++ bast.c     2006-09-14 15:46:12.000000000 +0200
++++ bast.c     2006-09-14 23:14:36.540746472 +0200
 @@ -1,7 +1,11 @@
  #include <stdlib.h>
  #include <stdio.h>
@@ -14,3 +17,12 @@
  #include <assert.h>
  #include <unistd.h>
  #include <string.h>
+@@ -39,7 +43,7 @@ void bast_clear()
+ }
+ 
+ 
+-inline unsigned char *wyx2pointer(char *well, int y, int x)
++static inline unsigned char *wyx2pointer(char *well, int y, int x)
+ {
+         return well + (y * WELL_WIDTH) + x;
+ }
diff -r 89e5297d04ab -r b5a04331df01 games/bastet/patches/patch-ab
--- a/games/bastet/patches/patch-ab     Thu Sep 14 20:53:24 2006 +0000
+++ b/games/bastet/patches/patch-ab     Thu Sep 14 21:18:44 2006 +0000
@@ -1,4 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 2006/09/14 13:55:10 rillig Exp $
+$NetBSD: patch-ab,v 1.2 2006/09/14 21:18:44 rillig Exp $
+
+delay[] is used in usleep, which only accepts numbers smaller than
+1_000_000.
 
 --- game.c.orig        2004-10-15 23:58:52.000000000 +0200
 +++ game.c     2006-09-14 15:46:25.000000000 +0200
diff -r 89e5297d04ab -r b5a04331df01 games/bastet/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/bastet/patches/patch-ac     Thu Sep 14 21:18:44 2006 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1 2006/09/14 21:18:44 rillig Exp $
+
+For one-time building, the dependencies are not needed.
+
+--- Makefile.orig      2004-10-19 19:54:58.000000000 +0200
++++ Makefile   2006-09-14 23:12:00.064244064 +0200
+@@ -26,8 +26,6 @@ $(EXNAME) : $(SOURCES:.c=.o)
+ | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
+ [ -s $@ ] || rm -f $@
+ 
+-include $(SOURCES:.c=.d)
+-
+ %.o: %.c
+       $(CC) $(CFLAGS) -c $< -o $@
+ 



Home | Main Index | Thread Index | Old Index